test: make test 44 more consistent
This commit is contained in:
parent
350e1b810a
commit
a889a7387c
2 changed files with 4 additions and 1 deletions
|
|
@ -3,5 +3,4 @@ Compiling Hello
|
|||
Linking hello
|
||||
Building Hello
|
||||
Compiling Hello
|
||||
Building Main
|
||||
Linking hello
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@ echo 'def hello := "old"' > hello/Hello.lean
|
|||
$LAKE -d hello build --old | tee produced.out
|
||||
echo 'def hello := "normal"' > hello/Hello.lean
|
||||
$LAKE -d hello build | tee -a produced.out
|
||||
|
||||
grep -i main produced.out
|
||||
grep -i hello produced.out > produced.out.tmp
|
||||
mv produced.out.tmp produced.out
|
||||
if [ "$OS" = Windows_NT ]; then
|
||||
sed -i 's/.exe//g' produced.out
|
||||
diff --strip-trailing-cr expected.out produced.out
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue