qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH V14 01/10] build: add command check-clean


From: Wenchao Xia
Subject: [Qemu-devel] [PATCH V14 01/10] build: add command check-clean
Date: Wed, 23 Jan 2013 19:17:58 +0800

  This command will package the clean operations in tests,
to make it easy to be extended.

Signed-off-by: Wenchao Xia <address@hidden>
---
 tests/Makefile |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/tests/Makefile b/tests/Makefile
index d86e95a..9a759a1 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -122,6 +122,11 @@ qtest-obj-y = tests/libqtest.o libqemuutil.a libqemustub.a
 qtest-obj-y += tests/libi2c.o tests/libi2c-omap.o
 $(check-qtest-y): $(qtest-obj-y)
 
+#clean rules
+
+CHECK_CLEAN_TARGETS=$(check-unit-y) $(check-qtest-i386-y) 
$(check-qtest-x86_64-y) $(check-qtest-sparc64-y) $(check-qtest-sparc-y) 
tests/*.o
+SUBDIR_CLEAN_RULES+=check-clean
+
 .PHONY: check-help
 check-help:
        @echo "Regression testing targets:"
@@ -132,6 +137,7 @@ check-help:
        @echo " make check-unit           Run qobject tests"
        @echo " make check-block          Run block tests"
        @echo " make check-report.html    Generates an HTML test report"
+       @echo " make check-clean          Clean the tests"
        @echo
        @echo "Please note that HTML reports do not regenerate if the unit 
tests"
        @echo "has not changed."
@@ -191,10 +197,14 @@ check-tests/qemu-iotests-quick.sh: 
tests/qemu-iotests-quick.sh qemu-img$(EXESUF)
 
 # Consolidated targets
 
-.PHONY: check-qtest check-unit check
+.PHONY: check-qtest check-unit check check-clean
 check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS))
 check-unit: $(patsubst %,check-%, $(check-unit-y))
 check-block: $(patsubst %,check-%, $(check-block-y))
 check: check-unit check-qtest
 
+check-clean:
+       $(MAKE) -C tests/tcg clean
+       rm -rf $(CHECK_CLEAN_TARGETS)
+
 -include $(wildcard tests/*.d)
-- 
1.7.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]