Signed-off-by: Jean Privat <jean@pryen.org>
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"
}