tests/runtests
author Dmitriy Morozov <dmitriy@mrzv.org>
Sat, 29 May 2010 15:46:31 -0700
changeset 105 1ce5c137b3e5
parent 96 82aaeccffbec
permissions -rwxr-xr-x
Added the ability to provide a completer for arguments to options

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