From 15db7ba84e7a9f31683bc2cadeb960c37b6d9bde Mon Sep 17 00:00:00 2001 From: Vinayak Hegde Date: Mon, 2 Nov 2009 02:54:54 -0800 Subject: Regression testcase for bug-15 Signed-off-by: Vijay Bellur --- 15/regr/spec_files/client1.vol | 8 ++++++++ 15/regr/spec_files/server1.vol | 13 +++++++++++++ 15/regr/testcase | 20 ++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 15/regr/spec_files/client1.vol create mode 100644 15/regr/spec_files/server1.vol create mode 100755 15/regr/testcase (limited to '15') 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 -- cgit