2022-01-23 10:35:06 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-01-24 11:38:43 +08:00
|
|
|
count=0
|
2022-01-23 10:35:06 +08:00
|
|
|
for demo in src/*.py; do
|
2022-01-24 11:38:43 +08:00
|
|
|
echo -n "checking $demo... "
|
2022-01-23 11:15:11 +08:00
|
|
|
./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"
|
2022-01-23 10:35:06 +08:00
|
|
|
done
|
|
|
|
|
2022-01-24 11:38:43 +08:00
|
|
|
echo "Ran $count demo checks - PASSED"
|