From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqCXi-0001yc-Aj for qemu-devel@nongnu.org; Wed, 15 Oct 2008 16:00:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqCXg-0001xq-Kg for qemu-devel@nongnu.org; Wed, 15 Oct 2008 16:00:25 -0400 Received: from [199.232.76.173] (port=36833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqCXg-0001xk-Ba for qemu-devel@nongnu.org; Wed, 15 Oct 2008 16:00:24 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:36971) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KqCXf-0008K1-Og for qemu-devel@nongnu.org; Wed, 15 Oct 2008 16:00:24 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e2.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m9FJrb7v009967 for ; Wed, 15 Oct 2008 15:53:37 -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 m9FJrbuK074076 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 m9FJraTw004322 for ; Wed, 15 Oct 2008 15:53:37 -0400 From: Ryan Harper Date: Wed, 15 Oct 2008 14:53:34 -0500 Message-Id: <1224100414-14925-3-git-send-email-ryanh@us.ibm.com> In-Reply-To: <1224100414-14925-1-git-send-email-ryanh@us.ibm.com> References: <1224100414-14925-1-git-send-email-ryanh@us.ibm.com> Subject: [Qemu-devel] [PATCH 2/2] Integrate qemu-test into make system Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Ryan Harper , kvm@vger.kernel.org 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)