path: root/tests/basic
diff options
authorYaniv Kaul <>2019-09-27 12:22:23 +0300
committerAmar Tumballi <>2019-11-07 08:33:36 +0000
commit35d13c1e55e90f8da7d6edaeeab331a66aaf6bfd (patch)
tree9b8ec6708385637a14a45caf090720fb626d8384 /tests/basic
parentccf33e789f2cbd202e21340f684e2140d844a129 (diff)
glusterfsd-mgmt: unify read and write tests
1. Both read and write tests required writing first. Either just writing (write test) or write and then read (read test). So the code is now unified. 2. There's no reason to read zeros from /dev/zero. Just use a CALLOC'ed buffer. I don't think we should read and write zeros, but I did not change the code yet (I think compression and/or dedup will offset results) It appears neither read-perf nor write-perf were tested, so added basic tests for them. Change-Id: I24b1f249fa0335ed652a8982e99c0687d940230e updates: bz#1193929 Signed-off-by: Yaniv Kaul <>
Diffstat (limited to 'tests/basic')
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basic/volume.t b/tests/basic/volume.t
index 35ad55c..7648ae1 100755
--- a/tests/basic/volume.t
+++ b/tests/basic/volume.t
@@ -25,6 +25,9 @@ EXPECT '9' brick_count $V0
TEST $CLI volume remove-brick $V0 $H0:$B0/${V0}{1,2,3} force;
EXPECT '6' brick_count $V0
+TEST $CLI volume top $V0 read-perf bs 4096 count 1000
+TEST $CLI volume top $V0 write-perf bs 1048576 count 2
TEST $CLI volume stop $V0;
EXPECT 'Stopped' volinfo_field $V0 'Status';