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 <damien@micropython.org>
This commit is contained in:
parent
bb1e7de5c6
commit
b2a4501461
1 changed files with 9 additions and 2 deletions
|
|
@ -128,6 +128,8 @@ CFLAGS += $(SPECS_FRAGMENT)
|
||||||
LDFLAGS += $(SPECS_FRAGMENT)
|
LDFLAGS += $(SPECS_FRAGMENT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
RUN_TESTS_FULL_ARGS = -t execpty:"$(QEMU_SYSTEM) $(QEMU_ARGS) -serial pty -kernel ../ports/qemu/$<" $(RUN_TESTS_ARGS)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Source files and libraries
|
# Source files and libraries
|
||||||
|
|
||||||
|
|
@ -169,8 +171,13 @@ run: $(BUILD)/firmware.elf
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: $(BUILD)/firmware.elf
|
test: $(BUILD)/firmware.elf
|
||||||
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
|
cd $(TOP)/tests && ./run-tests.py $(RUN_TESTS_FULL_ARGS) $(RUN_TESTS_EXTRA)
|
||||||
cd $(TOP)/tests && ./run-tests.py -t execpty:"$(QEMU_SYSTEM) $(QEMU_ARGS) -serial pty -kernel ../$(DIRNAME)/$<" $(RUN_TESTS_ARGS) $(RUN_TESTS_EXTRA)
|
|
||||||
|
.PHONY: test_full
|
||||||
|
test_full: $(BUILD)/firmware.elf
|
||||||
|
cd $(TOP)/tests && ./run-tests.py $(RUN_TESTS_FULL_ARGS)
|
||||||
|
cd $(TOP)/tests && ./run-tests.py $(RUN_TESTS_FULL_ARGS) --via-mpy
|
||||||
|
cd $(TOP)/tests && ./run-tests.py $(RUN_TESTS_FULL_ARGS) --via-mpy --emit native
|
||||||
|
|
||||||
.PHONY: test_natmod
|
.PHONY: test_natmod
|
||||||
test_natmod: $(BUILD)/firmware.elf
|
test_natmod: $(BUILD)/firmware.elf
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue