tests: split testfull.sh into listfull.sh that just lists testfiles
authorJean Privat <jean@pryen.org>
Thu, 28 Aug 2014 03:33:53 +0000 (23:33 -0400)
committerJean Privat <jean@pryen.org>
Thu, 28 Aug 2014 19:48:09 +0000 (15:48 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/listfull.sh [new file with mode: 0755]
tests/testfull.sh

diff --git a/tests/listfull.sh b/tests/listfull.sh
new file mode 100755 (executable)
index 0000000..ccba510
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+list=""
+for x in ../lib/*
+do
+       bx=`basename $x`
+       y="$x/$bx.nit"
+       test -f $y && list="$list $y"
+done
+printf "%s\n" "$@" *.nit \
+       ../examples/*.nit \
+       ../examples/*/*.nit \
+       ../examples/shoot/src/shoot_logic.nit \
+       ../examples/*/src/*_android.nit \
+       ../examples/*/src/*_linux.nit \
+       ../examples/*/src/*_null.nit \
+       ../examples/pnacl/converter/converter.nit \
+       ../lib/*.nit $list \
+       ../src/nit*.nit \
+       ../src/test_*.nit \
+       ../contrib/*.nit \
+       ../contrib/*/*.nit \
+       ../contrib/*/src/*.nit
index dd2352e..6d159e9 100755 (executable)
@@ -1,22 +1,2 @@
 #!/bin/sh
-list=""
-for x in ../lib/*
-do
-       bx=`basename $x`
-       y="$x/$bx.nit"
-       test -f $y && list="$list $y"
-done
-./tests.sh "$@" *.nit \
-       ../examples/*.nit \
-       ../examples/*/*.nit \
-       ../examples/shoot/src/shoot_logic.nit \
-       ../examples/*/src/*_android.nit \
-       ../examples/*/src/*_linux.nit \
-       ../examples/*/src/*_null.nit \
-       ../examples/pnacl/converter/converter.nit \
-       ../lib/*.nit $list \
-       ../src/nit*.nit \
-       ../src/test_*.nit \
-       ../contrib/*.nit \
-       ../contrib/*/*.nit \
-       ../contrib/*/src/*.nit
+./tests.sh "$@" `./listfull.sh`