Skip to contentSkip to conversation

master - tests: add dmstats create tests

PATCH Bryn Reeves 1 participant 1 message Feb 25, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3d3b132d9ac845e31c316ad4b908466bb3837a4d
Commit:        3d3b132d9ac845e31c316ad4b908466bb3837a4d
Parent:        11fd7b7c645c0462cac95687c098019cf779cd58
Author:        Bryn M. Reeves <[email protected]>
AuthorDate:    Fri Dec 11 17:16:23 2015 +0000
Committer:     Bryn M. Reeves <[email protected]>
CommitterDate: Thu Feb 25 16:40:59 2016 +0000

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)

---
 test/shell/dmstats-create.sh |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
test/shell/dmstats-create.sh +9 -2
index cb1671a..d5db79f 100644
@@ -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.