1*eb8dc403SDave Cobbley#!/bin/sh
2*eb8dc403SDave Cobbley
3*eb8dc403SDave Cobbleyfor case in `find t -type f -name '*.t'`; do
4*eb8dc403SDave Cobbley    perl $case >$case.output 2>&1
5*eb8dc403SDave Cobbley    ret=$?
6*eb8dc403SDave Cobbley    cat $case.output
7*eb8dc403SDave Cobbley    if [ $ret -ne 0 ]; then
8*eb8dc403SDave Cobbley        echo "FAIL: ${case%.t}"
9*eb8dc403SDave Cobbley    elif grep -i 'SKIP' $case.output; then
10*eb8dc403SDave Cobbley        echo "SKIP: ${case%.t}"
11*eb8dc403SDave Cobbley    else
12*eb8dc403SDave Cobbley        echo "PASS: ${case%.t}"
13*eb8dc403SDave Cobbley    fi
14*eb8dc403SDave Cobbley
15*eb8dc403SDave Cobbley    rm -f $case.output
16*eb8dc403SDave Cobbleydone
17