]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
tests: add another rrdcreate scaled test 470/head
authorPeter A. Bigot <pab@pabigot.com>
Fri, 16 May 2014 16:11:42 +0000 (11:11 -0500)
committerPeter A. Bigot <pab@pabigot.com>
Fri, 16 May 2014 17:08:21 +0000 (12:08 -0500)
tests/rrdcreate

index 723eaebd79f0f0ad1a5643a320694a5d5b418a34..cba8f6af730670f816ed8e8ee2349b8ccdf8d52d 100755 (executable)
@@ -165,3 +165,26 @@ getinfo \
    RRA:FAILURES:1d:7:9:5 \
 > dur.out
 checkequiv "HWPREDICT equivalents" ct.out dur.out
+
+# FETCH test
+getinfo \
+  --start 0 --step 10s \
+  DS:ds0:GAUGE:300:0:U \
+  RRA:AVERAGE:0.5:30:3600 \
+  RRA:AVERAGE:0.5:90:1200 \
+  RRA:AVERAGE:0.5:360:1200 \
+  RRA:MAX:0.5:360:1200 \
+  RRA:AVERAGE:0.5:8640:600 \
+  RRA:MAX:0.5:8640:600 \
+> ct.out
+getinfo \
+  --start 0 --step 10s \
+  DS:ds0:GAUGE:5m:0:U \
+  RRA:AVERAGE:0.5:5m:300h \
+  RRA:AVERAGE:0.5:15m:300h \
+  RRA:AVERAGE:0.5:1h:50d \
+  RRA:MAX:0.5:1h:50d \
+  RRA:AVERAGE:0.5:1d:600d \
+  RRA:MAX:0.5:1d:600d \
+> dur.out
+checkequiv "FETCH equivalents" ct.out dur.out