From e750ecff70572fb11cbcaefb10f535de5033901b Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 23 Jul 2025 10:38:39 +1000 Subject: [PATCH] qemu/Makefile: Allow passing flags to test_natmod via RUN_TESTS_EXTRA. Signed-off-by: Damien George --- ports/qemu/Makefile | 2 +- ports/qemu/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/qemu/Makefile b/ports/qemu/Makefile index 646659ced..fc1e55797 100644 --- a/ports/qemu/Makefile +++ b/ports/qemu/Makefile @@ -196,7 +196,7 @@ test_natmod: $(BUILD)/firmware.elf $(eval DIRNAME=ports/$(notdir $(CURDIR))) cd $(TOP)/tests && \ for natmod in btree deflate framebuf heapq random_basic re; do \ - ./run-natmodtests.py -p -d execpty:"$(QEMU_SYSTEM) $(QEMU_ARGS) -serial pty -kernel ../$(DIRNAME)/$<" extmod/$$natmod*.py; \ + ./run-natmodtests.py -p -d execpty:"$(QEMU_SYSTEM) $(QEMU_ARGS) -serial pty -kernel ../$(DIRNAME)/$<" $(RUN_TESTS_EXTRA) extmod/$$natmod*.py; \ done $(BUILD)/firmware.elf: $(LDSCRIPT) $(OBJ) diff --git a/ports/qemu/README.md b/ports/qemu/README.md index c7d0dc1f4..aab88ab58 100644 --- a/ports/qemu/README.md +++ b/ports/qemu/README.md @@ -112,8 +112,8 @@ Extra make options The following options can be specified on the `make` command line: - `CFLAGS_EXTRA`: pass in extra flags for the compiler. -- `RUN_TESTS_EXTRA`: pass in extra flags for `run-tests.py` when invoked via - `make test`. +- `RUN_TESTS_EXTRA`: pass in extra flags for `run-tests.py` and `run-natmodtests.py` + when invoked via `make test` or `make test_natmod`. - `QEMU_DEBUG=1`: when running qemu (via `repl`, `run` or `test` target), qemu will block until a debugger is connected. By default it waits for a gdb connection on TCP port 1234.