Commits

Shlomi Fish committed 598a32a

Test::Run-enabled the Makefile.PL.

Comments (0)

Files changed (2)

         - Convert t/02parse.t to Test::More .
         - Thanks to TODDR .
         - Removed the diag() messages which were annoying.
+    - Add 'make runtest' and 'make distruntest' targets to run the tests using 
+    Test::Run ( http://beta.metacpan.org/module/Test::Run ).
+        - Adds colours and stuff like that.
 
 1.74            Thu Jun 23 16:20:42 IDT 2011
     - More work on the t/*.t test scripts.
 	echo "New version line: $$version"; \
 	perl -pi~ -e '$$_=q('"$$version"')."\n" if /#\ VERSION TEMPLATE/ ' $(TO_INST_PM);
 
+runtest: pure_all
+	perl -MFile::Spec -MTest::Run::CmdLine::Iface -e \
+        "local @INC = @INC;	unshift @INC, map { File::Spec->rel2abs(\$$_) } ('$(INST_LIB)', '$(INST_ARCHLIB)'); Test::Run::CmdLine::Iface->new({test_files => [glob(q{t/*.t})]})->run();"
+
+distruntest: distdir
+	cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL
+	cd $(DISTVNAME) && $(MAKE) $(PASTHRU)
+	cd $(DISTVNAME) && $(MAKE) runtest $(PASTHRU)
+
 MAKE_FRAG
 }