block: Drop @child_class from bdrv_child_perm()
[qemu.git] / tests / tcg / multiarch / Makefile.target
blob51fb75ecfdd0fe6d0d70737cc61b460037dca6b6
1 # -*- Mode: makefile -*-
3 # Multiarch Tests - included from tests/tcg/Makefile.target
5 # These tests are plain C and built without any architecture specific code.
8 MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch
10 # Set search path for all sources
11 VPATH           += $(MULTIARCH_SRC)
12 MULTIARCH_SRCS   =$(notdir $(wildcard $(MULTIARCH_SRC)/*.c))
13 MULTIARCH_TESTS  =$(filter-out float_helpers, $(MULTIARCH_SRCS:.c=))
16 # The following are any additional rules needed to build things
20 float_%: LDFLAGS+=-lm
21 float_%: float_%.c float_helpers.c
22         $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< $(MULTIARCH_SRC)/float_helpers.c -o $@ $(LDFLAGS)
24 run-float_%: float_%
25         $(call run-test,$<, $(QEMU) $(QEMU_OPTS) $<,"$< on $(TARGET_NAME)")
26         $(call conditional-diff-out,$<,$(SRC_PATH)/tests/tcg/$(TARGET_NAME)/$<.ref)
29 testthread: LDFLAGS+=-lpthread
31 # We define the runner for test-mmap after the individual
32 # architectures have defined their supported pages sizes. If no
33 # additional page sizes are defined we only run the default test.
35 # default case (host page size)
36 run-test-mmap: test-mmap
37         $(call run-test, test-mmap, $(QEMU) $<, \
38                 "$< (default) on $(TARGET_NAME)")
40 # additional page sizes (defined by each architecture adding to EXTRA_RUNS)
41 run-test-mmap-%: test-mmap
42         $(call run-test, test-mmap-$*, $(QEMU) -p $* $<,\
43                 "$< ($* byte pages) on $(TARGET_NAME)")
45 ifneq ($(HAVE_GDB_BIN),)
46 GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
48 run-gdbstub-sha1: sha1
49         $(call run-test, $@, $(GDB_SCRIPT) \
50                 --gdb $(HAVE_GDB_BIN) \
51                 --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \
52                 --bin $< --test $(MULTIARCH_SRC)/gdbstub/sha1.py, \
53         "basic gdbstub support")
55 EXTRA_RUNS += run-gdbstub-sha1
56 endif
59 # Update TESTS
60 TESTS += $(MULTIARCH_TESTS)