1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# run all tests in paralell
#
# use the variable PYTEST_OPTIONS to configure pytest, for example:
#
# make all PYTEST_OPTIONS="-v --lf"
#
SHELL=/bin/bash
PYTEST_OPTIONS?=-v
PYTEST=$(wildcard test_*.py)
NOTEST=$(wildcard check_*.py)
PYTEST_RUN=$(PYTEST:%.py=%.pytest)
NOTEST_RUN=$(NOTEST:%.py=%.run)
all: $(PYTEST_RUN) $(NOTEST_RUN)
%.pytest: %.py
/usr/bin/time --output=$*.time -v pytest $(PYTEST_OPTIONS) $<
%.run: %.py
/usr/bin/time --output=$*.time -v python $<
|