path: root/tests/line-coverage
diff options
authorrishubhjain <>2019-04-25 18:44:44 +0530
committerAmar Tumballi <>2019-05-02 04:52:35 +0000
commit31411a771f9eea4b65e9dd49f213d021bde51bfe (patch)
treef09326046ced145b93ddea9e1b01359f90ee7790 /tests/line-coverage
parentbff877b6e0004076ba3d7d4fac3912e8ad9d676d (diff)
tests: add .t files to increase cli code coverage
different volume profile sub options are added in the test. Change-Id: I93100c37f51afc10870e60b91fcd86e7859e734a updates: bz#1693692 Signed-off-by: rishubhjain <>
Diffstat (limited to 'tests/line-coverage')
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/line-coverage/cli-peer-and-volume-operations.t b/tests/line-coverage/cli-peer-and-volume-operations.t
index 81a8498..27d7439 100644
--- a/tests/line-coverage/cli-peer-and-volume-operations.t
+++ b/tests/line-coverage/cli-peer-and-volume-operations.t
@@ -54,6 +54,7 @@ TEST $CLI_1 volume create $V0 $H1:$B1/$V0 $H2:$B2/$V0 $H3:$B3/$V0
# create a volume with already existing volume name
TEST ! $CLI_1 volume create $V0 $H1:$B1/$V1 $H2:$B2/$V1
TEST $CLI_1 volume start $V0
+EXPECT 'Started' cluster_volinfo_field 1 $V0 'Status';
# Mount the volume and create files
TEST glusterfs -s $H1 --volfile-id $V0 $M1
diff --git a/tests/line-coverage/cli-volume-top-profile-coverage.t b/tests/line-coverage/cli-volume-top-profile-coverage.t
index 73b72ff..35713c2 100644
--- a/tests/line-coverage/cli-volume-top-profile-coverage.t
+++ b/tests/line-coverage/cli-volume-top-profile-coverage.t
@@ -46,8 +46,8 @@ function test_volume_top_cmds () {
# Testing volume profile command with and without xml
function test_volume_profile_cmds () {
local ret=0
- declare -a profile_cmds=("start" "info" "stop")
- for cmd in ${profile_cmds[@]}; do
+ declare -a profile_cmds=("start" "info" "info peek" "info cumulative" "info clear" "info incremental peek" "stop")
+ for cmd in "${profile_cmds[@]}"; do
$CLI_1 volume profile $V0 $cmd
(( ret += $? ))
$CLI_1 volume profile $V0 $cmd --xml