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 cc5f1b6..a20f791 100644 (file)
@@ -1,5 +1,13 @@
 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