Makefile: Allow specific tests to be run
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
f1f5cc9e0c
commit
2bb5ae3a89
1 changed files with 5 additions and 1 deletions
6
Makefile
6
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
|
||||
|
|
Loading…
Reference in a new issue