lama_byterun/byterun/dep_check.sh

35 lines
705 B
Bash
Raw Normal View History

2025-01-12 21:40:22 +03:00
#!/usr/bin/env bash
xmake build
cp "build/linux/x86_64/release/byterun" byterun.exe
# dune build > /dev/null
2025-01-12 21:40:22 +03:00
prefix="../regression/"
suffix=".lama"
compiler=../_build/default/src/Driver.exe
echo "Used compiler path:"
echo $compiler
$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
2025-01-12 21:40:22 +03:00
echo $test
$compiler -b $test -I regression/
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