summaryrefslogtreecommitdiff
path: root/tests/ps/test-ps.sh
blob: 6a4c0c447456614ab3606687a690899b4342dd3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

set -e

function run_test() {
    echo `basename $1`:
    ./tests/run.sh ./src/hgs -d QUIET -l test $1
}

rootdir=`dirname $0`/../..
pushd $rootdir
export HIEROGLYPH_LIB_PATH=./plugins/test

if [ $# -ne 0 ]; then
    run_test $1
else
    for i in ./tests/ps/test-*.ps; do
	run_test $i
    done
fi

popd