From: dperry Date: Thu, 10 Mar 2011 22:33:58 +0000 (+0000) Subject: Modified to accept a test filename from command line. X-Git-Tag: LAST_LIBGRAPH~32^2~940 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94d182a4c3f6a15c462bbeaca057569cdef0f2d4;p=graphviz Modified to accept a test filename from command line. --- diff --git a/rtest/rtest.sh b/rtest/rtest.sh index 16eeb9b60..d00e59d7f 100755 --- a/rtest/rtest.sh +++ b/rtest/rtest.sh @@ -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