From 35d13c1e55e90f8da7d6edaeeab331a66aaf6bfd Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Fri, 27 Sep 2019 12:22:23 +0300 Subject: 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 --- tests/basic/volume.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/basic') diff --git a/tests/basic/volume.t b/tests/basic/volume.t index 35ad55c3c5c..7648ae1d6e1 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'; -- cgit