diff --git a/tests/run_all_linux_tests.sh b/tests/run_all_linux_tests.sh index 56f8a6f..7dead6b 100755 --- a/tests/run_all_linux_tests.sh +++ b/tests/run_all_linux_tests.sh @@ -1,7 +1,13 @@ #!/usr/bin/env bash +CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + main() { - for test in $(compgen -A function | grep "^test_linux_"); do "$test"; done + set -e # exit on error + _files=$(find "$CURRENT_DIR" -name "test_linux_*" -type f) + for test in $_files; do + bash -c "$test" + done } main "$@"