Blame


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