File: Makefile

package info (click to toggle)
python-ruffus 2.8.4-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 16,468 kB
  • sloc: python: 17,613; makefile: 213; sh: 18
file content (23 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (3)
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 $<