summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinayak Hegde <vinayak@gluster.com>2009-11-22 21:26:30 -0800
committerVijay Bellur <vijay@gluster.com>2009-12-01 18:37:54 +0530
commitbc01117cd4286f06526d36a55035ad3314e310dc (patch)
tree714d7268122cd8a70921b6476880883df27b7ebc
parentdbdc896671d9abfbdce83829b7b638426101b304 (diff)
Regression test case for Bug 113.
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--113/regr/spec_files/client1.vol30
-rw-r--r--113/regr/spec_files/server1.vol23
-rw-r--r--113/regr/spec_files/server2.vol23
-rw-r--r--113/regr/spec_files/server3.vol23
-rwxr-xr-x113/regr/testcase19
5 files changed, 118 insertions, 0 deletions
diff --git a/113/regr/spec_files/client1.vol b/113/regr/spec_files/client1.vol
new file mode 100644
index 0000000..a493ee0
--- /dev/null
+++ b/113/regr/spec_files/client1.vol
@@ -0,0 +1,30 @@
+volume remote1
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9352
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume remote2
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9353
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume remote3
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9354
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume stripe
+ type cluster/stripe
+ option block-size 1MB
+ subvolumes remote1 remote2 remote3
+end-volume
+
diff --git a/113/regr/spec_files/server1.vol b/113/regr/spec_files/server1.vol
new file mode 100644
index 0000000..3a28d72
--- /dev/null
+++ b/113/regr/spec_files/server1.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /share/tickets/113/regr/export/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/server
+ option listen-port 9352
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/113/regr/spec_files/server2.vol b/113/regr/spec_files/server2.vol
new file mode 100644
index 0000000..0092b59
--- /dev/null
+++ b/113/regr/spec_files/server2.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /share/tickets/113/regr/export/export2
+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/server
+ option listen-port 9353
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/113/regr/spec_files/server3.vol b/113/regr/spec_files/server3.vol
new file mode 100644
index 0000000..b362c64
--- /dev/null
+++ b/113/regr/spec_files/server3.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /share/tickets/113/regr/export/export3
+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/server
+ option listen-port 9354
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/113/regr/testcase b/113/regr/testcase
new file mode 100755
index 0000000..77e5442
--- /dev/null
+++ b/113/regr/testcase
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+description="# (113) mkdir fails on stripe configuration"
+comments="# Simple stripe setup is used."
+
+source ../../init
+
+start_glusterfs
+
+sleep 5
+
+if [ $(mkdir $MOUNTDIR/client1/1 | grep "Software caused connection abort" | wc -l) -ne 0 ];then
+ not_ok $description
+ comment $comments
+else
+ ok $description
+fi
+
+cleanup_glusterfs