Thanks Ovid! This may be exactly what I'm looking for (since I'm going to have tests in libtap and perl). However, and I apologize if I'm wrong about this, doesn't your proposed solution have to start a new perl interpreter for every single test file? If so, that might up being too slow for practical use.
Julien On 3/9/07, Ovid <[EMAIL PROTECTED]> wrote:
If you want things to be *really* easy to run test suites in multiple languages, do this. First, make sure that all test programs are executable. Then use this driver program: $ cat bin/run.pl #!/usr/bin/perl use strict; use warnings; my $prog = shift; unless ( -e $prog && -x _ ) { die "Cannot find or execute ($prog)"; } exec $prog; Then 'find' all executable files and use the '--exec' option with runtests to execute all of them with the 'bin/run.pl' program: $ find t/ -perm /u+x -type f | xargs runtests --exec bin/run.pl t/tap........ Failed 1/3 subtests t/perl.......ok Test Summary Report ------------------- t/tap.exe (Wstat: 0 Tests: 3 Failed: 1) Failed tests: 2 Files=2, Tests=5, 0 wallclock secs ( 0.04 cusr + 0.00 csys = 0.04 CPU) Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/