summaryrefslogtreecommitdiffstats
path: root/tests/line-coverage
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2019-04-03 16:49:19 +0530
committerAmar Tumballi <amarts@redhat.com>2019-04-12 02:14:15 +0000
commitcec63a35289e5ee3f3bae8d318350e3f5082325c (patch)
treec34d92d21eb404fc5a9a6c07d74641daf3c27fc6 /tests/line-coverage
parent7108913337f24d3d7a39d919a29872fe50072cf4 (diff)
tests: make sure to traverse all of meta dir
Just to make all files will be listed, which means we have max code-coverage updates: bz#1693692 Change-Id: I11d36ac2f4d6d4fb91223aacd423ad23242eb454 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests/line-coverage')
-rwxr-xr-xtests/line-coverage/meta-max-coverage.t27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/line-coverage/meta-max-coverage.t b/tests/line-coverage/meta-max-coverage.t
new file mode 100755
index 00000000000..16f65dc8a27
--- /dev/null
+++ b/tests/line-coverage/meta-max-coverage.t
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+. $(dirname $0)/../include.rc
+. $(dirname $0)/../volume.rc
+
+cleanup;
+
+TEST glusterd
+TEST pidof glusterd
+TEST $CLI volume info;
+
+TEST $CLI volume create $V0 $H0:$B0/${V0}
+TEST $CLI volume start $V0;
+
+## Mount FUSE
+TEST $GFS -s $H0 --volfile-id $V0 $M1
+
+TEST stat $M1/.meta/
+
+# expect failures in rpc-coverage.sh execution.
+res=$($(dirname $0)/../basic/rpc-coverage.sh $M1/.meta)
+
+res=$(find $M1/.meta -type f -print | xargs cat > /dev/null)
+
+TEST umount $M1
+
+cleanup;