tests/runtests
author Dmitriy Morozov <dmitriy@mrzv.org>
Mon, 15 Feb 2010 15:31:21 -0800
changeset 102 dc0b74705b3d
parent 96 82aaeccffbec
permissions -rwxr-xr-x
Initial attempt at autocompletion (borrowed from PIP)

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