* [Qemu-devel] [PATCH] tests/Makefile: Don't run any qtests twice
@ 2014-03-31 10:41 Peter Maydell
0 siblings, 0 replies; only message in thread
From: Peter Maydell @ 2014-03-31 10:41 UTC (permalink / raw)
To: qemu-devel; +Cc: Andreas Färber, patches
Commit 3687d5325 accidentally resulted in our running qom-test twice
for x86_64, once directly via the wildcard, and once because x86_64
includes all the i386 qtests (which includes qom-test). Run the list
of qtests through $(sort) to remove duplicates so we only ever run
a qtest once.
Reported-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
tests/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/Makefile b/tests/Makefile
index 2d021fb..21d4197 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -277,6 +277,12 @@ tests/qemu-iotests/socket_scm_helper$(EXESUF): tests/qemu-iotests/socket_scm_hel
# QTest rules
TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS)))
+
+# Now sort to remove possible duplicates resulting from including
+# all of one target's tests in another's (eg i386, x86_64)
+$(foreach TARGET,$(TARGETS), \
+ $(eval check-qtest-$(TARGET)-y := $(sort $(check-qtest-$(TARGET)-y))))
+
QTEST_TARGETS=$(foreach TARGET,$(TARGETS), $(if $(check-qtest-$(TARGET)-y), $(TARGET),))
check-qtest-$(CONFIG_POSIX)=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y))
--
1.9.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-31 10:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-31 10:41 [Qemu-devel] [PATCH] tests/Makefile: Don't run any qtests twice Peter Maydell
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).