summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-04 20:31:14 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-04 20:31:14 (GMT)
commit2bb5ae3a89755c0522d4b0c332b25538114c9dfc (patch)
tree623c1196f829eea12086852902123b95dd0af73f /Makefile
parentf1f5cc9e0c113bf44c7ca2ce58ed1c41089a1b7f (diff)
Makefile: Allow specific tests to be run
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0a1a517..77618f9 100644
--- a/Makefile
+++ b/Makefile
@@ -98,9 +98,13 @@ sim:
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=.:wasp/boards/simulator:wasp \
$(PYTHON) -i wasp/boards/simulator/main.py
+ifeq ("$(origin K)", "command line")
+ PYTEST_RESTRICT = -k '$(K)'
+endif
+
check:
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=.:wasp/boards/simulator:wasp \
- $(PYTEST) -v -W ignore wasp/boards/simulator
+ $(PYTEST) -v -W ignore $(PYTEST_RESTRICT) wasp/boards/simulator
.PHONY: bootloader reloader docs micropython