mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 23:33:51 +08:00
c6cf8a2052
Almost all invocations of run-test have either "$* on $(TARGET_NAME)" or "$< on $(TARGET_NAME)" as the last argument. So provide a default test name, while allowing an escape hatch for custom names. As an additional simplification, remove the need to do shell quoting. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220929114231.583801-24-alex.bennee@linaro.org>
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
|
|
VPATH+=$(S390X_SRC)
|
|
CFLAGS+=-march=zEC12 -m64
|
|
TESTS+=hello-s390x
|
|
TESTS+=csst
|
|
TESTS+=ipm
|
|
TESTS+=exrl-trt
|
|
TESTS+=exrl-trtr
|
|
TESTS+=pack
|
|
TESTS+=mie3-compl
|
|
TESTS+=mie3-mvcrl
|
|
TESTS+=mie3-sel
|
|
TESTS+=mvo
|
|
TESTS+=mvc
|
|
TESTS+=shift
|
|
TESTS+=trap
|
|
TESTS+=signals-s390x
|
|
TESTS+=branch-relative-long
|
|
TESTS+=noexec
|
|
|
|
Z14_TESTS=vfminmax
|
|
vfminmax: LDFLAGS+=-lm
|
|
$(Z14_TESTS): CFLAGS+=-march=z14 -O2
|
|
|
|
TESTS+=$(if $(shell $(CC) -march=z14 -S -o /dev/null -xc /dev/null \
|
|
>/dev/null 2>&1 && echo OK),$(Z14_TESTS))
|
|
|
|
VECTOR_TESTS=vxeh2_vs
|
|
VECTOR_TESTS+=vxeh2_vcvt
|
|
VECTOR_TESTS+=vxeh2_vlstr
|
|
$(VECTOR_TESTS): CFLAGS+=-march=z15 -O2
|
|
|
|
TESTS+=$(if $(shell $(CC) -march=z15 -S -o /dev/null -xc /dev/null \
|
|
>/dev/null 2>&1 && echo OK),$(VECTOR_TESTS))
|
|
|
|
ifneq ($(HAVE_GDB_BIN),)
|
|
GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
|
|
|
|
run-gdbstub-signals-s390x: signals-s390x
|
|
$(call run-test, $@, $(GDB_SCRIPT) \
|
|
--gdb $(HAVE_GDB_BIN) \
|
|
--qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
|
|
--bin $< --test $(S390X_SRC)/gdbstub/test-signals-s390x.py, \
|
|
mixing signals and debugging)
|
|
|
|
EXTRA_RUNS += run-gdbstub-signals-s390x
|
|
endif
|
|
|
|
# MVX versions of sha512
|
|
sha512-mvx: CFLAGS=-march=z13 -mvx -O3
|
|
sha512-mvx: sha512.c
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
|
|
|
|
TESTS+=sha512-mvx
|