tests/tcg/s390x: Allow specifying extra QEMU options on the command line
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 22 May 2024 18:38:48 +0000 (20:38 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 12 Jun 2024 10:12:28 +0000 (12:12 +0200)
The use case for this is `make check-tcg EXTFLAGS="-accel kvm"`,
which allows validating the system TCG testcases on real hardware.
EXTFLAGS name is borrowed from tests/tcg/xtensa/Makefile.softmmu-target.
While at it, use += instead of = in order to be consistent with the
other architectures.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20240522184116.35975-1-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/tcg/s390x/Makefile.softmmu-target

index 80159cccf529126502e19e4e35c36cbef155f0cb..4c8e15e6255a8c77edd0d48fccc94ca7d2de589b 100644 (file)
@@ -1,6 +1,6 @@
 S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
 VPATH+=$(S390X_SRC)
-QEMU_OPTS=-action panic=exit-failure -nographic -kernel
+QEMU_OPTS+=-action panic=exit-failure -nographic $(EXTFLAGS) -kernel
 LINK_SCRIPT=$(S390X_SRC)/softmmu.ld
 CFLAGS+=-ggdb -O0
 LDFLAGS=-nostdlib -static