/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/scripts/run_ruby_tests.sh
29 строк
659 B
Riccardo Cipolleschi
Fix Cocoapods for Xcode 14.3.0 (#36759)
02 апр 2023, 13:32
02 апр 2023, 13:32
cb88e75
Код
Авторство
О чём код?
#!/bin/bash # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. set -f basepath=$(dirname "${0}") # shellcheck disable=SC2207 files=( $(find . -name '*-test.rb') ) test_suite="${basepath}/all_tests.rb" touch "${test_suite}" echo "require \"test/unit\"" > "${test_suite}" echo "discovered the following files:" for i in "${files[@]}" do filename="${i#"${basepath}/"}" echo "${filename}" echo "require_relative \"${filename}\"" >> "${test_suite}" done ruby -Itest "${test_suite}" RES=$? rm "${test_suite}" exit $RES