2023-09-29 15:17:45 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "Requires at least one argument"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
demo="${@:-1}"
|
|
|
|
set -- "${@:1:$(($# - 1))}"
|
|
|
|
|
|
|
|
echo -n "Checking $demo... "
|
|
|
|
./interpret_demo.py "$demo" > interpreted.log
|
|
|
|
./run_demo.sh "$@" "$demo" > run.log
|
2023-09-29 15:18:00 +08:00
|
|
|
./run_demo_lli.sh "$@" "$demo" > run_lli.log
|
2023-09-29 15:17:45 +08:00
|
|
|
diff -Nau interpreted.log run.log
|
2023-09-29 15:18:00 +08:00
|
|
|
diff -Nau interpreted.log run_lli.log
|
2023-09-29 15:17:45 +08:00
|
|
|
echo "ok"
|