lama_byterun/byterun/regression_check.sh

25 lines
472 B
Bash
Raw Normal View History

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
for test in ../regression/*009.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
cat $test_file.input | ./byterun.exe -p test*.bc #> /dev/null
cat $test_file.input | ./byterun.exe -vi test*.bc #> /dev/null
2024-12-16 10:50:09 +03:00
rm test*.bc
echo "done"
done
rm *.o