mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
23 lines
404 B
Bash
Executable file
23 lines
404 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
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
|
|
$compiler -b $test > /dev/null
|
|
test_file="${test%.*}"
|
|
echo $test_file
|
|
cat $test_file.input | ./byterun.exe -vi test*.bc > /dev/null
|
|
rm test*.bc
|
|
echo "done"
|
|
done
|
|
|
|
rm *.o
|