aboutsummaryrefslogtreecommitdiffstats
path: root/meta-perl/recipes-perl/libtext/libtext-diff-perl/run-ptest
blob: c65b6cf8e03fe747ba6f3de8f0a5407b5b2ce55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

for case in `find t -type f -name '*.t'`; do
    perl $case >$case.output 2>&1
    ret=$?
    cat $case.output
    if [ $ret -ne 0 ]; then
        echo "FAIL: ${case%.t}"
    elif grep -i 'SKIP' $case.output; then
        echo "SKIP: ${case%.t}"
    else
        echo "PASS: ${case%.t}"
    fi

    rm -f $case.output
done