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