tests: can add a file $engine.skip to skip many tests
authorJean Privat <jean@pryen.org>
Tue, 16 Oct 2012 04:05:51 +0000 (00:05 -0400)
committerJean Privat <jean@pryen.org>
Tue, 16 Oct 2012 04:05:51 +0000 (00:05 -0400)
*.skip files can be used to indicate patterns of files that should be
skipped for the given engine.

Signed-off-by: Jean Privat <jean@pryen.org>

tests/nitg.skip [new file with mode: 0644]
tests/niti.skip [new file with mode: 0644]
tests/tests.sh

diff --git a/tests/nitg.skip b/tests/nitg.skip
new file mode 100644 (file)
index 0000000..781190f
--- /dev/null
@@ -0,0 +1,5 @@
+closure
+init_inherit
+init_linext
+inline
+test_ni_
diff --git a/tests/niti.skip b/tests/niti.skip
new file mode 100644 (file)
index 0000000..781190f
--- /dev/null
@@ -0,0 +1,5 @@
+closure
+init_inherit
+init_linext
+inline
+test_ni_
index 1d77aca..4de1807 100755 (executable)
@@ -149,7 +149,7 @@ function process_result()
 need_skip()
 {
        test "$noskip" = true && return 1
-       if grep "$engine" "sav/$1.skip" >/dev/null 2>&1; then
+       if grep "$engine" "sav/$1.skip" >/dev/null 2>&1 || echo "$1" | grep -f "$engine.skip" >/dev/null 2>&1; then
                ((tapcount=tapcount+1))
                if [ -n "$tap" ]; then
                        echo "ok - $2 # skip"