From patchwork Mon Jan 9 15:56:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Liguori X-Patchwork-Id: 135071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7AD1BB6FB9 for ; Tue, 10 Jan 2012 03:43:57 +1100 (EST) Received: from localhost ([::1]:34630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkHf4-0000Ew-8b for incoming@patchwork.ozlabs.org; Mon, 09 Jan 2012 11:01:26 -0500 Received: from eggs.gnu.org ([140.186.70.92]:39632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkHeA-0006ej-En for qemu-devel@nongnu.org; Mon, 09 Jan 2012 11:00:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkHdz-0002AL-01 for qemu-devel@nongnu.org; Mon, 09 Jan 2012 11:00:30 -0500 Received: from e6.ny.us.ibm.com ([32.97.182.146]:45785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkHdy-0002AH-RD for qemu-devel@nongnu.org; Mon, 09 Jan 2012 11:00:18 -0500 Received: from /spool/local by e6.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 9 Jan 2012 11:00:17 -0500 Received: from d01relay05.pok.ibm.com (9.56.227.237) by e6.ny.us.ibm.com (192.168.1.106) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 9 Jan 2012 10:56:46 -0500 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q09Fucca127116 for ; Mon, 9 Jan 2012 10:56:38 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q09Fub0l009496 for ; Mon, 9 Jan 2012 13:56:37 -0200 Received: from titi.austin.rr.com (sig-9-65-217-92.mts.ibm.com [9.65.217.92]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q09FuDUq007421; Mon, 9 Jan 2012 13:56:36 -0200 From: Anthony Liguori To: qemu-devel@nongnu.org Date: Mon, 9 Jan 2012 09:56:12 -0600 Message-Id: <1326124572-8312-11-git-send-email-aliguori@us.ibm.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1326124572-8312-1-git-send-email-aliguori@us.ibm.com> References: <1326124572-8312-1-git-send-email-aliguori@us.ibm.com> x-cbid: 12010915-1976-0000-0000-000009507F83 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 32.97.182.146 Cc: Anthony Liguori , Luiz Capitulino Subject: [Qemu-devel] [PATCH 11/11] check: add a check-report and check-help target X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Anthony Liguori --- 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