check_demos: improve output

escape-analysis
Sebastien Bourdeauducq 2022-01-24 11:38:43 +08:00
parent 6ea40809b3
commit ced7acd871
1 changed files with 5 additions and 2 deletions

View File

@ -2,11 +2,14 @@
set -e set -e
count=0
for demo in src/*.py; do for demo in src/*.py; do
echo "checking $demo..." echo -n "checking $demo... "
./interpret_demo.py $demo > interpreted.log ./interpret_demo.py $demo > interpreted.log
./run_demo.sh $demo > run.log ./run_demo.sh $demo > run.log
diff -Nau interpreted.log run.log diff -Nau interpreted.log run.log
echo "ok"
let "count+=1"
done done
echo "PASSED" echo "Ran $count demo checks - PASSED"