X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=blobdiff_plain;f=tests%2Fbuild-common;h=db751cd70b3fb7e6e240aeae674e87e20933fd81;hp=84f95977cbb920bcbf86c7dcfd478cc60c2546ca;hb=39ef3a6488f5e1a6db1dc6531768af2ad0cc2deb;hpb=1217fd3b23c147c0e5edc24f05fc4fce424e490b diff --git a/tests/build-common b/tests/build-common index 84f9597..db751cd 100644 --- a/tests/build-common +++ b/tests/build-common @@ -5,9 +5,14 @@ export SUBDIRMK_REGEN_NDEBUG make_copy () { rm -rf tests/$1/example mkdir tests/$1/example + git ls-files -z example \ | xargs -0 \ sh -xec 'rsync -R -l "$@" tests/'$1'/' x + rm tests/$1/example/subdirmk - ln -sf ../../.. tests/$1/example/subdirmk + + git ls-files -z :. :!example \ + | xargs -0 \ + sh -xec 'rsync -R -l "$@" tests/'$1'/example/subdirmk' x }