From: Peter Stamfest Date: Mon, 1 Sep 2014 19:56:59 +0000 (+0200) Subject: speed up modify4 test - especially under valgrind X-Git-Tag: v1.5.0-rc1~42^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20872645db6238f91370acbfa402cf5499aa2890;p=thirdparty%2Frrdtool-1.x.git speed up modify4 test - especially under valgrind --- diff --git a/tests/modify4 b/tests/modify4 index 3abb361c..363437c1 100755 --- a/tests/modify4 +++ b/tests/modify4 @@ -16,12 +16,15 @@ $RRDTOOL create ${BUILD}a2.rrd --start 1300000000 --step 60 DS:a:GAUGE:120:0:U # add 50 values - note that we do NOT add it exactly for boundary times, and # that we end at a NON CDP boundary for 5-PDP RRAs: N=10 +UPDATE= for T in $(seq 1300000050 60 1300002990) ; do - $RRDTOOL update ${BUILD}a1.rrd --template a $T:$N || fail update1 - $RRDTOOL update ${BUILD}a2.rrd --template a $T:$N || fail update2 + UPDATE="$UPDATE $T:$N" let N=$N+10 done +$RRDTOOL update ${BUILD}a1.rrd --template a $UPDATE || fail update1 +$RRDTOOL update ${BUILD}a2.rrd --template a $UPDATE || fail update2 + $RRDTOOL dump ${BUILD}a1.rrd | $DIFF ${BASE}a1-create.dump - report create 1 $RRDTOOL dump ${BUILD}a2.rrd | $DIFF ${BASE}a2-create.dump -