summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2019-08-01 19:00:56 +0530
committerAmar Tumballi <amarts@redhat.com>2019-08-04 07:10:54 +0000
commit2dd43d3e5b5305db3a5ecafabdd9cf8e7775ec75 (patch)
treec48e4e1fe40e7a1a7f834bd10c3c00bcd660b079 /tests
parented7a3793073670e787063c47e55010fc7c963064 (diff)
xdr: add code so we have more xdr functions covered
Updates: bz#1693692 Change-Id: Ia10ccca5e1fed6c4269842ebb4d507662ca0f6a6 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic/mount.t3
-rw-r--r--tests/line-coverage/cli-peer-and-volume-operations.t8
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/basic/mount.t b/tests/basic/mount.t
index f4c2df31135..3a3d7cc9d8d 100755
--- a/tests/basic/mount.t
+++ b/tests/basic/mount.t
@@ -69,6 +69,9 @@ TEST rm -f $N0/newfile;
TEST ! stat $M0/newfile;
TEST ! stat $M1/newfile;
+# No need to check for status here right now
+$(dirname $0)/rpc-coverage.sh $N0 >/dev/null
+
## Before killing daemon to avoid deadlocks
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" umount_nfs $N0
diff --git a/tests/line-coverage/cli-peer-and-volume-operations.t b/tests/line-coverage/cli-peer-and-volume-operations.t
index 5c44565cbc9..a1545048773 100644
--- a/tests/line-coverage/cli-peer-and-volume-operations.t
+++ b/tests/line-coverage/cli-peer-and-volume-operations.t
@@ -84,4 +84,12 @@ TEST $CLI_1 system getspec $V0
TEST $CLI_1 system getwd
TEST $CLI_1 system fsm log
+# Both these may fail, but it covers xdr functions and some
+# more code in cli/glusterd
+$CLI_1 system:: mount test local:/$V0
+$CLI_1 system:: umount $M0 lazy
+$CLI_1 system:: copy file options
+$CLI_1 system:: portmap brick2port $H0:$B0/brick
+$CLI_1 system:: uuid reset
+
cleanup