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
|
|
|
|
|
2023-10-04 11:18:49 +08:00
|
|
|
declare -a nac3args
|
|
|
|
while [ $# -gt 1 ]; do
|
|
|
|
nac3args+=("$1")
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
demo="$1"
|
2023-09-29 15:17:45 +08:00
|
|
|
|
|
|
|
echo -n "Checking $demo... "
|
|
|
|
./interpret_demo.py "$demo" > interpreted.log
|
2023-10-03 11:54:34 +08:00
|
|
|
./run_demo.sh --out run.log "${nac3args[@]}" "$demo"
|
|
|
|
./run_demo.sh --lli --out run_lli.log "${nac3args[@]}" "$demo"
|
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"
|
2023-09-29 16:43:48 +08:00
|
|
|
|
2023-10-04 11:18:49 +08:00
|
|
|
rm -f interpreted.log run.log run_lli.log
|