gmid/regress/runtime
Omar Polo 176179b2a9 rework the regression suite
The tests are still there, the suite is equivalent to the old one, but
this one is better structured.

The biggest annoyance I had with the old one was that it wasn't
straightforward to test only a specific set of tests.  It's still
impossible, but it's way easier to do it now.

This extract all the tests to their own functions.  It's overall
better in all possible regards.
2021-10-04 09:04:33 +00:00

49 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
if [ "${SKIP_RUNTIME_TESTS:-0}" -eq 1 ]; then
echo
echo "======================"
echo "runtime tests skipped!"
echo "======================"
echo
exit 0
fi
rm -f gmid.pid
. ./lib.sh
. ./tests.sh
trap 'onexit' INT TERM EXIT
run_test test_configless_mode
run_test test_static_files
run_test test_directory_redirect
run_test test_serve_big_files
run_test test_dont_execute_scripts
run_test test_custom_mime
run_test test_default_type
run_test test_custom_lang
run_test test_parse_custom_lang_per_location
run_test test_cgi_scripts
run_test test_cgi_big_replies
run_test test_cgi_split_query
run_test test_custom_index
run_test test_custom_index_default_type_per_location
run_test test_auto_index
run_test test_block
run_test test_block_return_fmt
run_test test_entrypoint
run_test test_require_client_ca
run_test test_root_inside_location
run_test test_root_inside_location_with_redirect
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