]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/tcg: add QEMU_OPT option for test runner
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 6 Dec 2018 11:09:17 +0000 (11:09 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 12 Mar 2019 17:05:21 +0000 (17:05 +0000)
This will allow tests to modify the QEMU invocation with for example
different -cpu stazas without having to define a whole new set of
runner types.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
tests/tcg/Makefile

index 55feab0f67908bf250eeb02b8d3f78c74b0e324d..454d0a4119b6a0d4a4a8eb7f002991db299cb75f 100644 (file)
@@ -54,10 +54,13 @@ LDFLAGS=
 # The QEMU for this TARGET
 ifdef CONFIG_USER_ONLY
 QEMU=../qemu-$(TARGET_NAME)
+QEMU_OPTS=
 else
 QEMU=../qemu-system-$(TARGET_NAME)
+QEMU_OPTS=-monitor none -display none
 endif
 
+
 # If TCG debugging is enabled things are a lot slower
 ifeq ($(CONFIG_DEBUG_TCG),y)
 TIMEOUT=45
@@ -108,7 +111,7 @@ RUN_TESTS=$(patsubst %,run-%, $(TESTS))
 RUN_TESTS+=$(EXTRA_RUNS)
 
 run-%: %
-       $(call run-test, $<, $(QEMU) $<, "$< on $(TARGET_NAME)")
+       $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<, "$< on $(TARGET_NAME)")
 
 .PHONY: run
 run: $(RUN_TESTS)