2 # subdirmk - part of the test suite
3 # Copyright 2019 Mark Wooding
4 # Copyright 2019 Ian Jackson
5 # SPDX-License-Identifier: LGPL-2.0-or-later
6 # There is NO WARRANTY.
14 cd tests/example/example
16 : ----- out of tree build -----
20 >>../src/for-test.sd.mk
21 >>../lib/for-test.mk.in
22 >>../for-test-final.sd.mk
23 .././autogen.sh && ../configure
26 : ----- testing rebuild on input change -----
31 find ! -path './build/*' -type f -print0 \
33 touch -hmd 'now -2000 seconds' --
37 find -type f -print0 \
39 touch -hmd 'now -1000 seconds' --
42 : ----- for-check-1 -----
44 echo 'for-check-1:' >>../src/for-test.sd.mk
46 grep '^for-check-1:' src/Dir.mk || false
48 : ----- for-check-2 -----
50 echo 'for-check-2:' >>../lib/for-test.mk.in
52 grep '^for-check-2:' lib/for-test.mk || false
54 : ----- for-check-3 -----
56 echo 'for-check-3:' >>../for-test-final.sd.mk
58 grep '^for-check-3:' Final.mk