script to run dep tests

This commit is contained in:
ProgramSnail 2025-01-12 21:40:22 +03:00
parent 72ec1923e3
commit c8bec67bb9
4 changed files with 32 additions and 2 deletions

View file

@ -5,9 +5,14 @@ dune build > /dev/null
prefix="../regression/"
suffix=".lama"
compiler=../_build/default/src/Driver.exe
echo "Used compiler path:"
echo $compiler
for test in ../regression/*.lama; do
echo $test
../_build/default/src/Driver.exe -b $test > /dev/null
$compiler -b $test > /dev/null
test_file="${test%.*}"
echo $test_file
cat $test_file.input | ./byterun.exe -vi test*.bc > /dev/null
@ -16,4 +21,3 @@ for test in ../regression/*.lama; do
done
rm *.o