1# -*- Mode: makefile -*- 2# 3# Multiarch system tests 4# 5# We just collect the tests together here and rely on the actual guest 6# architecture to add to the test dependancies and deal with the 7# complications of building. 8# 9 10MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch 11MULTIARCH_SYSTEM_SRC=$(MULTIARCH_SRC)/system 12VPATH+=$(MULTIARCH_SYSTEM_SRC) 13 14MULTIARCH_TEST_SRCS=$(wildcard $(MULTIARCH_SYSTEM_SRC)/*.c) 15MULTIARCH_TESTS = $(patsubst $(MULTIARCH_SYSTEM_SRC)/%.c, %, $(MULTIARCH_TEST_SRCS)) 16 17ifneq ($(HAVE_GDB_BIN),) 18ifeq ($(HOST_GDB_SUPPORTS_ARCH),y) 19GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py 20 21run-gdbstub-memory: memory 22 $(call run-test, $@, $(GDB_SCRIPT) \ 23 --gdb $(HAVE_GDB_BIN) \ 24 --qemu $(QEMU) \ 25 --output $<.gdb.out \ 26 --qargs \ 27 "-monitor none -display none -chardev file$(COMMA)path=$<.out$(COMMA)id=output $(QEMU_OPTS)" \ 28 --bin $< --test $(MULTIARCH_SRC)/gdbstub/memory.py, \ 29 softmmu gdbstub support) 30else 31run-gdbstub-%: 32 $(call skip-test, "gdbstub test $*", "no guest arch support") 33endif 34else 35run-gdbstub-%: 36 $(call skip-test, "gdbstub test $*", "need working gdb") 37endif 38 39MULTIARCH_RUNS += run-gdbstub-memory 40