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>
This commit is contained in:
parent
e8dde3e5f9
commit
60f26f6348
@ -28,7 +28,7 @@ test: pre-clean $(TEST_LINT)
|
|||||||
|
|
||||||
prove: 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)
|
@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
|
||||||
|
|
||||||
$(T):
|
$(T):
|
||||||
@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
|
@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
|
||||||
@ -36,9 +36,11 @@ $(T):
|
|||||||
pre-clean:
|
pre-clean:
|
||||||
$(RM) -r test-results
|
$(RM) -r test-results
|
||||||
|
|
||||||
clean:
|
clean-except-prove-cache:
|
||||||
$(RM) -r 'trash directory'.* test-results
|
$(RM) -r 'trash directory'.* test-results
|
||||||
$(RM) -r valgrind/bin
|
$(RM) -r valgrind/bin
|
||||||
|
|
||||||
|
clean: clean-except-prove-cache
|
||||||
$(RM) .prove
|
$(RM) .prove
|
||||||
|
|
||||||
test-lint: test-lint-duplicates test-lint-executable
|
test-lint: test-lint-duplicates test-lint-executable
|
||||||
|
Loading…
Reference in New Issue
Block a user