]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
speed up modify4 test - especially under valgrind
authorPeter Stamfest <peter@stamfest.at>
Mon, 1 Sep 2014 19:56:59 +0000 (21:56 +0200)
committerPeter Stamfest <peter@stamfest.at>
Mon, 1 Sep 2014 19:56:59 +0000 (21:56 +0200)
tests/modify4

index 3abb361cf414f1973ddcc4aa2862c2d33c1438b9..363437c1a3dff1f8f99a8a6aa4808551daf53a99 100755 (executable)
@@ -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 -