From 1ca7a0f3bfa18beaeae28cae9afe64bad617dff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= Date: Thu, 3 Feb 2022 13:35:02 +0500 Subject: 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. --- regress/regress | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'regress') 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 -- cgit v1.2.3