Blob


1 #!/bin/sh
3 rm -f gmid.pid
5 . ./lib.sh
6 . ./tests.sh
8 trap 'onexit' INT TERM EXIT
10 if [ $# -ne 0 ]; then
11 while [ $# -ne 0 ]; do
12 run_test $1
13 shift
14 done
16 tests_done
17 fi
19 # Run standalone unit tests.
20 run_test test_punycode
21 run_test test_iri
23 if [ "${SKIP_RUNTIME_TESTS:-0}" -eq 1 ]; then
24 echo
25 echo "======================"
26 echo "runtime tests skipped!"
27 echo "======================"
28 echo
30 tests_done
31 fi
33 # Run regression tests for the gmid binary.
34 run_test test_configless_mode
35 run_test test_static_files
36 run_test test_directory_redirect
37 run_test test_serve_big_files
38 run_test test_dont_execute_scripts
39 run_test test_custom_mime
40 run_test test_default_type
41 run_test test_custom_lang
42 run_test test_parse_custom_lang_per_location
43 run_test test_cgi_scripts
44 run_test test_cgi_big_replies
45 run_test test_cgi_split_query
46 run_test test_custom_index
47 run_test test_custom_index_default_type_per_location
48 run_test test_auto_index
49 run_test test_block
50 run_test test_block_return_fmt
51 run_test test_entrypoint
52 run_test test_require_client_ca
53 run_test test_root_inside_location
54 run_test test_root_inside_location_with_redirect
55 run_test test_fastcgi
56 run_test test_macro_expansion
57 run_test test_174_bugfix
58 run_test test_proxy_relay_to
59 run_test test_proxy_with_certs
60 run_test test_unknown_host
61 run_test test_include_mime
63 tests_done