From bbb6d43d7a166e7207e80b03dbbf5778ce646d32 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Wed, 5 Sep 2018 10:55:50 -0400 Subject: [PATCH] t/Makefile: refer to TEST_SRCS instead of pattern In preparation to mark test sources as .PHONY, let's keep track of a list of them so that we can eventually write: .PHONY : $(TEST_SRCS) In the meantime, we'll replace the pattern "./t-%.sh", which will not introduce a meaningful behavior change. --- t/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/Makefile b/t/Makefile index 846063df..95b3b1d5 100644 --- a/t/Makefile +++ b/t/Makefile @@ -19,6 +19,8 @@ TEST_CMDS += ../bin/lfstest-gitserver$X TEST_CMDS += ../bin/lfstest-standalonecustomadapter$X TEST_CMDS += ../bin/lfstest-testutils$X +TEST_SRCS = $(wildcard t-*.sh) + all : $(DEFAULT_TEST_TARGET) test : $(TEST_CMDS) @@ -27,7 +29,7 @@ test : $(TEST_CMDS) $(PROVE) $(PROVE_EXTRA_ARGS) ./t-*.sh @GIT_LFS_NO_TEST_COUNT= bash -c '. ./testenv.sh && shutdown' -./t-%.sh : $(TEST_CMDS) +$(TEST_SRCS) : $(TEST_CMDS) $(RM) -r remote test_count{,.lock} $(PROVE) -v $(PROVE_EXTRA_ARGS) $@