From: Peter Stamfest Date: Thu, 6 Mar 2014 07:49:41 +0000 (+0100) Subject: better test flexibility - use a specific rrdtool to do the tests X-Git-Tag: v1.5.0-rc1~129^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F450%2Fhead;p=thirdparty%2Frrdtool-1.x.git better test flexibility - use a specific rrdtool to do the tests --- diff --git a/tests/alltests b/tests/alltests index 77569c52..91c49cac 100755 --- a/tests/alltests +++ b/tests/alltests @@ -3,6 +3,9 @@ # fail immediately if any subsequent command fails set -e +RRDTOOL="$1" +export RRDTOOL + BASEDIR=$(dirname $0) cd $BASEDIR diff --git a/tests/functions b/tests/functions index 1b8d4d71..9a6802fb 100644 --- a/tests/functions +++ b/tests/functions @@ -1,7 +1,9 @@ BASEDIR=$(dirname $0) -RRDTOOL=$BASEDIR/../src/rrdtool +if [ -z "$RRDTOOL" ] ; then + RRDTOOL=$BASEDIR/../src/rrdtool +fi DIFF="diff -u"