X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tests%2Fexample%2Fcheck;h=a051e8ed112275ad52004dd53467742a996fc27d;hb=056283726668515d212889fed6fadb833c9c34c2;hp=003bf81495896c2d91df9ee6367148917120a092;hpb=1217fd3b23c147c0e5edc24f05fc4fce424e490b;p=subdirmk.git diff --git a/tests/example/check b/tests/example/check index 003bf81..a051e8e 100755 --- a/tests/example/check +++ b/tests/example/check @@ -3,11 +3,12 @@ set -ex . tests/build-common -cd example +make_copy example + +cd tests/example/example : ----- out of tree build ----- -git clean -xdff mkdir build cd build >>../src/for-test.sd.mk @@ -18,9 +19,17 @@ make -j4 all check : ----- testing rebuild on input change ----- reset_times () { + cd .. + + find ! -path './build/*' -type f -print0 \ + | xargs -0 \ + touch -hmd 'now -2000 seconds' -- + + cd build + find -type f -print0 \ | xargs -0 \ - touch -hmd 'now -1 seconds' -- + touch -hmd 'now -1000 seconds' -- } : ----- for-check-1 -----