[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V18 01/10] build: add command check-clean
From: |
Wenchao Xia |
Subject: |
[Qemu-devel] [PATCH V18 01/10] build: add command check-clean |
Date: |
Sat, 9 Feb 2013 15:42:30 +0800 |
This command will package the clean operations in tests,
to make it easy to be extended. Now root Makefile simply calls
the command and do not care the details of it any more.
Signed-off-by: Wenchao Xia <address@hidden>
---
Makefile | 1 -
tests/Makefile | 8 +++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 0d9099a..b2d7798 100644
--- a/Makefile
+++ b/Makefile
@@ -225,7 +225,6 @@ clean:
rm -f $(foreach f,$(GENERATED_SOURCES),$(f) $(f)-timestamp)
rm -rf qapi-generated
rm -rf qga/qapi-generated
- $(MAKE) -C tests/tcg clean
for d in $(ALL_SUBDIRS); do \
if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
rm -f $$d/qemu-options.def; \
diff --git a/tests/Makefile b/tests/Makefile
index a2d62b8..8e7a854 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -150,6 +150,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."
@@ -209,10 +210,15 @@ 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-unit-y) $(check-qtest-i386-y) $(check-qtest-x86_64-y)
$(check-qtest-sparc64-y) $(check-qtest-sparc-y) tests/*.o
+
+clean: check-clean
-include $(wildcard tests/*.d)
--
1.7.1
- [Qemu-devel] [PATCH V18 00/10] libqblock qemu block layer library, Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 03/10] libqblock: build: add configure support, Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 04/10] libqblock: build: add rule for libqblock.la, Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 01/10] build: add command check-clean,
Wenchao Xia <=
- [Qemu-devel] [PATCH V18 02/10] build: hide symbols in *.lo, Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 05/10] libqblock: build: add packaging support, Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 06/10] block: export function path_has_protocol(), Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 07/10] libqblock: libqblock API design and type defines, Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 08/10] libqblock: libqblock API implement, Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 09/10] libqblock: build: add rules for test case, Wenchao Xia, 2013/02/09
- [Qemu-devel] [PATCH V18 10/10] libqblock: test: libqblock test example, Wenchao Xia, 2013/02/09