summaryrefslogtreecommitdiffstats
path: root/dvm
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2012-01-05 23:32:03 -0800
committerGerrit Code Review <root@dev.gluster.com>2012-01-05 23:32:03 -0800
commit2752d6b772578f18605285bd871a1f3251905b8b (patch)
treecdf2e8dc4dcc1ebb27e6c2a43cbb01ef36c0d754 /dvm
parentfcddfe73952211d9dab696fd48372f3a91638783 (diff)
parentf019f49f7da525bd5d04a3577257378a95d50184 (diff)
Merge "Checks if geo-sync stops successfully"
Diffstat (limited to 'dvm')
-rwxr-xr-xdvm/764265/testcase27
1 files changed, 27 insertions, 0 deletions
diff --git a/dvm/764265/testcase b/dvm/764265/testcase
new file mode 100755
index 0000000..952dd8f
--- /dev/null
+++ b/dvm/764265/testcase
@@ -0,0 +1,27 @@
+#!/bin/bash
+source $cwd/regression_helpers
+mkdir -p /tmp/$global_bug_id &> /dev/null
+
+#create,start and mount
+$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 &>/dev/null ;
+$GLUSTERFSDIR/gluster volume start $global_bug_id &>/dev/null;
+mount_glusterfs $global_bug_id
+
+#start gsyncd first
+$GLUSTERFSDIR/gluster volume geo-replication $global_bug_id /tmp/$global_bug_id start &> /dev/null;
+
+sleep 10;
+
+#stop gsyncd
+$GLUSTERFSDIR/gluster volume geo-replication $global_bug_id /tmp/$global_bug_id stop &> /dev/null;
+
+sleep 10;
+
+ps aux| grep gsyncd.py | grep monitor &> /dev/null
+if [ $? -ne 0 ]; then
+ rm -rf /tmp/$global_bug_id &> /dev/null
+ exit 0;
+else
+ rm -rf /tmp/$global_bug_id &> /dev/null
+ exit 255;
+fi