Add unit tests runner
This commit is contained in:
parent
fb286b91ea
commit
0cfbac6b23
17
run_unit_tests.sh
Executable file
17
run_unit_tests.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo -n "Running unit tests"
|
||||
for file in unittests/*.chai
|
||||
do
|
||||
tstname=${file%.*}
|
||||
tst="$tstname.txt"
|
||||
./chaiscript_eval $file > /tmp/tstout.txt
|
||||
diff $tst /tmp/tstout.txt
|
||||
if [ "$?" -eq "0" ]
|
||||
then
|
||||
echo -n "."
|
||||
else
|
||||
echo "[from failed test $file]"
|
||||
fi
|
||||
done
|
||||
echo "done"
|
Loading…
x
Reference in New Issue
Block a user