mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
regression tests output check & fixes
This commit is contained in:
parent
3dfefdb2ca
commit
905632aab6
4 changed files with 14 additions and 4 deletions
|
|
@ -15,9 +15,14 @@ for test in ../regression/*.lama; do
|
|||
$compiler -b $test > /dev/null
|
||||
test_file="${test%.*}"
|
||||
echo $test_file
|
||||
cat $test_file.input | ./byterun.exe -p test*.bc > /dev/null
|
||||
cat $test_file.input | ./byterun.exe -vi test*.bc > /dev/null
|
||||
# cat $test_file.input | ./byterun.exe -p test*.bc > test.bc.code
|
||||
# cat $test_file.input | ./byterun.exe -p test*.bc
|
||||
cat $test_file.input | ./byterun.exe -vi test*.bc > test.log
|
||||
sed '1d;s/^..//' $test_file.t > test_orig.log
|
||||
diff test.log test_orig.log
|
||||
|
||||
rm test*.bc
|
||||
rm test.log test_orig.log
|
||||
echo "done"
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue