From: Lukas Mai Date: Mon, 19 Nov 2012 19:14:43 +0000 (+0100) Subject: add 'make multitest' target to test with all perls X-Git-Tag: v1.0003~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88214f05117b24fc43fa72de5b23dfc7cba3f231;p=p5sagit%2FFunction-Parameters.git add 'make multitest' target to test with all perls --- diff --git a/GNUmakefile b/GNUmakefile index 6b3454d..02cadbc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,3 +1,14 @@ include ./Makefile CCFLAGS := -DDEVEL $(CCFLAGS) + +.PHONY: multitest +multitest: + f=''; \ + for i in ~/perl5/perlbrew/perls/perl-5.1[468]*/bin/perl perl; do \ + echo "Trying $$i ..."; \ + $$i Makefile.PL && make && make test; \ + [ $$? = 0 ] || f="$$f $$i"; \ + echo "... done (trying $$i)"; \ + done; \ + [ -z "$$f" ] || { echo "Failed:$$f" >&2; exit 1; }