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 a84492b7 2023-07-25 op # Run regression tests for the gemexp binary.
34 471a5250 2023-07-25 op run_test test_gemexp
35 a5fb2593 2022-09-08 op
36 1ca7a0f3 2022-02-03 op # Run regression tests for the gmid binary.
37 e5285d54 2021-12-09 op run_test test_static_files
38 e5285d54 2021-12-09 op run_test test_directory_redirect
39 e5285d54 2021-12-09 op run_test test_serve_big_files
40 e5285d54 2021-12-09 op run_test test_dont_execute_scripts
41 e5285d54 2021-12-09 op run_test test_custom_mime
42 e5285d54 2021-12-09 op run_test test_default_type
43 e5285d54 2021-12-09 op run_test test_custom_lang
44 e5285d54 2021-12-09 op run_test test_parse_custom_lang_per_location
45 e5285d54 2021-12-09 op run_test test_custom_index
46 e5285d54 2021-12-09 op run_test test_custom_index_default_type_per_location
47 e5285d54 2021-12-09 op run_test test_auto_index
48 e5285d54 2021-12-09 op run_test test_block
49 e5285d54 2021-12-09 op run_test test_block_return_fmt
50 deadd9e1 2023-06-09 op run_test test_require_client_ca
51 e5285d54 2021-12-09 op run_test test_root_inside_location
52 e5285d54 2021-12-09 op run_test test_root_inside_location_with_redirect
53 9adeb265 2023-06-09 op run_test test_fastcgi
54 60f4107d 2023-07-23 op run_test test_fastcgi_inside_location
55 fdd67729 2023-07-23 op run_test test_fastcgi_deprecated_syntax
56 e5285d54 2021-12-09 op run_test test_macro_expansion
57 4b5b1e82 2021-12-29 op run_test test_proxy_relay_to
58 deadd9e1 2023-06-09 op run_test test_proxy_with_certs
59 a4180f1d 2022-10-31 op # run_test test_unknown_host # XXX: breaks on some distro
60 fb121226 2022-02-26 op run_test test_include_mime
61 60b4efa1 2023-07-24 op run_test test_log_file
62 e5285d54 2021-12-09 op
63 c26f2460 2023-06-08 op # TODO: add test that uses only a TLSv1.2 or TLSv1.3
64 57ee9057 2023-07-01 op # TODO: add a test that attempt to serve a non-regular file
65 57ee9057 2023-07-01 op # TODO: add a test where the index is not a regular file
66 c26f2460 2023-06-08 op
67 e5285d54 2021-12-09 op tests_done