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:
parent
7eaade4ceb
commit
275f022d79
2 changed files with 5 additions and 5 deletions
|
@ -15,14 +15,14 @@ for f in `ls *.lean`; do
|
|||
echo "-- testing $f"
|
||||
$LEAN config.lean $f &> $f.produced.out
|
||||
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"
|
||||
else
|
||||
echo "ERROR: file $f.produced.out does not match $f.expected.out"
|
||||
NUM_ERRORS=$(($NUM_ERRORS+1))
|
||||
if [ $INTERACTIVE == "yes" ]; then
|
||||
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"
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -14,18 +14,18 @@ f=$2
|
|||
echo "-- testing $f"
|
||||
$LEAN config.lean $f &> $f.produced.out
|
||||
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"
|
||||
exit 0
|
||||
else
|
||||
echo "ERROR: file $f.produced.out does not match $f.expected.out"
|
||||
if [ $INTERACTIVE == "yes" ]; then
|
||||
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"
|
||||
fi
|
||||
else
|
||||
diff $f.produced.out $f.expected.out
|
||||
diff -I "executing external script" $f.produced.out $f.expected.out
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue