nac3/nac3standalone/demo/check_demos.sh

16 lines
298 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
2022-01-24 11:38:43 +08:00
count=0
for demo in src/*.py; do
2022-01-24 11:38:43 +08:00
echo -n "checking $demo... "
./interpret_demo.py $demo > interpreted.log
./run_demo.sh "$@" $demo > run.log
diff -Nau interpreted.log run.log
2022-01-24 11:38:43 +08:00
echo "ok"
let "count+=1"
done
2022-01-24 11:38:43 +08:00
echo "Ran $count demo checks - PASSED"