Skip to content

Commit b2a4501

Browse files
committed
qemu/Makefile: Add test_full target to run a comprehensive test suite.
The tests now include `--via-mpy` and `--via-mpy --emit native`, which will test more cases of the native emitter under both ARM and RISC-V. Signed-off-by: Damien George <[email protected]>
1 parent bb1e7de commit b2a4501

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ports/qemu/Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ CFLAGS += $(SPECS_FRAGMENT)
128128
LDFLAGS += $(SPECS_FRAGMENT)
129129
endif
130130

131+
RUN_TESTS_FULL_ARGS = -t execpty:"$(QEMU_SYSTEM) $(QEMU_ARGS) -serial pty -kernel ../ports/qemu/$<" $(RUN_TESTS_ARGS)
132+
131133
################################################################################
132134
# Source files and libraries
133135

@@ -169,8 +171,13 @@ run: $(BUILD)/firmware.elf
169171

170172
.PHONY: test
171173
test: $(BUILD)/firmware.elf
172-
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
173-
cd $(TOP)/tests && ./run-tests.py -t execpty:"$(QEMU_SYSTEM) $(QEMU_ARGS) -serial pty -kernel ../$(DIRNAME)/$<" $(RUN_TESTS_ARGS) $(RUN_TESTS_EXTRA)
174+
cd $(TOP)/tests && ./run-tests.py $(RUN_TESTS_FULL_ARGS) $(RUN_TESTS_EXTRA)
175+
176+
.PHONY: test_full
177+
test_full: $(BUILD)/firmware.elf
178+
cd $(TOP)/tests && ./run-tests.py $(RUN_TESTS_FULL_ARGS)
179+
cd $(TOP)/tests && ./run-tests.py $(RUN_TESTS_FULL_ARGS) --via-mpy
180+
cd $(TOP)/tests && ./run-tests.py $(RUN_TESTS_FULL_ARGS) --via-mpy --emit native
174181

175182
.PHONY: test_natmod
176183
test_natmod: $(BUILD)/firmware.elf

0 commit comments

Comments
 (0)