Test-Run-Plugin-AlternateInterpreters version 0.0101 was uploaded to the CPAN today:
http://search.cpan.org/dist/Test-Run-Plugin-AlternateInterpreters/ This is a plugin for Test-Run and an accompanying Test-Run-CmdLine plugin that enable one to specify alternate interpreters for running the test files. Here's a demonstration: <<<<<<<<<<<<<<<<<<<<<<< shlomi:~/progs/perl/cpan/Test/Test-Harness/Temp$ ls mokcat1.yml~ my-interpreters.yaml t shlomi:~/progs/perl/cpan/Test/Test-Harness/Temp$ cat my-interpreters.yaml --- - cmd: '/usr/bin/python' pattern: \.py\z type: regex - cmd: '/usr/bin/ruby' pattern: \.rb\z type: regex - cmd: '/usr/bin/perl' pattern: \.pl\z type: regex shlomi:~/progs/perl/cpan/Test/Test-Harness/Temp$ ls -l t/ total 12 -rw-r--r-- 1 shlomi shlomi 94 Mar 16 11:22 test.pl -rw-r--r-- 1 shlomi shlomi 256 Mar 16 11:15 test.py -rw-r--r-- 1 shlomi shlomi 222 Mar 16 11:13 test.rb shlomi:~/progs/perl/cpan/Test/Test-Harness/Temp$ cat t/test* use strict; use warnings; use Test::More tests => 1; # TEST ok (1+1 == 2, "1 and 1 is 2"); num = 1 def ok(test, msg): global num if test: extra = "" else: extra = "not " print extra + "ok " + str(num) + " - " + msg num = num + 1 print "1..2" ok((5+5 == 10), "5 and 5 is 10") ok((3*8==24), "3 times 8 is 24") $num = 1; def ok(test, msg) extra = test ? "" : "not " if (test) puts "#{extra}ok #{$num} - #{msg}" end $num += 1 end puts "1..2" ok((5+5 == 10), "5 and 5 is 10") ok((3*8==24), "3 times 8 is 24") shlomi:~/progs/perl/cpan/Test/Test-Harness/Temp$ export HARNESS_PLUGINS="ColorSummary AlternateInterpreters" shlomi:~/progs/perl/cpan/Test/Test-Harness/Temp$ export HARNESS_ALT_INTRP_FILE=`pwd`/my-interpreters.yaml shlomi:~/progs/perl/cpan/Test/Test-Harness/Temp$ runprove t/test* t/test....ok t/test....ok t/test....ok All tests successful. Files=3, Tests=5, 0 wallclock secs ( 0.08 cusr + 0.02 csys = 0.10 CPU) shlomi:~/progs/perl/cpan/Test/Test-Harness/Temp$ >>>>>>>>>>>>>>>>>>>>>> Regards, Shlomi Fish --------------------------------------------------------------------- Shlomi Fish [EMAIL PROTECTED] Homepage: http://www.shlomifish.org/ Chuck Norris wrote a complete Perl 6 implementation in a day but then destroyed all evidence with his bare hands, so no one will know his secrets.