[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/11] check: add a check-report and check-help targ
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 11/11] check: add a check-report and check-help target |
Date: |
Mon, 9 Jan 2012 09:56:12 -0600 |
Signed-off-by: Anthony Liguori <address@hidden>
---
tests/Makefile | 43 ++++++++++++++++++++++++++++++++++++++++---
1 files changed, 40 insertions(+), 3 deletions(-)
diff --git a/tests/Makefile b/tests/Makefile
index cba482f..7228f44 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -33,6 +33,43 @@ test-qmp-input-visitor: test-qmp-input-visitor.o
$(qobject-obj-y) $(qapi-obj-y)
test-qmp-commands.o: $(addprefix $(qapi-dir)/, test-qapi-types.c
test-qapi-types.h test-qapi-visit.c test-qapi-visit.h test-qmp-marshal.c
test-qmp-commands.h) $(qapi-obj-y)
test-qmp-commands: test-qmp-commands.o $(qobject-obj-y) $(qapi-obj-y)
$(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o
$(qapi-dir)/test-qmp-marshal.o module.o
-.PHONY: check
-check: $(CHECKS)
- gtester $(CHECKS)
+check: check-quick
+
+check-slow: $(CHECKS)
+ gtester -m=slow $(CHECKS)
+
+check-quick: $(CHECKS)
+ gtester -m=quick $(CHECKS)
+
+check-perf: $(CHECKS)
+ gtester -m=perf $(CHECKS)
+
+check-help:
+ @echo "Regression targets:"
+ @echo
+ @echo " make check Alias for 'make check-quick'"
+ @echo " make check-quick Run all unit tests in 'quick' mode"
+ @echo " make check-slow Run all unit tests in 'slow' mode"
+ @echo " make check-perf Run all unit tests in 'perf' mode"
+ @echo
+ @echo " make check-report Alias for 'make check-report-quick'"
+ @echo " make check-report-quick Generate an HTML report for
check-quick"
+ @echo " make check-report-slow Generate an HTML report for
check-slow"
+ @echo " make check-report-perf Generate an HTML report for
check-perf"
+ @echo
+ @echo "Please note that HTML reports do not regenerate if the unit
tests"
+ @echo "has not changed."
+
+check-report-%.log: $(CHECKS)
+ gtester -m=`echo $@ | cut -f3 -d- | cut -f1 -d.` -o $@ $^
+
+check-report-%.html: check-report-%.log
+ gtester-report $< > $@
+
+check-report-quick: check-report-quick.html
+check-report-slow: check-report-slow.html
+check-report-perf: check-report-perf.html
+
+check-report: check-report-quick
+
+.PHONY: check check-quick check-slow check-perf check-help
--
1.7.4.1
- [Qemu-devel] [PATCH 10/11] test: eliminate libcheck tests and have make check use gtester, (continued)
- [Qemu-devel] [PATCH 11/11] check: add a check-report and check-help target,
Anthony Liguori <=
- [Qemu-devel] [PATCH 08/11] check-qjson: convert to gtest, Anthony Liguori, 2012/01/09
- [Qemu-devel] [PATCH 04/11] check-qfloat: convert to gtest, Anthony Liguori, 2012/01/09
- Re: [Qemu-devel] [PATCH 01/11] tests: mv tests/* -> tests/tcg, Andreas Färber, 2012/01/09
- [Qemu-devel] Please read: make check framework, Anthony Liguori, 2012/01/09