summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinayak Hegde <vinayak@gluster.com>2009-12-01 06:11:12 -0800
committerVijay Bellur <vijay@gluster.com>2009-12-01 22:41:11 +0530
commit864565ab9030a93b93c7c30a7adc60134816a2a1 (patch)
treea1d449135bdebc2a8b7202afddee54d08de1cec4
parent6d683433c428280325a1b00a3d44b73215c4040e (diff)
Regression test-case for bug 156.
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--156/regr/spec_files/client1.vol8
-rw-r--r--156/regr/spec_files/server1.vol23
-rwxr-xr-x156/regr/testcase112
3 files changed, 143 insertions, 0 deletions
diff --git a/156/regr/spec_files/client1.vol b/156/regr/spec_files/client1.vol
new file mode 100644
index 0000000..d7b4f87
--- /dev/null
+++ b/156/regr/spec_files/client1.vol
@@ -0,0 +1,8 @@
+volume remote1
+ type protocol/client
+ option transport-type tcp
+ option remote-port 9362
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
diff --git a/156/regr/spec_files/server1.vol b/156/regr/spec_files/server1.vol
new file mode 100644
index 0000000..0953880
--- /dev/null
+++ b/156/regr/spec_files/server1.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /jbod/regr/156/export1
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp
+ option listen-port 9370
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/156/regr/testcase b/156/regr/testcase
new file mode 100755
index 0000000..38810a1
--- /dev/null
+++ b/156/regr/testcase
@@ -0,0 +1,112 @@
+#!/bin/bash
+
+description="# (156) Broken symbolic link when relative path is given for a log file"
+comments="# When glusterfs is started with giving relative path for the log file, the symbolic link is broken."
+
+source ../../init
+
+start_glusterfs --no-servers --no-clients
+
+$GLUSTERFS --run-id bug-156 -f $SPECDIR/server1.vol -l ../regr/server11.log
+
+sleep 5
+
+if [ $(ls -ltr server11.log | grep '../' | wc -l) -ne 0 ];then
+ not_ok $description
+ comment $comments
+else
+ ok $description
+fi
+
+rm server11.log* 2> /dev/null
+
+cleanup_glusterfs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+