diff --git a/test/Makefile.in b/test/Makefile.in index 969b49b8f..6554bc805 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -29,6 +29,7 @@ include $(top_builddir)/make.tmpl T ?= . S ?= @ # never match anything by default VERBOSE ?= 0 +ALL = $(shell find $(srcdir) \( -name t-\*.sh -or -path */api/\*.sh \) | sort) RUN = $(shell find $(srcdir) -regextype posix-egrep \( -name t-\*.sh -or -path */api/\*.sh \) -and -regex "$(srcdir)/.*($(T)).*" -and -not -regex "$(srcdir)/.*($(S)).*" | sort) RUN_BASE = $(shell echo $(RUN) | xargs -n 1 echo | sed -e s,^$(srcdir)/,,) @@ -80,10 +81,10 @@ LIB = lib/not lib/should lib/harness \ lib/check lib/aux lib/test lib/utils lib/get lib/lvm-wrapper \ lib/paths -.tests-stamp: $(RUN) $(LIB) +.tests-stamp: $(ALL) $(LIB) @if test "$(srcdir)" != . ; then \ echo "Copying tests to builddir."; \ - for f in $(RUN); do cp $$f `echo $$f | sed -e s,^$(srcdir)/,,`; done; \ + for f in $(ALL); do cp $$f `echo $$f | sed -e s,^$(srcdir)/,,`; done; \ fi touch .tests-stamp