commit 4a2a525d7c3013f3c4b5669db9fdbb84d8d77946 from: Omar Polo date: Mon Oct 04 09:30:18 2021 UTC allow running only specific tests It's now possible to run only a subset of the tests with: ./runtime test1 test2 ... commit - c1272f63e4b85f663b56a8e67e31f3e85dd78faa commit + 4a2a525d7c3013f3c4b5669db9fdbb84d8d77946 blob - afee6f8df58e37649357b07a231104c674ecddff blob + 5eefb346be18ba41f47ca41a2cebeb21cf7dfba9 --- regress/lib.sh +++ regress/lib.sh @@ -35,6 +35,15 @@ port $port fi } +tests_done() { + if [ "$failed" != "" ]; then + echo + echo "failed tests:$failed" + exit 1 + fi + exit 0 +} + # usage: gen_config # generates a configuration file reg.conf gen_config() { blob - f34ff7d201527b969798ae1b889cc2924fa212b9 blob + 87af174eede1fd5a5478376285858260895e7649 --- regress/runtime +++ regress/runtime @@ -16,6 +16,15 @@ rm -f gmid.pid trap 'onexit' INT TERM EXIT +if [ $# -ne 0 ]; then + while [ $# -ne 0 ]; do + run_test $1 + shift + done + + tests_done +fi + run_test test_configless_mode run_test test_static_files run_test test_directory_redirect @@ -41,8 +50,4 @@ run_test test_fastcgi run_test test_macro_expansion run_test test_174_bugfix -if [ "$failed" != "" ]; then - echo - echo "failed tests:$failed" - exit 1 -fi +tests_done