mirror of https://github.com/omar-polo/gmid.git
allow running only specific tests
It's now possible to run only a subset of the tests with: ./runtime test1 test2 ...
This commit is contained in:
parent
c1272f63e4
commit
4a2a525d7c
|
@ -35,6 +35,15 @@ port $port
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tests_done() {
|
||||||
|
if [ "$failed" != "" ]; then
|
||||||
|
echo
|
||||||
|
echo "failed tests:$failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
# usage: gen_config <global config> <server config>
|
# usage: gen_config <global config> <server config>
|
||||||
# generates a configuration file reg.conf
|
# generates a configuration file reg.conf
|
||||||
gen_config() {
|
gen_config() {
|
||||||
|
|
|
@ -16,6 +16,15 @@ rm -f gmid.pid
|
||||||
|
|
||||||
trap 'onexit' INT TERM EXIT
|
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_configless_mode
|
||||||
run_test test_static_files
|
run_test test_static_files
|
||||||
run_test test_directory_redirect
|
run_test test_directory_redirect
|
||||||
|
@ -41,8 +50,4 @@ run_test test_fastcgi
|
||||||
run_test test_macro_expansion
|
run_test test_macro_expansion
|
||||||
run_test test_174_bugfix
|
run_test test_174_bugfix
|
||||||
|
|
||||||
if [ "$failed" != "" ]; then
|
tests_done
|
||||||
echo
|
|
||||||
echo "failed tests:$failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue