frappy/Makefile
Enrico Faulhaber b9324876b3 Makefile: allow specifying only a subset of the tests to run
Change-Id: I4502789e7bad322372f915051320d1d0d8b25fb3
Reviewed-on: https://forge.frm2.tum.de/review/17269
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
Tested-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de>
2018-02-08 09:38:51 +01:00

41 lines
792 B
Makefile

all: clean doc
demo:
@bin/secop-server -q demo &
@bin/secop-server -q test &
@bin/secop-server -q cryo &
@bin/secop-gui localhost:10767 localhost:10768 localhost:10769
@ps aux|grep [s]ecop-server|awk '{print $$2}'|xargs kill
build:
python setup.py build
clean:
find . -name '*.pyc' -delete
rm -rf build
$(MAKE) -C doc clean
install: build
python setup.py install
test:
ifdef T
python $(shell which pytest) -v test -l -k $(T)
else
python $(shell which pytest) -v test -l
endif
test-verbose:
python $(shell which pytest) -v test -s
test-coverage:
python $(shell which pytest) -v test --cov=secop
doc:
$(MAKE) -C doc html
lint:
pylint -j $(shell nproc) -f colorized -r n --rcfile=.pylintrc secop secop_* test
.PHONY: doc clean test test-verbose test-coverage demo lint