Subject: | Reporting tests on non standard versions of perl |
I sometimes test modules (mostly mines ;--) with various versions of perl, and I would like to report those tests.
I have found no really easy way to do this though. I need either to change
the report by hand, with the associated error risk, or to install
Test::Reporter and its dependencies under all those versions of perl, which
can be a (one-time) pain, as I don't have cpan or cpan plus configured for
all of them.
I think the best, and easiest to use, option would be to give the perl
executable to report as an option on the command line: it is easy to use,
accurate, and requires installing Test::Reporter and its dependencies only
once.
The version information can then be extracted by running something like:
# $Perl is the perl executable (something like "perl-5.8.0" )
my $PERL_CONFIG= q{print "$_\n$Config{$_}" foreach (qw(archname version))};
my %Config= split /\n/, `$Perl -MConfig -l -e'$PERL_CONFIG'`;
I can provide a patch if you like the idea (and if you give me an option
name to use).