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-02 15:05:09 +03:00
|
|
|
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
|
2025-03-02 15:05:09 +03:00
|
|
|
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
|