fix(tests/lean): ignore lines containing 'executing external script' in test scripts, these lines contain references to the path where Lean was built

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-26 18:41:01 -08:00
parent 7eaade4ceb
commit 275f022d79
2 changed files with 5 additions and 5 deletions

View file

@ -15,14 +15,14 @@ for f in `ls *.lean`; do
echo "-- testing $f" echo "-- testing $f"
$LEAN config.lean $f &> $f.produced.out $LEAN config.lean $f &> $f.produced.out
if test -f $f.expected.out; then if test -f $f.expected.out; then
if diff $f.produced.out $f.expected.out; then if diff -I "executing external script" $f.produced.out $f.expected.out; then
echo "-- checked" echo "-- checked"
else else
echo "ERROR: file $f.produced.out does not match $f.expected.out" echo "ERROR: file $f.produced.out does not match $f.expected.out"
NUM_ERRORS=$(($NUM_ERRORS+1)) NUM_ERRORS=$(($NUM_ERRORS+1))
if [ $INTERACTIVE == "yes" ]; then if [ $INTERACTIVE == "yes" ]; then
meld $f.produced.out $f.expected.out meld $f.produced.out $f.expected.out
if diff $f.produced.out $f.expected.out; then if diff -I "executing external script" $f.produced.out $f.expected.out; then
echo "-- mismath was fixed" echo "-- mismath was fixed"
fi fi
fi fi

View file

@ -14,18 +14,18 @@ f=$2
echo "-- testing $f" echo "-- testing $f"
$LEAN config.lean $f &> $f.produced.out $LEAN config.lean $f &> $f.produced.out
if test -f $f.expected.out; then if test -f $f.expected.out; then
if diff $f.produced.out $f.expected.out; then if diff -I "executing external script" $f.produced.out $f.expected.out; then
echo "-- checked" echo "-- checked"
exit 0 exit 0
else else
echo "ERROR: file $f.produced.out does not match $f.expected.out" echo "ERROR: file $f.produced.out does not match $f.expected.out"
if [ $INTERACTIVE == "yes" ]; then if [ $INTERACTIVE == "yes" ]; then
meld $f.produced.out $f.expected.out meld $f.produced.out $f.expected.out
if diff $f.produced.out $f.expected.out; then if diff -I "executing external script" $f.produced.out $f.expected.out; then
echo "-- mismath was fixed" echo "-- mismath was fixed"
fi fi
else else
diff $f.produced.out $f.expected.out diff -I "executing external script" $f.produced.out $f.expected.out
fi fi
exit 1 exit 1
fi fi