test/Makefile: Run tests with prove when available

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Frédéric Mangano-Tarumi 2020-02-29 01:02:04 +01:00 committed by Lukas Fleischer
parent 90c0a361b5
commit bf7c49158c

View file

@ -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/