1#!/bin/sh
2
3ptestdir=$(dirname "$(readlink -f "$0")")
4cd "$ptestdir"/tests || exit
5
6tests=$(find * -type f -name 'test_suite_*')
7
8for f in $tests
9do
10    if test -x ./"$f"; then
11        if ./"$f" > ./"$f".out 2> ./"$f".err; then
12            echo "PASS: $f"
13        else
14            echo "FAIL: $f"
15        fi
16    fi
17done
18