fix(tests/lean/interactive): test driver (to avoid discrepancy between Win and Linux version)

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-06 17:03:12 -08:00
parent caea19dcf0
commit a75d05fdb4
16 changed files with 2 additions and 16 deletions

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Set: pp::colors Set: pp::colors

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proof state: Proof state:

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proof state: Proof state:

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proof state: Proof state:

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proved: T1 Proved: T1

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proved: T1 Proved: T1

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proof state: Proof state:

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proof state: Proof state:

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Error (line: 4, pos: 8) invalid definition, identifier expected Error (line: 4, pos: 8) invalid definition, identifier expected

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Assumed: magic Assumed: magic

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proof state: Proof state:

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Assumed: q Assumed: q

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Set: tactic::proof_state::goal_names Set: tactic::proof_state::goal_names

View file

@ -1,4 +1,3 @@
Type Ctrl-D or 'Exit.' to exit or 'Help.' for help.
# Set: pp::colors # Set: pp::colors
Set: pp::unicode Set: pp::unicode
Proof state: Proof state:

View file

@ -13,7 +13,7 @@ fi
NUM_ERRORS=0 NUM_ERRORS=0
for f in `ls *.lean`; do for f in `ls *.lean`; do
echo "-- testing $f" echo "-- testing $f"
cat config.lean $f | $LEAN --lean | tail -n +2 > $f.produced.out cat config.lean $f | $LEAN --lean | tail -n +3 > $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 $f.produced.out $f.expected.out; then
echo "-- checked" echo "-- checked"

View file

@ -12,7 +12,7 @@ else
fi fi
f=$2 f=$2
echo "-- testing $f" echo "-- testing $f"
cat config.lean $f | $LEAN --lean | tail -n +2 > $f.produced.out cat config.lean $f | $LEAN --lean | tail -n +3 > $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 $f.produced.out $f.expected.out; then
echo "-- checked" echo "-- checked"