chiark / gitweb /
d5d282ffc4ba4816a36889b44f57516a7a7ceef7
[subdirmk.git] / tests / example / check
1 #!/bin/sh
2 set -ex
3
4 cd example
5
6 #----- in-tree build -----
7
8 git clean -xdff
9 ./autogen.sh && ./configure
10 make -j4 all check
11 make -j4 clean
12 make -j4 all check
13
14 #----- out of tree build -----
15
16 git clean -xdff
17 mkdir build
18 cd build
19 >>../src/for-test.sd.mk
20 >>../lib/for-test.mk.in
21 .././autogen.sh && ../configure
22 make -j4 all check
23
24 #----- testing rebuild on input change -----
25
26 echo '# for-check 1' >>../src/for-test.sd.mk
27 make -j4
28 grep '^# for-check 1' src/Subdir.mk || false
29
30 echo '# for-check 2' >>../lib/for-test.mk.in
31 make -j4
32 grep '^# for-check 2' lib/for-test.mk || false
33
34 echo ok.