t/perf: "make clean" from the top-level to clean results
Running "make clean" from the top-level after running perf tests left t/perf/test-results/ directory and tons of files in it. At least "make distclean" should turn things back to pristine state.
---
* Perhaps I am missing some reason why this was deliberately left out when we added t/perf/Makefile that does have the clean target? Cc'ing the suspects found by "shortlog t/perf".
t/Makefile | 1 + 1 file changed, 1 insertion(+)
t/Makefile +1 -0
@@ -48,6 +48,7 @@ pre-clean: clean-except-prove-cache: $(RM) -r 'trash directory'.* '$(TEST_RESULTS_DIRECTORY_SQ)' $(RM) -r valgrind/bin + cd perf && $(MAKE) clean clean: clean-except-prove-cache $(RM) .prove
Quoted 10 lines · Junio C Hamano
Running "make clean" from the top-level after running perf tests left t/perf/test-results/ directory and tons of files in it. At least "make distclean" should turn things back to pristine state.
Signed-off-by Junio C Hamano <[email protected]>---
* Perhaps I am missing some reason why this was deliberately left out when we added t/perf/Makefile that does have the clean target? Cc'ing the suspects found by "shortlog t/perf".
I don't think I've ever touched the "clean" code path.
This change is fine by me. I have noticed that the contents of t/perf/build can pile up and consume quite a lot of space, as they are all full builds of git. They're a little more expensive to reproduce than some other things, but they're inherently still a cache. I think your patch is doing the right thing.
-Peff
Re: [RFC/PATCH] t/perf:
In reply to Junio C Hamanot/Makefile pre-clean: · line 51
Quoted 1 line · Junio C Hamano <gitster <at> pobox.com> writes:
t/Makefile +1
-0+ cd perf && $(MAKE) clean
I think the clean way to do this is
$(make) -C perf clean
Regards,
Beat