mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 14:58:50 +00:00
script to run dep tests
This commit is contained in:
parent
72ec1923e3
commit
c8bec67bb9
4 changed files with 32 additions and 2 deletions
26
byterun/dep_check.sh
Executable file
26
byterun/dep_check.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
dune build > /dev/null
|
||||||
|
|
||||||
|
prefix="../regression/"
|
||||||
|
suffix=".lama"
|
||||||
|
|
||||||
|
compiler=../_build/default/src/Driver.exe
|
||||||
|
|
||||||
|
echo "Used compiler path:"
|
||||||
|
echo $compiler
|
||||||
|
|
||||||
|
$compiler -b regression/Dep.lama > /dev/null
|
||||||
|
|
||||||
|
for test in regression/dep_test*.lama; do
|
||||||
|
echo $test
|
||||||
|
$compiler -b $test -I regression/ > /dev/null
|
||||||
|
test_file="${test%.*}"
|
||||||
|
echo $test_file
|
||||||
|
cat $test_file.input | ./byterun.exe -vi dep_test*.bc > /dev/null
|
||||||
|
rm dep_test*.bc
|
||||||
|
echo "done"
|
||||||
|
done
|
||||||
|
|
||||||
|
rm Dep.bc
|
||||||
|
rm *.o
|
||||||
0
byterun/regression/dep_test001.input
Normal file
0
byterun/regression/dep_test001.input
Normal file
|
|
@ -5,9 +5,14 @@ dune build > /dev/null
|
||||||
prefix="../regression/"
|
prefix="../regression/"
|
||||||
suffix=".lama"
|
suffix=".lama"
|
||||||
|
|
||||||
|
compiler=../_build/default/src/Driver.exe
|
||||||
|
|
||||||
|
echo "Used compiler path:"
|
||||||
|
echo $compiler
|
||||||
|
|
||||||
for test in ../regression/*.lama; do
|
for test in ../regression/*.lama; do
|
||||||
echo $test
|
echo $test
|
||||||
../_build/default/src/Driver.exe -b $test > /dev/null
|
$compiler -b $test > /dev/null
|
||||||
test_file="${test%.*}"
|
test_file="${test%.*}"
|
||||||
echo $test_file
|
echo $test_file
|
||||||
cat $test_file.input | ./byterun.exe -vi test*.bc > /dev/null
|
cat $test_file.input | ./byterun.exe -vi test*.bc > /dev/null
|
||||||
|
|
@ -16,4 +21,3 @@ for test in ../regression/*.lama; do
|
||||||
done
|
done
|
||||||
|
|
||||||
rm *.o
|
rm *.o
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue