From fe9daae67b011f58815c07c2450c83ffe7fe77b8 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 28 Feb 2016 19:26:18 +0000 Subject: [PATCH] allow skipping --- tests/Single-file test suites/.test_testsuite | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Single-file test suites/.test_testsuite b/tests/Single-file test suites/.test_testsuite index c951ee1..a10340b 100755 --- a/tests/Single-file test suites/.test_testsuite +++ b/tests/Single-file test suites/.test_testsuite @@ -1,22 +1,22 @@ #!/bin/sh set -e +contents="$1" +expectation="$2" + testdir=$tmp/tests mkdir -p $testdir touch $testdir/.urchin testcase=$testdir/testcase -contents="$1" -expectation="$2" - # Set up the test suite. echo "$contents" > $testcase chmod +x $testcase case "$expectation" in ok) regex='^ok 1 - testcase';; not\ ok) regex='^not ok 1 - testcase';; - skip) regex='^ok 1 - testcase # SKIP';; - *) chmod -x $testcase;; + skip) regex='^ok 1 - testcase ([)]*) # SKIP';; + *) exit 3;; # skip malformed test esac # Run the test suite