[PATCH 3/4] test/Makefile: Run tests with prove when available

Frédéric Mangano-Tarumi fmang at mg0.fr
Sat Feb 29 00:02:04 UTC 2020


---
 test/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test/Makefile b/test/Makefile
index d310c8f5..758befa3 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,6 +1,13 @@
 T = $(sort $(wildcard *.t))
 
+PROVE := $(shell command -v prove 2> /dev/null)
+
+ifdef PROVE
+check:
+	prove .
+else
 check: $(T)
+endif
 
 clean:
 	$(RM) -r test-results/
-- 
2.25.1


More information about the aur-dev mailing list