[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] Integrate qemu-test into make system
From: |
Ryan Harper |
Subject: |
[Qemu-devel] [PATCH 2/2] Integrate qemu-test into make system |
Date: |
Wed, 15 Oct 2008 14:53:34 -0500 |
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 <address@hidden>
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)