From: ellson Date: Sat, 17 Nov 2007 23:24:22 +0000 (+0000) Subject: partially apply changes from David. Holding off on using dot from build tree X-Git-Tag: LAST_LIBGRAPH~32^2~5011 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67e82c05146c904ba0ee757e3e21c7676d36a037;p=graphviz partially apply changes from David. Holding off on using dot from build tree patch from: David Fang --- diff --git a/rtest/rtest.sh b/rtest/rtest.sh index e4cd10148..ba926f604 100755 --- a/rtest/rtest.sh +++ b/rtest/rtest.sh @@ -17,6 +17,10 @@ REFDIR=nshare # Directory for expected test output GENERATE= # If set, generate test data VERBOSE= # If set, give verbose output NOOP= # If set, just print list of tests +DOT=dot # Installed dot with dynamic plugins +#DOT=../../cmd/dot/dot # build tree version, but has no plugins +#DOT=../../cmd/dot/dot_static # build tree version with builtin set of plugins + # should be $(top_builddir)/cmd/dot/dot_static TESTNAME= # name of test GRAPH= # graph specification @@ -222,16 +226,21 @@ function doTest do genOutname $TESTNAME ${ALG[$i]} ${FMT[$i]} OUTPATH=$OUTDIR/$OUTFILE + KFLAGS=${ALG[$i]} + TFLAGS=${FMT[$i]} + test -z "$KFLAGS" || KFLAGS="-K$KFLAGS" + test -z "$TFLAGS" || TFLAGS="-T$TFLAGS" + testcmd="$DOT $KFLAGS $TFLAGS ${FLAGS[$i]} -o$OUTPATH $INFILE" if [[ -n "$VERBOSE" ]] then - print dot -K${ALG[$i]} -T${FMT[$i]} ${FLAGS[$i]} -o$OUTPATH $INFILE + print $testcmd fi if [[ $NOOP == 1 ]] then continue fi - dot -K${ALG[$i]} -T${FMT[$i]} ${FLAGS[$i]} -o$OUTPATH $INFILE 2> errout + $testcmd 2> errout RVAL=$? if [[ $RVAL != 0 || ! -s $OUTPATH ]]