From: Ryan Harper Subject: [PATCH 2/2] Integrate qemu-test into make system Date: Wed, 15 Oct 2008 14:53:34 -0500 Message-ID: <1224100414-14925-3-git-send-email-ryanh@us.ibm.com> References: <1224100414-14925-1-git-send-email-ryanh@us.ibm.com> Cc: Ryan Harper , Anthony Liguori , kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from e6.ny.us.ibm.com ([32.97.182.146]:59206 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753678AbYJOTxt (ORCPT ); Wed, 15 Oct 2008 15:53:49 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e6.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m9FJuPpP022570 for ; Wed, 15 Oct 2008 15:56:25 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9FJrbbZ083040 for ; Wed, 15 Oct 2008 15:53:37 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9FJraU2004322 for ; Wed, 15 Oct 2008 15:53:37 -0400 In-Reply-To: <1224100414-14925-1-git-send-email-ryanh@us.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: This patch integrates qemu-test into the Make system for qemu. Providing a new target at the toplevel and invoking the included Makefile in qemu-test to execute testing. Invoking make qemu-test from the toplevel will run qemu-test across each configured target, for example, if qemu was configured with: ./configure --target-list="i386-softmmu x86_64-softmmu" then qemu-test will execute the tests against the above targets. Signed-off-by: Ryan Harper diff --git a/Makefile b/Makefile index 36b36cd..0a40827 100644 --- a/Makefile +++ b/Makefile @@ -252,6 +252,9 @@ endif test speed: all $(MAKE) -C tests $@ +qemu-test: all + $(MAKE) -C tests $@ + TAGS: etags *.[ch] tests/*.[ch] diff --git a/tests/Makefile b/tests/Makefile index 326b733..d769662 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -103,6 +103,13 @@ hello-mipsel: hello-mips.c test-cris: $(MAKE) -C cris check +SUBDIR_RULES=$(patsubst %,qemu-%, $(TARGET_DIRS)) +qemu-%: + $(MAKE) -C qemu-test QEMU=../../$(subst qemu-,,$@) all +recurse-all: $(SUBDIR_RULES) +.PHONY: qemu-test +qemu-test: recurse-all + clean: rm -f *~ *.o test-i386.out test-i386.ref \ test-x86_64.log test-x86_64.ref qruncom $(TESTS)