Makefile: Allow specific tests to be run

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2020-12-04 20:31:14 +00:00
parent f1f5cc9e0c
commit 2bb5ae3a89
1 changed files with 5 additions and 1 deletions

View File

@ -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