From: Ryan Harper <ryanh@us.ibm.com>
To: qemu-devel@nongnu.org
Cc: Anthony Liguori <aliguori@us.ibm.com>,
Ryan Harper <ryanh@us.ibm.com>,
kvm@vger.kernel.org
Subject: [Qemu-devel] [PATCH 2/2] Integrate qemu-test into make system
Date: Wed, 15 Oct 2008 14:53:34 -0500 [thread overview]
Message-ID: <1224100414-14925-3-git-send-email-ryanh@us.ibm.com> (raw)
In-Reply-To: <1224100414-14925-1-git-send-email-ryanh@us.ibm.com>
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 <ryanh@us.ibm.com>
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)
prev parent reply other threads:[~2008-10-15 20:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 19:53 [Qemu-devel] [PATCH 0/2] Add qemu-test for automated testing Ryan Harper
2008-10-15 19:53 ` [Qemu-devel] [PATCH 1/2] " Ryan Harper
2008-10-15 22:59 ` Paul Brook
2008-10-16 4:25 ` Anthony Liguori
2008-10-15 19:53 ` Ryan Harper [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1224100414-14925-3-git-send-email-ryanh@us.ibm.com \
--to=ryanh@us.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).