Lines Matching +full:- +full:- +full:-
1 # -*- Mode: makefile -*-
3 # Multiarch Tests - included from tests/tcg/Makefile.target
13 ifeq ($(filter %-linux-user, $(TARGET)),$(TARGET))
24 float_%: LDFLAGS+=-lm
26 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< $(MULTIARCH_SRC)/libs/float_helpers.c -o $@ $(LDFLAGS)
28 run-float_%: float_%
29 $(call run-test,$<, $(QEMU) $(QEMU_OPTS) $<)
30 $(call conditional-diff-out,$<,$(SRC_PATH)/tests/tcg/$(TARGET_NAME)/$<.ref)
33 testthread: LDFLAGS+=-lpthread
35 threadcount: LDFLAGS+=-lpthread
37 signals: LDFLAGS+=-lrt -lpthread
39 munmap-pthread: CFLAGS+=-pthread
40 munmap-pthread: LDFLAGS+=-pthread
42 vma-pthread: CFLAGS+=-pthread
43 vma-pthread: LDFLAGS+=-pthread
45 sigreturn-sigmask: CFLAGS+=-pthread
46 sigreturn-sigmask: LDFLAGS+=-pthread
54 sha1: CFLAGS+=-Wno-stringop-overread -Wno-unknown-warning-option
56 # The vma-pthread seems very sensitive on gitlab and we currently
59 run-vma-pthread: vma-pthread
60 $(call skip-test, $<, "flaky on CI?")
61 run-plugin-vma-pthread-with-%: vma-pthread
62 $(call skip-test, $<, "flaky on CI?")
65 run-test-mmap: test-mmap
66 $(call run-test, test-mmap, $(QEMU) $<, $< (default))
69 GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
71 run-gdbstub-sha1: sha1
72 $(call run-test, $@, $(GDB_SCRIPT) \
73 --gdb $(GDB) \
74 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
75 --bin $< --test $(MULTIARCH_SRC)/gdbstub/sha1.py, \
78 run-gdbstub-qxfer-auxv-read: sha1
79 $(call run-test, $@, $(GDB_SCRIPT) \
80 --gdb $(GDB) \
81 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
82 --bin $< --test $(MULTIARCH_SRC)/gdbstub/test-qxfer-auxv-read.py, \
85 run-gdbstub-qxfer-siginfo-read: segfault
86 $(call run-test, $@, $(GDB_SCRIPT) \
87 --gdb $(GDB) \
88 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
89 --bin "$< -s" --test $(MULTIARCH_SRC)/gdbstub/test-qxfer-siginfo-read.py, \
92 run-gdbstub-proc-mappings: sha1
93 $(call run-test, $@, $(GDB_SCRIPT) \
94 --gdb $(GDB) \
95 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
96 --bin $< --test $(MULTIARCH_SRC)/gdbstub/test-proc-mappings.py, \
99 run-gdbstub-thread-breakpoint: testthread
100 $(call run-test, $@, $(GDB_SCRIPT) \
101 --gdb $(GDB) \
102 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
103 --bin $< --test $(MULTIARCH_SRC)/gdbstub/test-thread-breakpoint.py, \
104 hitting a breakpoint on non-main thread)
106 run-gdbstub-registers: sha512
107 $(call run-test, $@, $(GDB_SCRIPT) \
108 --gdb $(GDB) \
109 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
110 --bin $< --test $(MULTIARCH_SRC)/gdbstub/registers.py, \
113 run-gdbstub-prot-none: prot-none
114 $(call run-test, $@, env PROT_NONE_PY=1 $(GDB_SCRIPT) \
115 --gdb $(GDB) \
116 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
117 --bin $< --test $(MULTIARCH_SRC)/gdbstub/prot-none.py, \
120 run-gdbstub-catch-syscalls: catch-syscalls
121 $(call run-test, $@, $(GDB_SCRIPT) \
122 --gdb $(GDB) \
123 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
124 --bin $< --test $(MULTIARCH_SRC)/gdbstub/catch-syscalls.py, \
127 run-gdbstub-follow-fork-mode-child: follow-fork-mode
128 $(call run-test, $@, $(GDB_SCRIPT) \
129 --gdb $(GDB) \
130 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
131 --bin $< --test $(MULTIARCH_SRC)/gdbstub/follow-fork-mode-child.py, \
134 run-gdbstub-follow-fork-mode-parent: follow-fork-mode
135 $(call run-test, $@, $(GDB_SCRIPT) \
136 --gdb $(GDB) \
137 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
138 --bin $< --test $(MULTIARCH_SRC)/gdbstub/follow-fork-mode-parent.py, \
141 run-gdbstub-late-attach: late-attach
142 $(call run-test, $@, env LATE_ATTACH_PY=1 $(GDB_SCRIPT) \
143 --gdb $(GDB) \
144 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" --no-suspend \
145 --bin $< --test $(MULTIARCH_SRC)/gdbstub/late-attach.py, \
149 run-gdbstub-%:
150 …$(call skip-test, "gdbstub test $*", "need working gdb with $(patsubst -%,,$(TARGET_NAME)) support…
152 EXTRA_RUNS += run-gdbstub-sha1 run-gdbstub-qxfer-auxv-read \
153 run-gdbstub-proc-mappings run-gdbstub-thread-breakpoint \
154 run-gdbstub-registers run-gdbstub-prot-none \
155 run-gdbstub-catch-syscalls run-gdbstub-follow-fork-mode-child \
156 run-gdbstub-follow-fork-mode-parent \
157 run-gdbstub-qxfer-siginfo-read run-gdbstub-late-attach
166 VPATH += $(MULTIARCH_SRC)/arm-compat-semi
168 # Add -I path back to TARGET_NAME for semicall.h
169 semihosting: CFLAGS+=-I$(SRC_PATH)/tests/tcg/$(TARGET_NAME)
171 run-semihosting: semihosting
172 $(call run-test,$<,$(QEMU) $< 2> $<.err)
174 run-plugin-semihosting-with-%:
175 $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
176 -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \
177 $(call strip-plugin,$<) 2> $<.err, \
180 semiconsole: CFLAGS+=-I$(SRC_PATH)/tests/tcg/$(TARGET_NAME)
182 run-semiconsole: semiconsole
183 $(call skip-test, $<, "MANUAL ONLY")
185 run-plugin-semiconsole-with-%:
186 $(call skip-test, $<, "MANUAL ONLY")
192 run-plugin-test-plugin-mem-access-with-libmem.so: \
193 PLUGIN_ARGS=$(COMMA)print-accesses=true
194 run-plugin-test-plugin-mem-access-with-libmem.so: \
196 $(SRC_PATH)/tests/tcg/multiarch/check-plugin-output.sh \
199 test-plugin-mem-access: CFLAGS+=-pthread -O0
200 test-plugin-mem-access: LDFLAGS+=-pthread -O0