diff options
author | Vinayak Hegde <vinayak@gluster.com> | 2009-11-02 02:54:54 -0800 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2009-11-02 21:38:39 +0530 |
commit | 15db7ba84e7a9f31683bc2cadeb960c37b6d9bde (patch) | |
tree | 8ff144f95440efd893ce6759d4c88e79fbc8d82c | |
parent | 37dffe74f0b979225357052c3c56a11d69916006 (diff) |
Regression testcase for bug-15
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r-- | 15/regr/spec_files/client1.vol | 8 | ||||
-rw-r--r-- | 15/regr/spec_files/server1.vol | 13 | ||||
-rwxr-xr-x | 15/regr/testcase | 20 |
3 files changed, 41 insertions, 0 deletions
diff --git a/15/regr/spec_files/client1.vol b/15/regr/spec_files/client1.vol new file mode 100644 index 0000000..2ab9fcd --- /dev/null +++ b/15/regr/spec_files/client1.vol @@ -0,0 +1,8 @@ +volume remote1 + type protocol/client + option transport-type tcp + option remote-host 127.0.0.1 + option remote-port 9315 + option remote-subvolume brick +end-volume + diff --git a/15/regr/spec_files/server1.vol b/15/regr/spec_files/server1.vol new file mode 100644 index 0000000..002b428 --- /dev/null +++ b/15/regr/spec_files/server1.vol @@ -0,0 +1,13 @@ +volume brick + type storage/posix + option directory /jbod/regr/15/export1 +end-volume + +volume server + type protocol/server + option transport-type tcp + option listen-port 9315 + option auth.addr.brick.allow * + subvolumes brick +end-volume + diff --git a/15/regr/testcase b/15/regr/testcase new file mode 100755 index 0000000..fe37d18 --- /dev/null +++ b/15/regr/testcase @@ -0,0 +1,20 @@ +#!/bin/bash + +description="# [ glusterfs 2.0.2 ] - Unclear log message with missing mount point (during client invocation)" +comments="# dangling volume is printed in the log" + +source ../../init + +start_glusterfs --no-clients + +$($GLUSTERFS --run-id regr.c.$BUGID -f $SPECDIR/client1.vol -l $LOGDIR/$(hostname)-client1.log) + +if [ $(grep "Volume is dangling" $LOGDIR/$(hostname)-client1.log | wc -l) -ne 0 ] +then + not_ok $description + comment $comments +else + ok $description +fi + +cleanup_glusterfs
\ No newline at end of file |