chiark / gitweb /
tests: Shuffle, make tests/check run all the tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 25 Dec 2019 17:28:34 +0000 (17:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Dec 2019 22:19:08 +0000 (22:19 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/check
tests/example/check [new file with mode: 0755]

index d5d282ffc4ba4816a36889b44f57516a7a7ceef7..784fc60a17d9a59435a1be5d8463188e6eb64729 100755 (executable)
@@ -1,34 +1,5 @@
 #!/bin/sh
 set -ex
 
-cd example
-
-#----- in-tree build -----
-
-git clean -xdff
-./autogen.sh && ./configure
-make -j4 all check
-make -j4 clean
-make -j4 all check
-
-#----- out of tree build -----
-
-git clean -xdff
-mkdir build
-cd build
->>../src/for-test.sd.mk
->>../lib/for-test.mk.in
-.././autogen.sh && ../configure
-make -j4 all check
-
-#----- testing rebuild on input change -----
-
-echo '# for-check 1' >>../src/for-test.sd.mk
-make -j4
-grep '^# for-check 1' src/Subdir.mk || false
-
-echo '# for-check 2' >>../lib/for-test.mk.in
-make -j4
-grep '^# for-check 2' lib/for-test.mk || false
-
-echo ok.
+tests/filter/check
+tests/example/check
diff --git a/tests/example/check b/tests/example/check
new file mode 100755 (executable)
index 0000000..d5d282f
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+set -ex
+
+cd example
+
+#----- in-tree build -----
+
+git clean -xdff
+./autogen.sh && ./configure
+make -j4 all check
+make -j4 clean
+make -j4 all check
+
+#----- out of tree build -----
+
+git clean -xdff
+mkdir build
+cd build
+>>../src/for-test.sd.mk
+>>../lib/for-test.mk.in
+.././autogen.sh && ../configure
+make -j4 all check
+
+#----- testing rebuild on input change -----
+
+echo '# for-check 1' >>../src/for-test.sd.mk
+make -j4
+grep '^# for-check 1' src/Subdir.mk || false
+
+echo '# for-check 2' >>../lib/for-test.mk.in
+make -j4
+grep '^# for-check 2' lib/for-test.mk || false
+
+echo ok.