develooper Front page | perl.perl5.porters | Postings from April 2018

Testing with multiple versions of perl

Thread Next
H.Merijn Brand
April 22, 2018 13:04
Testing with multiple versions of perl
Message ID:
For those that have access to dromedary ...

• There are currently 302 perl builds available

• Lowest version is 5.6.0, current highest is 5.27.11.

• Of each there is a threaded and an unthreaded build

• Add /media/Tux/perls/bin to your $PATH to have them available

• There is a wrapper tool called perl-all

$ perl-all --list

will show all perl binaries you can use

$ perl-all --last --list

will show you the last builds perl major version

$ perl-all -t -e'$a // 0'

will execute the -e for every perl and show a list of timings ans
PASS/FAIL. Of course

$ perl-all -t

works on scripts

I Installed Module::Release using perl-5.26.2, so you can check a
distribution against all supported perls (more or less what "soak"
inside Devel::PPPort was supposed to do). In order to use that, create
a .releaserc in the folder you want to test, something like:

--8<--- .releaserc
cpan_user HMBRAND
automated_testing 1
skip_kwalitee 1
skip_manifest 1
skip_prereqs 1
skip_dist 1
allow_glob_in_perls 1
perls /pro/bin/perl\

If you've got prebuilt perls of your own, just add them, and then run

$ release -t

It will stop on the first failure

Feedback welcome. Enjoy testing!

H.Merijn Brand   Perl Monger
using perl5.00307 .. 5.27   porting perl5 on HP-UX, AIX, and openSUSE

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About