about summary refs log tree commit diff
path: root/scripts/capsule.sh
blob: 946c38cba61302f9417d33e768f35f5f3db6369c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

set -e

builddir=$1
report_path=$2

mkdir -p $report_path

cd $builddir

source $HOME/perl5/perlbrew/etc/bashrc

for perl in $HOME/perl5/perlbrew/perls/perl-5.12.*
do
    theperl="$(basename $perl)"
    perlbrew switch $theperl
	hash -r

    perlversion=$(perl -v)
    logfile="$report_path/$theperl.txt"

    perl Makefile.PL
    make
    HARNESS_VERBOSE=1 make test >> $logfile  2>&1
done