]> granicus.if.org Git - graphviz/commitdiff
Modified to accept a test filename from command line.
authordperry <devnull@localhost>
Thu, 10 Mar 2011 22:33:58 +0000 (22:33 +0000)
committerdperry <devnull@localhost>
Thu, 10 Mar 2011 22:33:58 +0000 (22:33 +0000)
rtest/rtest.sh

index 16eeb9b60e4888273fd6f75cb8003df257921f12..d00e59d7f6e67a1e4309edb82966ab287c0d3e25 100755 (executable)
@@ -308,11 +308,19 @@ function doTest
 
 trap 'rm -f $TMPFILE1 $TMPFILE2 $TMPINFILE errout; exit' 0 1 2 3 15
 
-Usage='rtest [-gvn]\n
+Usage='rtest [-gvn] [TESTFILE]\n
  -g : generate test data\n
  -v : verbose\n
  -n : print test'
 
+PARM_NUM=${#*}
+shift ${PARM_NUM}-1
+TEMPTESTFILE=$1
+if [[ -r $TEMPTESTFILE ]]
+then
+       TESTFILE=$TEMPTESTFILE
+fi
+
 while getopts :gnv c
 do
   case $c in