From 956e1ca03228c770e7e525f91849bfceb70c1f22 Mon Sep 17 00:00:00 2001 From: Peter Stamfest Date: Thu, 6 Mar 2014 08:49:41 +0100 Subject: [PATCH] better test flexibility - use a specific rrdtool to do the tests --- tests/alltests | 3 +++ tests/functions | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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" -- 2.47.2