From: Bryn M. Reeves Date: Fri, 11 Dec 2015 17:16:23 +0000 (+0000) Subject: tests: add dmstats create tests X-Git-Tag: v2_02_144~24 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=3d3b132d9ac845e31c316ad4b908466bb3837a4d;p=lvm2.git tests: add dmstats create tests Add tests for the "dmstats create" command: * simple whole-device region * region using --start/--len options * region using --segments option * region with precise timestamps (--precise) * region with histogram bounds (--bounds) --- diff --git a/test/shell/dmstats-create.sh b/test/shell/dmstats-create.sh index cb1671a13..d5db79f45 100644 --- a/test/shell/dmstats-create.sh +++ b/test/shell/dmstats-create.sh @@ -15,6 +15,13 @@ aux driver_at_least 4 33 || skip # ensure we can create devices (uses dmsetup, etc) -#aux prepare_devs 5 +aux prepare_devs 1 + +# basic dmstats create commands + +dmstats create "$dev1" +dmstats create --start 0 --len 1 "$dev1" +dmstats create --segments "$dev1" +dmstats create --precise "$dev1" +dmstats create --bounds 10ms,20ms,30ms "$dev1" -# FIXME: some actual tests here.