diff options
author | Vijaykumar Koppad <vkoppad@redhat.com> | 2014-06-13 17:52:30 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-04-13 10:01:49 +0000 |
commit | b5d7faa96b5ca44be6899c6976691e0fde7d70d1 (patch) | |
tree | e2fedcbfdcd0f55afe27f39c65e0c78c796dd34c /tests/include.rc | |
parent | 5cb5d7029216ce71b19fd798a86ef4c384262ba9 (diff) |
Geo-rep: Adding regression tests for geo-rep
This patch introduces upstream regression suit for geo-replication
* Modifies cleanup (tests/include.rc) to remove everything but
hook-scripts.
Prerequisites:
* Passwordless SSH from root to root of current host.
* Export /build/install/sbin and /build/install/bin to PATH
variable for root user.
Change-Id: I433dd8bbb17edba9baaf516fe0dce3133ba39184
BUG: 1101111
Signed-off-by: Vijaykumar Koppad <vkoppad@redhat.com>
Signed-off-by: Ajeet Jha <ajha@redhat.com>
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/7392
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Aravinda VK <avishwan@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/include.rc')
-rw-r--r-- | tests/include.rc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/include.rc b/tests/include.rc index ed1fef0ae11..d4772bd42f4 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -5,6 +5,8 @@ N0=${N0:=/mnt/nfs/0}; # 0th mount point for NFS N1=${N1:=/mnt/nfs/1}; # 1st mount point for NFS V0=${V0:=patchy}; # volume name to use in tests V1=${V1:=patchy1}; # volume name to use in tests +GMV0=${GMV0:=master}; # master volume name to use in geo-rep tests +GSV0=${GSV0:=slave}; # slave volume name to use in geo-rep tests B0=${B0:=/d/backends}; # top level of brick directories WORKDIRS="$B0 $M0 $M1 $M2 $N0 $N1" CC=cc @@ -436,9 +438,11 @@ function cleanup() ;; esac - if [ -n "${GLUSTERD_WORKDIR}" ] ; then - rm -rf $GLUSTERD_WORKDIR/* $B0/* /etc/glusterd/*; - fi + # remove contents of "GLUSTERD_WORKDIR" except hooks directory. + find $GLUSTERD_WORKDIR/* -maxdepth 0 -name 'hooks' -prune \ + -o -exec rm -rf '{}' ';' + + rm -rf $B0/* /etc/glusterd/*; # unmount all stale mounts from /tmp, This is a temporary work around # till the stale mount in /tmp is found. |