tests/runtests
author Anton Dutov <anton@dutov.org>
Mon, 09 Nov 2009 23:31:37 +0200
changeset 97 46afc08b68ff
parent 96 82aaeccffbec
permissions -rwxr-xr-x
various py3k incompatibilities removed

#!/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