]> Git Repo - qemu.git/blame - tests/tcg/aarch64/Makefile.softmmu-target
tests/tcg: add a dumb-as-bricks semihosting console test
[qemu.git] / tests / tcg / aarch64 / Makefile.softmmu-target
CommitLineData
f6482872
AB
1#
2# Aarch64 system tests
3#
4
5AARCH64_SYSTEM_SRC=$(SRC_PATH)/tests/tcg/aarch64/system
6VPATH+=$(AARCH64_SYSTEM_SRC)
7
8# These objects provide the basic boot code and helper functions for all tests
9CRT_OBJS=boot.o
10
11AARCH64_TEST_SRCS=$(wildcard $(AARCH64_SYSTEM_SRC)/*.c)
12AARCH64_TESTS = $(patsubst $(AARCH64_SYSTEM_SRC)/%.c, %, $(AARCH64_TEST_SRCS))
13
14CRT_PATH=$(AARCH64_SYSTEM_SRC)
15LINK_SCRIPT=$(AARCH64_SYSTEM_SRC)/kernel.ld
16LDFLAGS=-Wl,-T$(LINK_SCRIPT)
17TESTS+=$(AARCH64_TESTS) $(MULTIARCH_TESTS)
18CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC)
19LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc
20
21# building head blobs
22.PRECIOUS: $(CRT_OBJS)
23
24%.o: $(CRT_PATH)/%.S
6a9e0ef3 25 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -c $< -o $@
f6482872
AB
26
27# Build and link the tests
28%: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS)
6a9e0ef3 29 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
f6482872 30
7ac283e9
AB
31memory: CFLAGS+=-DCHECK_UNALIGNED=1
32
f6482872 33# Running
9c354591
AB
34QEMU_BASE_MACHINE=-M virt -cpu max -display none
35QEMU_OPTS+=$(QEMU_BASE_MACHINE) -semihosting-config enable=on,target=native,chardev=output -kernel
36
37# console test is manual only
38QEMU_SEMIHOST=-chardev stdio,mux=on,id=stdio0 -semihosting-config enable=on,chardev=stdio0 -mon chardev=stdio0,mode=readline
39run-semiconsole: QEMU_OPTS=$(QEMU_BASE_MACHINE) $(QEMU_SEMIHOST) -kernel
40run-semiconsole: semiconsole
41 $(call skip-test, $<, "MANUAL ONLY")
42run-plugin-semiconsole-with-%: semiconsole
43 $(call skip-test, $<, "MANUAL ONLY")
b9fe0063
AB
44
45# Simple Record/Replay Test
46.PHONY: memory-record
47run-memory-record: memory-record memory
48 $(call run-test, $<, \
49 $(QEMU) -monitor none -display none \
50 -chardev file$(COMMA)path=$<.out$(COMMA)id=output \
51 -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \
52 $(QEMU_OPTS) memory, \
53 "$< on $(TARGET_NAME)")
54
55.PHONY: memory-replay
56run-memory-replay: memory-replay run-memory-record
57 $(call run-test, $<, \
58 $(QEMU) -monitor none -display none \
59 -chardev file$(COMMA)path=$<.out$(COMMA)id=output \
60 -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \
61 $(QEMU_OPTS) memory, \
62 "$< on $(TARGET_NAME)")
63
1852f3e4 64EXTRA_TESTS+=memory-record memory-replay
This page took 0.071074 seconds and 4 git commands to generate.