summaryrefslogtreecommitdiffstats
path: root/test/Makefile
blob: 060e57c2d31cb8e2329b6ff1829a735de8230b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
T = $(sort $(wildcard *.t))

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

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

ifdef PROVE
sh:
	prove .
else
sh: $(T)
endif

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

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

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