forked from M-Labs/nac3
standalone: Fix parsing NAC3 args in check_demo.sh
This commit is contained in:
parent
7140901261
commit
e8a5f0dfef
@ -7,13 +7,17 @@ if [ -z "$1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
demo="${@:-1}"
|
declare -a nac3args
|
||||||
set -- "${@:1:$(($# - 1))}"
|
while [ $# -gt 1 ]; do
|
||||||
|
nac3args+=("$1")
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
demo="$1"
|
||||||
|
|
||||||
echo -n "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 "${nac3args[@]}" "$demo" > run.log
|
||||||
./run_demo_lli.sh "$@" "$demo" > run_lli.log
|
./run_demo_lli.sh "${nac3args[@]}" "$demo" > run_lli.log
|
||||||
diff -Nau interpreted.log run.log
|
diff -Nau interpreted.log run.log
|
||||||
diff -Nau interpreted.log run_lli.log
|
diff -Nau interpreted.log run_lli.log
|
||||||
echo "ok"
|
echo "ok"
|
||||||
|
Loading…
Reference in New Issue
Block a user