mirror of
https://github.com/usatiuk/psil.git
synced 2025-10-28 18:57:48 +01:00
repl test
This commit is contained in:
@@ -22,6 +22,25 @@ for FILE in *.test.psil; do
|
||||
rm $FILE.res
|
||||
done
|
||||
|
||||
for FILE in *.testi.psil; do
|
||||
echo "TESTING INTERACTIVE $FILE"
|
||||
$PSIL --repl+ --default_log_level:0 < $FILE > $FILE.res
|
||||
if [ $? -ne 0 ]; then
|
||||
FAILED+=("test-"$FILE)
|
||||
continue
|
||||
fi
|
||||
|
||||
diff -w $FILE.res $FILE.ex
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
FAILED+=("test-"$FILE)
|
||||
continue
|
||||
fi
|
||||
|
||||
echo "$FILE OK"
|
||||
rm $FILE.res
|
||||
done
|
||||
|
||||
if [ ${#FAILED[@]} -eq 0 ]; then
|
||||
echo "ALL TESTS PASSED"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user