2024-12-16 10:50:09 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
dune build > /dev/null
|
|
|
|
|
|
|
|
|
|
prefix="../regression/"
|
|
|
|
|
suffix=".lama"
|
|
|
|
|
|
2025-01-12 21:40:22 +03:00
|
|
|
compiler=../_build/default/src/Driver.exe
|
|
|
|
|
|
|
|
|
|
echo "Used compiler path:"
|
|
|
|
|
echo $compiler
|
|
|
|
|
|
2025-03-03 00:13:19 +03:00
|
|
|
for test in ../regression/*.lama; do
|
2024-12-16 10:50:09 +03:00
|
|
|
echo $test
|
2025-01-12 21:40:22 +03:00
|
|
|
$compiler -b $test > /dev/null
|
2024-12-17 04:15:25 +03:00
|
|
|
test_file="${test%.*}"
|
|
|
|
|
echo $test_file
|
2025-03-16 14:26:48 +03:00
|
|
|
# cat $test_file.input | ./byterun.exe -p test*.bc > test.bc.code
|
|
|
|
|
# cat $test_file.input | ./byterun.exe -p test*.bc
|
2025-03-30 09:34:50 +03:00
|
|
|
# cat $test_file.input | ./byterun.exe -vi test*.bc
|
2025-03-16 14:26:48 +03:00
|
|
|
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
|
|
|
|
|
|
2024-12-16 10:50:09 +03:00
|
|
|
rm test*.bc
|
2025-03-16 14:26:48 +03:00
|
|
|
rm test.log test_orig.log
|
2024-12-16 10:50:09 +03:00
|
|
|
echo "done"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
rm *.o
|