]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
test scripts: Handle plotting swicthes
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Nov 2010 09:16:26 +0000 (10:16 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Nov 2010 09:16:26 +0000 (10:16 +0100)
gw-tests/lib.sh

index cc5f1b62ab7bf2f3a6def596c1a37d176043f3dd..a20f791a03b344b96716483b7eb35463baf52329 100644 (file)
@@ -1,5 +1,13 @@
 set -e
 
 set -e
 
+while [ $# -gt 0 ]; do
+    case "$1" in
+       -P) OPT_PLOT_DISABLE=1; shift;;
+       -p) OPT_PLOT_ONLY=1; shift;;
+       -X|--no-x11-plot) OPT_NO_X11=1; shift;;
+    esac
+done
+
 PATH=$PWD/../_compiled/bin/:$PATH
 
 COUNT=10000
 PATH=$PWD/../_compiled/bin/:$PATH
 
 COUNT=10000