Add tests in the language

This commit is contained in:
Neemek 2025-03-10 16:24:56 +01:00
parent 74bd9c9582
commit e8d8731922
Signed by: neemek
GPG key ID: 28360A8951CD0E9B
6 changed files with 102 additions and 0 deletions

22
test_all.sh Executable file
View 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 =='