File: test-all

package info (click to toggle)
perltidier 1.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 296 kB
  • sloc: perl: 532; sh: 18; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

releases="$( grep --invert-match -P '^#' versions )"
[ -d local/cache/SHANCOCK ] || mkdir -p local/cache/SHANCOCK
for rel in $releases ; do
    if [ ! -e local/cache/${rel}.tar.gz ] ; then
        echo Fetching $rel
        curl -q http://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-${rel}.tar.gz \
            > local/cache/${rel}.tar.gz
    fi
done

for rel in $releases ; do
    echo
    echo
    echo Testing $rel
    cpanm -l local -n local/cache/${rel}.tar.gz
    prove -Q -lmcr -It/lib t || exit
done

# reinsall the most recent version
cpanm -l local -n Perl::Tidy