mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
test/Makefile: Run tests with prove when available
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
90c0a361b5
commit
bf7c49158c
1 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,13 @@
|
||||||
T = $(sort $(wildcard *.t))
|
T = $(sort $(wildcard *.t))
|
||||||
|
|
||||||
|
PROVE := $(shell command -v prove 2> /dev/null)
|
||||||
|
|
||||||
|
ifdef PROVE
|
||||||
|
check:
|
||||||
|
prove .
|
||||||
|
else
|
||||||
check: $(T)
|
check: $(T)
|
||||||
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -r test-results/
|
$(RM) -r test-results/
|
||||||
|
|
Loading…
Add table
Reference in a new issue