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

Testing with multiple versions of perl

Thread Next
From:
H.Merijn Brand
Date:
April 22, 2018 13:04
Subject:
Testing with multiple versions of perl
Message ID:
20180422150338.7767e0cd@pc09.procura.nl
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 script.pl

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\
:/usr/bin/perl\
:/media/Tux/perls/bin/perl5.8.*\
:/media/Tux/perls/bin/perl5.[12][02468]*\
:/media/Tux/perls/bin/perl5.27*\
:/media/Tux/perls/bin/tperl5.8.*\
:/media/Tux/perls/bin/tperl5.[12][02468]*\
:/media/Tux/perls/bin/tperl5.27*
-->8---

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  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.27   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About