tests/runtests
author Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
Tue, 19 Oct 2010 17:45:55 +0400
changeset 126 7a5c5746d4f0
parent 96 82aaeccffbec
permissions -rwxr-xr-x
Explicit use of Python 2 for Arch Linux

#!/bin/sh

BASE=$(dirname $0)/..
STDOUT=$BASE/tests/tmp.out
STDERR=$BASE/tests/tmp.err

for f in `ls .`; do
    if [ -x "$f" -a $f != "runtests" ]; then
        echo ---------------- $f
        PYTHONPATH=$BASE $BASE/tests/$f >$STDOUT 2>$STDERR
        diff -N $BASE/tests/$f.out $STDOUT
        diff -N $BASE/tests/$f.err $STDERR
    fi
done

rm -f $STDOUT
rm -f $STDERR