From 20872645db6238f91370acbfa402cf5499aa2890 Mon Sep 17 00:00:00 2001 From: Peter Stamfest Date: Mon, 1 Sep 2014 21:56:59 +0200 Subject: [PATCH] speed up modify4 test - especially under valgrind --- tests/modify4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 - -- 2.47.3