From: Ian Jackson Date: Wed, 25 Dec 2019 17:28:34 +0000 (+0000) Subject: tests: Shuffle, make tests/check run all the tests X-Git-Tag: subdirmk/0.3~116 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=d7027fc72ca02fd47254ab9f3d2dc90b72b02799;hp=f6e944b37d12b833c47a89b9988d9751c010af26 tests: Shuffle, make tests/check run all the tests Signed-off-by: Ian Jackson --- diff --git a/tests/check b/tests/check index d5d282f..784fc60 100755 --- a/tests/check +++ b/tests/check @@ -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 index 0000000..d5d282f --- /dev/null +++ b/tests/example/check @@ -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.