From a6a30fbabbca96b6985052d57c7536afa6d2fd10 Mon Sep 17 00:00:00 2001 From: ellson Date: Sun, 18 Nov 2007 02:45:53 +0000 Subject: [PATCH] Use dot_builtins and diffimg from the build tree Target is now: make rtest --- rtest/Makefile.am | 2 +- rtest/rtest.sh | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/rtest/Makefile.am b/rtest/Makefile.am index 2e733bf3b..4d701b499 100644 --- a/rtest/Makefile.am +++ b/rtest/Makefile.am @@ -1,4 +1,4 @@ -test: $(top_builddir)/cmd/dot/dot_builtins +rtest: $(top_builddir)/cmd/dot/dot_builtins $(top_builddir)/contrib/diffimg/diffimg ./rtest.sh EXTRA_DIST = graphs nshare rtest.sh strps.awk tests.txt diff --git a/rtest/rtest.sh b/rtest/rtest.sh index ba926f604..81a76299c 100755 --- a/rtest/rtest.sh +++ b/rtest/rtest.sh @@ -2,7 +2,6 @@ # # Graphviz regression test driver # -# Assumes the programs dot and diffimg are in PATH. # Also relies on strps.awk. # # TODO: @@ -17,10 +16,9 @@ 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 +DOT=../cmd/dot/dot_builtins # build tree version with a builtin set of plugins # should be $(top_builddir)/cmd/dot/dot_static +DIFFIMG=../contrib/diffimg/diffimg # build tree version TESTNAME= # name of test GRAPH= # graph specification @@ -147,7 +145,7 @@ function doDiff diff -q $TMPFILE2 $TMPFILE1 > /dev/null ;; png ) - diffimg $FILE2 $FILE1 > /dev/null + $DIFFIMG $FILE2 $FILE1 > /dev/null ;; * ) diff -q $FILE2 $FILE1 > /dev/null @@ -320,12 +318,19 @@ then mkdir $OUTDIR fi -if ! whence diffimg > /dev/null +if [[ ! -x $DOT ]] then - print -u 2 "diffimg program is not in your PATH" + print -u 2 "$DOT program is not executable" exit 1 fi +if [[ ! -x $DIFFIMG ]] +then + print -u 2 "$DIFFIMG program is not executable" + exit 1 +fi + + exec 3< $TESTFILE while readTest do -- 2.40.0