mirror of
https://github.com/qemu/qemu.git
synced 2024-12-11 12:43:55 +08:00
3089e74e67
If CONFIG_PLUGINS is enabled then lets enable testing for all our TCG targets. This is a simple smoke test that ensure we don't crash or otherwise barf out by running each plugin against each test. There is a minor knock on effect for additional runners which need specialised QEMU_OPTS which will also need to declare a plugin version of the runner. If this gets onerous we might need to add another helper. Checking the results of the plugins is left for a later exercise. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
27 lines
623 B
Makefile
27 lines
623 B
Makefile
# -*- Mode: makefile -*-
|
|
#
|
|
# ARM SoftMMU tests - included from tests/tcg/Makefile
|
|
#
|
|
|
|
ARM_SRC=$(SRC_PATH)/tests/tcg/arm
|
|
|
|
# Set search path for all sources
|
|
VPATH += $(ARM_SRC)
|
|
|
|
ARM_TESTS=test-armv6m-undef
|
|
|
|
TESTS += $(ARM_TESTS)
|
|
|
|
CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp
|
|
LDFLAGS+=-nostdlib -N -static
|
|
|
|
%: %.S %.ld
|
|
$(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
|
|
|
|
# Specific Test Rules
|
|
|
|
test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0
|
|
|
|
run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
|
|
run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel
|