Skip to content

Commit e750ecf

Browse files
committed
qemu/Makefile: Allow passing flags to test_natmod via RUN_TESTS_EXTRA.
Signed-off-by: Damien George <[email protected]>
1 parent bba15e0 commit e750ecf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ports/qemu/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ test_natmod: $(BUILD)/firmware.elf
196196
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
197197
cd $(TOP)/tests && \
198198
for natmod in btree deflate framebuf heapq random_basic re; do \
199-
./run-natmodtests.py -p -d execpty:"$(QEMU_SYSTEM) $(QEMU_ARGS) -serial pty -kernel ../$(DIRNAME)/$<" extmod/$$natmod*.py; \
199+
./run-natmodtests.py -p -d execpty:"$(QEMU_SYSTEM) $(QEMU_ARGS) -serial pty -kernel ../$(DIRNAME)/$<" $(RUN_TESTS_EXTRA) extmod/$$natmod*.py; \
200200
done
201201

202202
$(BUILD)/firmware.elf: $(LDSCRIPT) $(OBJ)

ports/qemu/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ Extra make options
112112

113113
The following options can be specified on the `make` command line:
114114
- `CFLAGS_EXTRA`: pass in extra flags for the compiler.
115-
- `RUN_TESTS_EXTRA`: pass in extra flags for `run-tests.py` when invoked via
116-
`make test`.
115+
- `RUN_TESTS_EXTRA`: pass in extra flags for `run-tests.py` and `run-natmodtests.py`
116+
when invoked via `make test` or `make test_natmod`.
117117
- `QEMU_DEBUG=1`: when running qemu (via `repl`, `run` or `test` target), qemu
118118
will block until a debugger is connected. By default it waits for a gdb connection
119119
on TCP port 1234.

0 commit comments

Comments
 (0)