gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/images/benchmarks/rubydev/run_fastlane_tests.sh (about)

     1  #!/bin/bash
     2  # Copyright 2022 The gVisor Authors.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  
    16  set -euo pipefail
    17  
    18  # Run only a subset of tests, otherwise this is simply too long of a benchmark.
    19  # This list was compiled using:
    20  #   $ find -name '*_spec.rb' | shuf | head -100 | cut -d/ -f2- | sort
    21  specs=(
    22    cert/spec/commands_generator_spec.rb
    23    credentials_manager/spec/account_manager_spec.rb
    24    fastlane/spec/action_metadata_spec.rb
    25    fastlane/spec/actions_helper_spec.rb
    26    fastlane/spec/actions_specs/appetize_view_url_generator_spec.rb
    27    fastlane/spec/actions_specs/apteligent_spec.rb
    28    fastlane/spec/actions_specs/backup_file_spec.rb
    29    fastlane/spec/actions_specs/clean_cocoapods_cache_spec.rb
    30    fastlane/spec/actions_specs/delete_keychain_spec.rb
    31    fastlane/spec/actions_specs/deploygate_spec.rb
    32    fastlane/spec/actions_specs/ensure_git_status_clean_spec.rb
    33    fastlane/spec/actions_specs/ensure_xcode_version_spec.rb
    34    fastlane/spec/actions_specs/get_github_release_spec.rb
    35    fastlane/spec/actions_specs/git_branch_spec.rb
    36    fastlane/spec/actions_specs/git_pull_spec.rb
    37    fastlane/spec/actions_specs/hg_add_tag_spec.rb
    38    fastlane/spec/actions_specs/hg_commit_version_bump_spec.rb
    39    fastlane/spec/actions_specs/hockey_spec.rb
    40    fastlane/spec/actions_specs/import_certificate_spec.rb
    41    fastlane/spec/actions_specs/import_spec.rb
    42    fastlane/spec/actions_specs/jazzy_spec.rb
    43    fastlane/spec/actions_specs/push_git_tags_spec.rb
    44    fastlane/spec/actions_specs/puts_spec.rb
    45    fastlane/spec/actions_specs/reset_git_repo_spec.rb
    46    fastlane/spec/actions_specs/rsync_spec.rb
    47    fastlane/spec/actions_specs/say_spec.rb
    48    fastlane/spec/actions_specs/set_changelog_spec.rb
    49    fastlane/spec/actions_specs/set_info_plist_value_spec.rb
    50    fastlane/spec/actions_specs/set_pod_key_spec.rb
    51    fastlane/spec/actions_specs/setup_ci_spec.rb
    52    fastlane/spec/actions_specs/setup_circle_ci_spec.rb
    53    fastlane/spec/actions_specs/spm_spec.rb
    54    fastlane/spec/actions_specs/swiftlint_spec.rb
    55    fastlane/spec/actions_specs/testfairy_spec.rb
    56    fastlane/spec/actions_specs/update_app_identifier_spec.rb
    57    fastlane/spec/actions_specs/update_keychain_access_groups_spec.rb
    58    fastlane/spec/actions_specs/update_project_provisioning_spec.rb
    59    fastlane/spec/actions_specs/version_bump_podspec_spec.rb
    60    fastlane/spec/actions_specs/xcode_server_get_assets_spec.rb
    61    fastlane/spec/actions_specs/xcodebuild_spec.rb
    62    fastlane/spec/actions_specs/xctool_action_spec.rb
    63    fastlane/spec/actions_specs/zip_spec.rb
    64    fastlane/spec/command_line_handler_spec.rb
    65    fastlane/spec/env_spec.rb
    66    fastlane/spec/gradle_helper_spec.rb
    67    fastlane/spec/helper/adb_helper_spec.rb
    68    fastlane/spec/helper/s3_client_helper_spec.rb
    69    fastlane/spec/helper/xcodeproj_helper_spec.rb
    70    fastlane/spec/lane_list_spec.rb
    71    fastlane/spec/runner_spec.rb
    72    fastlane_core/spec/app_identifier_guesser_spec.rb
    73    fastlane_core/spec/configuration_file_spec.rb
    74    fastlane_core/spec/configuration_spec.rb
    75    fastlane_core/spec/core_ext/cfpropertylist_ext_spec.rb
    76    fastlane_core/spec/core_ext/shellwords_ext_spec.rb
    77    fastlane_core/spec/fastlane_user_dir_spec.rb
    78    fastlane_core/spec/ios_app_identifier_guesser_spec.rb
    79    fastlane_core/spec/languages_spec.rb
    80    gym/spec/code_signing_mapping_spec.rb
    81    gym/spec/gymfile_spec.rb
    82    gym/spec/options_spec.rb
    83    gym/spec/xcodebuild_fixes/generic_archive_fix_spec.rb
    84    match/spec/encryption/openssl_spec.rb
    85    match/spec/storage/gitlab/client_spec.rb
    86    precheck/spec/rules/curse_words_rule_spec.rb
    87    precheck/spec/rules/rule_spec.rb
    88    precheck/spec/rules/unreachable_urls_rule_spec.rb
    89    scan/spec/commands_generator_spec.rb
    90    scan/spec/error_handler_spec.rb
    91    scan/spec/test_result_parser_spec.rb
    92    screengrab/spec/commands_generator_spec.rb
    93    sigh/spec/manager_spec.rb
    94    sigh/spec/runner_spec.rb
    95    snapshot/spec/test_command_generator_xcode_8_spec.rb
    96    spaceship/spec/connect_api/client_spec.rb
    97    spaceship/spec/connect_api/models/app_spec.rb
    98    spaceship/spec/connect_api/models/app_store_version_spec.rb
    99    spaceship/spec/connect_api/models/beta_feedback_spec.rb
   100    spaceship/spec/connect_api/models/build_beta_detail_spec.rb
   101    spaceship/spec/connect_api/models/build_delivery_spec.rb
   102    spaceship/spec/connect_api/models/bundle_id_spec.rb
   103    spaceship/spec/connect_api/testflight/testflight_client_spec.rb
   104    spaceship/spec/connect_api/token_spec.rb
   105    spaceship/spec/du/du_client_spec.rb
   106    spaceship/spec/portal/app_group_spec.rb
   107    spaceship/spec/portal/app_spec.rb
   108    spaceship/spec/portal/enterprise_spec.rb
   109    spaceship/spec/portal/merchant_spec.rb
   110    spaceship/spec/portal/passbook_spec.rb
   111    spaceship/spec/spaceship_base_spec.rb
   112    spaceship/spec/spaceship_spec.rb
   113    spaceship/spec/test_flight/app_test_info_spec.rb
   114    spaceship/spec/tunes/app_analytics_spec.rb
   115    spaceship/spec/tunes/app_submission_spec.rb
   116    spaceship/spec/tunes/app_version_spec.rb
   117    spaceship/spec/tunes/application_spec.rb
   118    spaceship/spec/tunes/b2b_organization_spec.rb
   119    spaceship/spec/tunes/members_spec.rb
   120    spaceship/spec/two_step_or_factor_client_spec.rb
   121    supply/spec/commands_generator_spec.rb
   122  )
   123  pattern="{"
   124  for spec in "${specs[@]}"; do
   125    pattern="${pattern}${spec},"
   126  done
   127  pattern="$(echo "$pattern" | sed -r 's/,$//')}"
   128  exec bundle exec rspec --pattern "$pattern"