qemu/Makefile: Allow passing flags to test_natmod via RUN_TESTS_EXTRA.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user