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.
This commit is contained in:
Anna “CyberTailor” 2022-02-03 13:35:02 +05:00 committed by Omar Polo
parent f525aa55b8
commit 1ca7a0f3bf
1 changed files with 13 additions and 9 deletions

View File

@ -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