chiark / gitweb /
subdirmk: main.mk: clear SUBDIRMK_MAKEFILES MAKEFILE_TEMPLATES
[subdirmk.git] / tests / check
index 85d7637b3af61186800f7abd8e58210adfc0569a..f0914dd597e456fd0a14287f1bb73d6834bcd44a 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-set -e
+set -ex
 
 cd example
 git clean -xdff
@@ -11,5 +11,17 @@ make -j4 all check
 git clean -xdff
 mkdir build
 cd build
+>>../src/for-test.sd.mk
+>>../lib/for-test.mk.in
 .././autogen.sh && ../configure
 make -j4 all check
+
+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.