From: Peter Stamfest Date: Wed, 20 Aug 2014 22:52:01 +0000 (+0200) Subject: allow to print the actual rrdtool calls run by a test by setting the VERBOSE X-Git-Tag: v1.5.0-rc1~42^2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=766e8fc864cae91c5d0525d6797e343a4edcda36;p=thirdparty%2Frrdtool-1.x.git allow to print the actual rrdtool calls run by a test by setting the VERBOSE env. variable to a non-empty string before calling the test --- diff --git a/tests/functions b/tests/functions index 3923cf62..e4eb066a 100644 --- a/tests/functions +++ b/tests/functions @@ -24,6 +24,17 @@ if [ -z "$RRDTOOL" ] ; then esac fi +function verbose_rrdtool { + echo "$RRDTOOL_V" "$@" + "$RRDTOOL_V" "$@" +} + +if [ -n "$VERBOSE" ] ; then + RRDTOOL_V="$RRDTOOL" + RRDTOOL=verbose_rrdtool +fi + + DIFF="diff -u" function fail {