mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 09:16:53 +08:00
18 lines
287 B
Bash
Executable File
18 lines
287 B
Bash
Executable File
#!/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"
|