Browse files

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 <>
Signed-off-by: Junio C Hamano <>
  • Loading branch information...
1 parent e8dde3e commit 60f26f634875b8fd2e8172ecf8c81d885c3d82f7 @mhagger mhagger committed with gitster May 2, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 t/Makefile
@@ -28,17 +28,19 @@ test: pre-clean $(TEST_LINT)
prove: pre-clean $(TEST_LINT)
@echo "*** prove ***"; GIT_CONFIG=.git/config $(PROVE) --exec '$(SHELL_PATH_SQ)' $(GIT_PROVE_OPTS) $(T) :: $(GIT_TEST_OPTS)
- $(MAKE) clean
+ $(MAKE) clean-except-prove-cache
@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
$(RM) -r test-results
$(RM) -r 'trash directory'.* test-results
$(RM) -r valgrind/bin
+clean: clean-except-prove-cache
$(RM) .prove
test-lint: test-lint-duplicates test-lint-executable

0 comments on commit 60f26f6

Please sign in to comment.