/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
hack/test-lib.sh
19 строк
535 B
Alex Crawford
Use a more portable shell invocation
03 дек 2018, 22:24
03 дек 2018, 22:24
e0d06d8
Код
Авторство
О чём код?
#!/usr/bin/env bash # This script runs all of the test written for our Bash libraries. source "$(dirname "${BASH_SOURCE}")/lib/init.sh" function cleanup() { return_code=$? os::test::junit::generate_report os::util::describe_return_code "${return_code}" exit "${return_code}" } trap "cleanup" EXIT library_tests="$( find 'hack/test-lib/' -type f -executable )" for test in ${library_tests}; do # run each library test found in a subshell so that we can isolate them ( ${test} ) echo "$(basename "${test//.sh}"): ok" done