From 127a61597ed4cc136cdc61a38cc2bf8f9a3c9e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Mon, 1 Dec 2014 10:43:41 -0600 Subject: [PATCH] Add/invoke "distclean" for testing directories. BIT-1292 #close --- Makefile | 1 + testing/Makefile | 4 ++++ testing/btest/Makefile | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 49d9a6173c..9feaecd656 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ bindist: distclean: rm -rf $(BUILD) + $(MAKE) -C testing $@ test: @( cd testing && make ) diff --git a/testing/Makefile b/testing/Makefile index d56ee4e0e1..122262f865 100644 --- a/testing/Makefile +++ b/testing/Makefile @@ -5,6 +5,10 @@ all: make-verbose coverage brief: make-brief coverage +distclean: + @rm -f coverage.log + $(MAKE) -C btest $@ + make-verbose: @for repo in $(DIRS); do (cd $$repo && make -s ); done diff --git a/testing/btest/Makefile b/testing/btest/Makefile index 261c7262b0..56bf8f0a7e 100644 --- a/testing/btest/Makefile +++ b/testing/btest/Makefile @@ -21,6 +21,13 @@ cleanup: @rm -f $(DIAG) @rm -f .tmp/script-coverage* +distclean: cleanup + @rm -rf .btest.failed.dat \ + coverage.log \ + diag.log \ + .tmp/ + + # Updates the three coverage tests that usually need tweaking when # scripts get added/removed. update-coverage-tests: