bench_engines: put all at the end
authorJean Privat <jean@pryen.org>
Mon, 23 Mar 2015 10:34:36 +0000 (17:34 +0700)
committerJean Privat <jean@pryen.org>
Mon, 23 Mar 2015 15:11:33 +0000 (22:11 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

benchmarks/bench_engines.sh

index 3bdce85..62d6a9c 100755 (executable)
@@ -186,10 +186,10 @@ function bench_nitc_options()
        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
@@ -198,6 +198,11 @@ function bench_nitc_options()
                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"
 }