add 'make multitest' target to test with all perls
Lukas Mai [Mon, 19 Nov 2012 19:14:43 +0000 (20:14 +0100)]
GNUmakefile

index 6b3454d..02cadbc 100644 (file)
@@ -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; }