From 1fd9ea4f0b4113b14cbd85b18e9c257459e4263c Mon Sep 17 00:00:00 2001 From: Vishwanath Date: Wed, 16 Mar 2011 23:22:22 -0700 Subject: regression testcase for the bug 2483 Signed-off-by: Vijay Bellur --- dvm/2483/testcase | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dvm/2483/testcase (limited to 'dvm/2483') diff --git a/dvm/2483/testcase b/dvm/2483/testcase new file mode 100755 index 0000000..ba62402 --- /dev/null +++ b/dvm/2483/testcase @@ -0,0 +1,16 @@ +#!/bin/bash + +source ./regression_helpers + +VOLNAME="vol$global_bug_id" + +$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 $(hostname):$EXPORT_DIR/$global_bug_id/brick2 2>/dev/null 1>/dev/null +$GLUSTERFSDIR/gluster volume create $VOLNAME replica 2 $(hostname):$EXPORT_DIR/$global_bug_id/brick3 $(hostname):$EXPORT_DIR/$global_bug_id/brick4 2>/dev/null 1>/dev/null + +$GLUSTERFSDIR/gluster volume start $global_bug_id 2>/dev/null 1>/dev/null +$GLUSTERFSDIR/gluster volume start $VOLNAME 2>/dev/null 1>/dev/null + +sleep 5 + +showmount -e | grep $VOLNAME 2>/dev/null 1>/dev/null && showmount -e | grep -w $global_bug_id 2>/dev/null 1>/dev/null + exit $?; -- cgit