diff options
author | Damien George <damien@micropython.org> | 2025-07-23 10:38:39 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-24 14:01:45 +1000 |
commit | e750ecff70572fb11cbcaefb10f535de5033901b (patch) | |
tree | 9ea119c168c07d1a64190f5e62547779f7b18d30 | |
parent | bba15e0a0bf72d03b74610e9a37ac79ffbdacd1a (diff) |
qemu/Makefile: Allow passing flags to test_natmod via RUN_TESTS_EXTRA.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r-- | ports/qemu/Makefile | 2 | ||||
-rw-r--r-- | 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. |