Skip to content

Commit

Permalink
[test] Make test cases skippable
Browse files Browse the repository at this point in the history
  • Loading branch information
sideeffect42 committed Feb 7, 2024
1 parent c107411 commit 2c82342
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2c82342

Please sign in to comment.