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 ge binary.
34 run_test test_ge
36 # Run regression tests for the gmid binary.
37 run_test test_static_files
38 run_test test_directory_redirect
39 run_test test_serve_big_files
40 run_test test_dont_execute_scripts
41 run_test test_custom_mime
42 run_test test_default_type
43 run_test test_custom_lang
44 run_test test_parse_custom_lang_per_location
45 run_test test_custom_index
46 run_test test_custom_index_default_type_per_location
47 run_test test_auto_index
48 run_test test_block
49 run_test test_block_return_fmt
50 run_test test_require_client_ca
51 run_test test_root_inside_location
52 run_test test_root_inside_location_with_redirect
53 # run_test test_fastcgi XXX: needs to be fixed
54 run_test test_macro_expansion
55 run_test test_proxy_relay_to
56 run_test test_proxy_with_certs
57 run_test test_unknown_host
58 run_test test_include_mime
60 tests_done