Makefile 416 Bytes
Newer Older
1
T = $(sort $(wildcard *.t))
2

3
4
PROVE := $(shell command -v prove 2> /dev/null)

Kevin Morris's avatar
Kevin Morris committed
5
6
7
8
9
10
11
12
MAKEFLAGS = -j1

# IMPORTANT: `sh` should come somewhere AFTER `pytest`.
check: sh pytest

pytest:
	cd .. && AUR_CONFIG=conf/config coverage run --append /usr/bin/pytest test

13
ifdef PROVE
Kevin Morris's avatar
Kevin Morris committed
14
sh:
15
16
	prove .
else
Kevin Morris's avatar
Kevin Morris committed
17
sh: $(T)
18
endif
19
20
21
22
23
24
25

clean:
	$(RM) -r test-results/

$(T):
	@echo "*** $@ ***"; $(SHELL) $@

26
.PHONY: check $(FOREIGN_TARGETS) clean $(T)