2025-01-12 21:40:22 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
dune build > /dev/null
|
|
|
|
|
|
|
|
|
|
prefix="../regression/"
|
|
|
|
|
suffix=".lama"
|
|
|
|
|
|
|
|
|
|
compiler=../_build/default/src/Driver.exe
|
|
|
|
|
|
|
|
|
|
echo "Used compiler path:"
|
|
|
|
|
echo $compiler
|
|
|
|
|
|
2025-01-21 00:57:38 +03:00
|
|
|
$compiler -b regression/Dep.lama
|
|
|
|
|
$compiler -b -I regression/ regression/Dep2.lama
|
|
|
|
|
|
|
|
|
|
$compiler -b ../stdlib/List.lama
|
|
|
|
|
$compiler -b ../stdlib/Ref.lama
|
|
|
|
|
$compiler -b ../stdlib/Fun.lama
|
2025-01-12 21:40:22 +03:00
|
|
|
|
|
|
|
|
for test in regression/dep_test*.lama; do
|
|
|
|
|
echo $test
|
2025-01-21 00:57:38 +03:00
|
|
|
$compiler -b $test -I regression/
|
2025-04-07 01:11:26 +03:00
|
|
|
test_path="${test%.*}"
|
|
|
|
|
test_file="${test_path##*/}"
|
|
|
|
|
echo $test_path: $test_file
|
|
|
|
|
cat $test_path.input | ./byterun.exe -vi $test_file.bc
|
|
|
|
|
rm $test_file.bc
|
2025-01-12 21:40:22 +03:00
|
|
|
echo "done"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
rm *.o
|