]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
better test flexibility - use a specific rrdtool to do the tests 450/head
authorPeter Stamfest <peter@stamfest.at>
Thu, 6 Mar 2014 07:49:41 +0000 (08:49 +0100)
committerPeter Stamfest <peter@stamfest.at>
Thu, 6 Mar 2014 07:49:41 +0000 (08:49 +0100)
tests/alltests
tests/functions

index 77569c525b4d2bda63455e745e60a9642ff6b480..91c49cac680487db3b1d4978a83d553dc6c29705 100755 (executable)
@@ -3,6 +3,9 @@
 # fail immediately if any subsequent command fails
 set -e
 
+RRDTOOL="$1"
+export RRDTOOL
+
 BASEDIR=$(dirname $0)
 cd $BASEDIR
 
index 1b8d4d71af8a6a8f843e9078379c04ab7c8d161b..9a6802fb0d7895784e17d8dd991c849218bd064f 100644 (file)
@@ -1,7 +1,9 @@
 
 
 BASEDIR=$(dirname $0)
-RRDTOOL=$BASEDIR/../src/rrdtool
+if [ -z "$RRDTOOL" ] ; then 
+       RRDTOOL=$BASEDIR/../src/rrdtool
+fi
 
 DIFF="diff -u"