diff mbox series

[RFC,03/13] tests/tcg: add QEMU_OPT option for test runner

Message ID 20181210152829.29271-4-alex.bennee@linaro.org
State New
Headers show
Series Enabling tcg/tests for xtensa, mips and cris | expand

Commit Message

Alex Bennée Dec. 10, 2018, 3:28 p.m. UTC
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>

---
 tests/tcg/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.17.1

Comments

Richard Henderson Dec. 11, 2018, 1:39 p.m. UTC | #1
On 12/10/18 9:28 AM, Alex Bennée wrote:
> This will allow tests to modify the QEMU invocation with for example

> different -cpu stazas without having to define a whole new set of


"stanzas"

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>



r~
diff mbox series

Patch

diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
index d6a7fee2e7..e7215e8455 100644
--- a/tests/tcg/Makefile
+++ b/tests/tcg/Makefile
@@ -58,6 +58,8 @@  else
 QEMU=../qemu-system-$(TARGET_NAME)
 endif
 
+QEMU_OPTS=
+
 # If TCG debugging is enabled things are a lot slower
 ifeq ($(CONFIG_DEBUG_TCG),y)
 TIMEOUT=45
@@ -108,7 +110,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) $(QEMU_OPTS)")
 
 .PHONY: run
 run: $(RUN_TESTS)