Skip to contentSkip to conversation

t/perf: "make clean" from the top-level to clean results

RFC/PATCH Junio C Hamano 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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
index 18e2b28..e0aef9a 100644
@@ -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
#1 lore raw
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.

---

* 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

#2 lore raw

Re: [RFC/PATCH] t/perf:

In reply to Junio C Hamano

t/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