run_command "$@" ../src/nit.nit -o "nit.$title.bin"
bench_command "nit-queens" "nit queens.nit 8" "./nit.$title.bin" ../lib/ai/examples/queens.nit -q 8
bench_command "nit-nitcc" "nit nitcc.nit calc.sablecc" "./nit.$title.bin" ../contrib/nitcc/src/nitcc.nit ../contrib/nitcc/examples/calc.sablecc
+ rm calc* 2> /dev/null # remove generated cruft
run_command "$@" ../src/nitdoc.nit -o "nitdoc.$title.bin"
rm -r out 2> /dev/null
mkdir out 2> /dev/null
run_compiler "nitc-$name" ./nitc $common
if test "$1" = NOALL; then
+ withall=
shift
- elif test -n "$2"; then
- prepare_res "$name-all.dat" "all" "nitc-g with all options $@"
- run_compiler "nitc-$name" ./nitc $common $@
+ else
+ withall=true
fi
for opt in "$@"; do
run_compiler "nitc-$name" ./nitc $common $opt
done
+ if test -n "$2" -a -n "$withall"; then
+ prepare_res "$name-all.dat" "all" "nitc-g with all options $@"
+ run_compiler "nitc-$name" ./nitc $common $@
+ fi
+
plot "$name.gnu"
}