source: rtems-central/Makefile @ 2ac9fc8

Last change on this file since 2ac9fc8 was 2ac9fc8, checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 09:30:21

Move and split test files

Remove test grouping through test classes.

  • Property mode set to 100644
File size: 552 bytes
Line 
1PY_SRC_FILES = $(wildcard *.py) $(wildcard rtemsqual/*.py)
2PY_ALL_FILES = $(PY_SRC_FILES) $(wildcard rtemsqual/tests/*.py)
3
4all: $(PY_SRC_FILES) | check-env
5        coverage run -m pytest rtemsqual/tests
6        yapf -i $(PY_ALL_FILES)
7        flake8 $^
8        mypy $^
9        pylint $^
10
11check-env:
12        test -n "$$VIRTUAL_ENV"
13
14EMPTY :=
15SPACE := $(EMPTY) $(EMPTY)
16COMMA := ,
17
18coverage-report:
19        coverage report -m --include=$(subst $(SPACE),$(COMMA),$(PY_SRC_FILES))
20
21.PONY: env
22
23env:
24        python3 -m venv env
25        . env/bin/activate && pip install --upgrade pip && pip install -r requirements.txt
Note: See TracBrowser for help on using the repository browser.