aboutsummaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorAnna “CyberTailor” <cyber@sysrq.in>2022-02-03 13:35:02 +0500
committerOmar Polo <op@omarpolo.com>2022-02-03 11:13:41 +0100
commit1ca7a0f3bfa18beaeae28cae9afe64bad617dff4 (patch)
tree9376ae431d0333aac0e2c3f489a1fce1c571c92e /regress
parentf525aa55b85d7186f701d74b8a62ca7151ab2e9a (diff)
don't skip unit tests when SKIP_RUNTIME_TESTS is set
IRI and Punycode tests don't run gmid binary and can be safely executed.
Diffstat (limited to 'regress')
-rwxr-xr-xregress/regress22
1 files changed, 13 insertions, 9 deletions
diff --git a/regress/regress b/regress/regress
index 6474e4f..a88a269 100755
--- a/regress/regress
+++ b/regress/regress
@@ -1,14 +1,5 @@
#!/bin/sh
-if [ "${SKIP_RUNTIME_TESTS:-0}" -eq 1 ]; then
- echo
- echo "======================"
- echo "runtime tests skipped!"
- echo "======================"
- echo
- exit 0
-fi
-
rm -f gmid.pid
. ./lib.sh
@@ -25,8 +16,21 @@ if [ $# -ne 0 ]; then
tests_done
fi
+# Run standalone unit tests.
run_test test_punycode
run_test test_iri
+
+if [ "${SKIP_RUNTIME_TESTS:-0}" -eq 1 ]; then
+ echo
+ echo "======================"
+ echo "runtime tests skipped!"
+ echo "======================"
+ echo
+
+ tests_done
+fi
+
+# Run regression tests for the gmid binary.
run_test test_configless_mode
run_test test_static_files
run_test test_directory_redirect