From 864565ab9030a93b93c7c30a7adc60134816a2a1 Mon Sep 17 00:00:00 2001 From: Vinayak Hegde Date: Tue, 1 Dec 2009 06:11:12 -0800 Subject: Regression test-case for bug 156. Signed-off-by: Vijay Bellur --- 156/regr/spec_files/client1.vol | 8 +++ 156/regr/spec_files/server1.vol | 23 +++++++++ 156/regr/testcase | 112 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 143 insertions(+) create mode 100644 156/regr/spec_files/client1.vol create mode 100644 156/regr/spec_files/server1.vol create mode 100755 156/regr/testcase 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit