From 2c82342abe8d8691374bd3bed9994b8afec12d50 Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Wed, 7 Feb 2024 15:34:31 +0100 Subject: [PATCH] [test] Make test cases skippable --- test/run.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/run.sh b/test/run.sh index 246993c..2d29808 100755 --- a/test/run.sh +++ b/test/run.sh @@ -49,6 +49,19 @@ for testdir in "${tests_dir}"/* do test -d "${testdir}" || continue + if test -e "${testdir}/skip" + then + if ${coloured_output?} + then + printf '[\033[1;37mSKIP\033[0m]' + else + printf '[SKIP]' + fi + printf ' %s\n' "${testdir##*/}" + + continue + fi + ${STDOUT_ISATTY?} && printf '[....] %s' "${testdir##*/}" test_out="${tmpdir:?}/${testdir##*/}.stdout"