Skip to content

Commit f83f363

Browse files
committed
webassembly/Makefile: Add test//% target.
Following a69425b, this is a convenient way to run a subset of tests. Signed-off-by: Damien George <damien@micropython.org>
1 parent 2cca348 commit f83f363

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ports/webassembly/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
130130
################################################################################
131131
# Main targets.
132132

133-
.PHONY: all repl min test test_min
133+
.PHONY: all repl min test test//% test_min
134134

135135
all: $(BUILD)/micropython.mjs
136136

@@ -150,6 +150,9 @@ min: $(BUILD)/micropython.min.mjs
150150
test: $(BUILD)/micropython.mjs $(TOP)/tests/run-tests.py
151151
cd $(TOP)/tests && MICROPY_MICROPYTHON_MJS=../ports/webassembly/$< ./run-tests.py -t webassembly
152152

153+
test//%: $(BUILD)/micropython.mjs $(TOP)/tests/run-tests.py
154+
cd $(TOP)/tests && MICROPY_MICROPYTHON_MJS=../ports/webassembly/$< ./run-tests.py -t webassembly -i "$*"
155+
153156
test_min: $(BUILD)/micropython.min.mjs $(TOP)/tests/run-tests.py
154157
cd $(TOP)/tests && MICROPY_MICROPYTHON_MJS=../ports/webassembly/$< ./run-tests.py -t webassembly
155158

0 commit comments

Comments
 (0)