t/Makefile: retain cache t/.prove across prove runs
prove(1) can write a summary of its test results and timings into a cache file, t/.prove, then use this information during later runs for various purposes. But deleting t/.prove after every test run defeats this purpose. So do not delete t/.prove as part of "make DEFAILT_TEST_TARGET=prove test". (Continue to delete the file on "make clean".) Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Haggerty committed
May 2, 2012 at 17:31 UTC
60f26f634875b8fd2e8172ecf8c81d885c3d82f7
1 file changed
+4
-2
t/Makefile
+4
-2
@@ -28,7 +28,7 @@ test: pre-clean $(TEST_LINT)
28
29
prove: pre-clean $(TEST_LINT)
30
@echo "*** prove ***"; GIT_CONFIG=.git/config $(PROVE) --exec '$(SHELL_PATH_SQ)' $(GIT_PROVE_OPTS) $(T) :: $(GIT_TEST_OPTS)
31
- $(MAKE) clean
31
+ $(MAKE) clean-except-prove-cache
32
33
$(T):
34
@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
@@ -36,9 +36,11 @@ $(T):
36
pre-clean:
37
$(RM) -r test-results
38
39
-clean:
39
+clean-except-prove-cache:
40
$(RM) -r 'trash directory'.* test-results
41
$(RM) -r valgrind/bin
42
+
43
+clean: clean-except-prove-cache
44
$(RM) .prove
45
46
test-lint: test-lint-duplicates test-lint-executable