Add tests in the language
This commit is contained in:
parent
74bd9c9582
commit
e8d8731922
6 changed files with 102 additions and 0 deletions
22
test_all.sh
Executable file
22
test_all.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/zsh
|
||||
|
||||
echo '== Building CLI =='
|
||||
cd cli
|
||||
go build .
|
||||
cd ..
|
||||
|
||||
|
||||
echo '== Testing anglais =='
|
||||
|
||||
for file in ./tests/*.ang; do
|
||||
echo "-- Test-running file $file --"
|
||||
|
||||
if ! ./cli/cli run "$file"; then
|
||||
echo "-- Error --"
|
||||
exit 1
|
||||
else
|
||||
echo "-- Success --"
|
||||
fi
|
||||
done
|
||||
|
||||
echo '== Successfully ran all tests =='
|
||||
Loading…
Add table
Add a link
Reference in a new issue