diff options
author | Vinayak Hegde <vinayak@gluster.com> | 2009-11-10 22:18:22 -0800 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2009-11-11 18:07:32 +0530 |
commit | 3c97ad1aaf984f01eb456ab01d4bd0b90f4b8968 (patch) | |
tree | 9dc17159d8bd6fdf04442a2294733ba242317629 | |
parent | 4f4524ba361ed5312c13a9bda36b6b1b5772983a (diff) |
Regression testcase for bug-5.
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r-- | 5/regr/spec_files/client1.vol | 10 | ||||
-rw-r--r-- | 5/regr/spec_files/server1.vol | 24 | ||||
-rwxr-xr-x | 5/regr/testcase | 18 |
3 files changed, 52 insertions, 0 deletions
diff --git a/5/regr/spec_files/client1.vol b/5/regr/spec_files/client1.vol new file mode 100644 index 0000000..5f63507 --- /dev/null +++ b/5/regr/spec_files/client1.vol @@ -0,0 +1,10 @@ +volume remote1 + type protocol/client + option transport-type socket + option address-family inet + option remote-host 127.0.0.1 + option remote-port 9302 + option remote-subvolume brick +end-volume + + diff --git a/5/regr/spec_files/server1.vol b/5/regr/spec_files/server1.vol new file mode 100644 index 0000000..a6e782c --- /dev/null +++ b/5/regr/spec_files/server1.vol @@ -0,0 +1,24 @@ +volume posix + type storage/posix + option directory /share/tickets/5/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 + option listen-port 9302 + option auth.addr.brick.allow * + subvolumes brick +end-volume + diff --git a/5/regr/testcase b/5/regr/testcase new file mode 100755 index 0000000..5184183 --- /dev/null +++ b/5/regr/testcase @@ -0,0 +1,18 @@ +#!/bin/bash + +description="# (5) mount.glusterfs script does not support TRACE log level" +comments="#TRACE log level" + +source ../../init + +start_glusterfs --no-clients + +if [ $(mount -t glusterfs-$VERSION -o defaults,noatime,nodiratime,log-file=$LOGDIR/$(hostname)-client1.log,log-level=TRACE $SPECDIR/client1.vol $MOUNTDIR/client1 | wc -l) -ne 0 ] +then + not_ok $description + comment $comments +else + ok $description +fi + +cleanup_glusterfs |