mirror of https://github.com/xemu-project/xemu.git
tests/tcg: add QEMU_OPT option for test runner
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>
This commit is contained in:
parent
e24e66f06d
commit
3d55c02624
|
@ -54,10 +54,13 @@ LDFLAGS=
|
||||||
# The QEMU for this TARGET
|
# The QEMU for this TARGET
|
||||||
ifdef CONFIG_USER_ONLY
|
ifdef CONFIG_USER_ONLY
|
||||||
QEMU=../qemu-$(TARGET_NAME)
|
QEMU=../qemu-$(TARGET_NAME)
|
||||||
|
QEMU_OPTS=
|
||||||
else
|
else
|
||||||
QEMU=../qemu-system-$(TARGET_NAME)
|
QEMU=../qemu-system-$(TARGET_NAME)
|
||||||
|
QEMU_OPTS=-monitor none -display none
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# If TCG debugging is enabled things are a lot slower
|
# If TCG debugging is enabled things are a lot slower
|
||||||
ifeq ($(CONFIG_DEBUG_TCG),y)
|
ifeq ($(CONFIG_DEBUG_TCG),y)
|
||||||
TIMEOUT=45
|
TIMEOUT=45
|
||||||
|
@ -108,7 +111,7 @@ RUN_TESTS=$(patsubst %,run-%, $(TESTS))
|
||||||
RUN_TESTS+=$(EXTRA_RUNS)
|
RUN_TESTS+=$(EXTRA_RUNS)
|
||||||
|
|
||||||
run-%: %
|
run-%: %
|
||||||
$(call run-test, $<, $(QEMU) $<, "$< on $(TARGET_NAME)")
|
$(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<, "$< on $(TARGET_NAME)")
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run: $(RUN_TESTS)
|
run: $(RUN_TESTS)
|
||||||
|
|
Loading…
Reference in New Issue