tests: add `exec.skip` to compile but not execute tests
authorJean Privat <jean@pryen.org>
Sat, 26 Apr 2014 02:09:35 +0000 (22:09 -0400)
committerJean Privat <jean@pryen.org>
Sat, 26 Apr 2014 14:39:19 +0000 (10:39 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

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

diff --git a/tests/exec.skip b/tests/exec.skip
new file mode 100644 (file)
index 0000000..72c5135
--- /dev/null
@@ -0,0 +1,7 @@
+example_exec_ls
+dino_linux
+moles_linux
+simple_linux
+shoot_linux
+websocket_server
+nitdbg_websocket_server
index 44ae356..da605a8 100755 (executable)
@@ -242,6 +242,16 @@ need_skip()
        return 1
 }
 
+skip_exec()
+{
+       test "$noskip" = true && return 1
+       if echo "$1" | grep -f "exec.skip" >/dev/null 2>&1; then
+               echo -n "_ "
+               return 0
+       fi
+       return 1
+}
+
 find_nitc()
 {
        ((tapcount=tapcount+1))
@@ -428,6 +438,10 @@ END
                        test -z "$tap" && echo -n "! "
                        cat "$ff.compile.log" "$ff.cmp.err" > "$ff.res"
                        process_result $bf $bf $pack
+               elif skip_exec "$bf"; then
+                       # No exec
+                       > "$ff.res"
+                       process_result $bf $bf $pack
                elif [ -x "./$ff.bin" ]; then
                        test -z "$tap" && echo -n ". "
                        # Execute