From 7ed2ddd37ed29f800567f0cb23c8cd2eea35fdbe Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 3 Mar 2011 08:41:07 +0000 Subject: changes for dvm specific testcases Signed-off-by: Vijay Bellur --- dvm/2010/testcase | 25 +++++++++++++++++++++++++ dvm/2140/testcase | 20 ++++++++++++++++++++ dvm/2294/testcase | 22 ++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100755 dvm/2010/testcase create mode 100755 dvm/2140/testcase create mode 100755 dvm/2294/testcase (limited to 'dvm') diff --git a/dvm/2010/testcase b/dvm/2010/testcase new file mode 100755 index 0000000..bdd4589 --- /dev/null +++ b/dvm/2010/testcase @@ -0,0 +1,25 @@ +#!/bin/bash + +source ./regression_helpers +source ./init + +GLUSTERD_DIR=$(dirname $GLUSTERD); + +mkdir $EXPORT_DIR/$global_bug_id/; + +$GLUSTERD_DIR/gluster volume create vol $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null; + +$GLUSTERD_DIR/gluster --mode=script volume stop vol | grep "started state" 2>/dev/null 1>/dev/null; + +if [ $? -ne 0 ]; then + echo -n "$global_bug_id: " + not_ok; +else + echo -n "$global_bug_id: " + ok; +fi + +test_kill; + +test_cleanup; + diff --git a/dvm/2140/testcase b/dvm/2140/testcase new file mode 100755 index 0000000..be0b980 --- /dev/null +++ b/dvm/2140/testcase @@ -0,0 +1,20 @@ +#!/bin/bash + +source ./init +source ./regression_helpers + +GLUSTERD_DIR=$(dirname $GLUSTERD); +mkdir $EXPORT_DIR/$global_bug_id/; + +$GLUSTERD_DIR/gluster volume delete abcdsdrgf --mode=script | grep -i "exist" 2>/dev/null 1>/dev/null +if [ $? -ne 0 ]; then + echo -n "$global_bug_id: " + not_ok; +else + echo -n "$global_bug_id: " + ok; +fi + +test_kill; + +test_cleanup; diff --git a/dvm/2294/testcase b/dvm/2294/testcase new file mode 100755 index 0000000..58eeae0 --- /dev/null +++ b/dvm/2294/testcase @@ -0,0 +1,22 @@ +#!/bin/bash + + +source ./init +source ./regression_helpers + +GLUSTERD_DIR=$(dirname $GLUSTERD); +mkdir $EXPORT_DIR/$global_bug_id/; + +$GLUSTERD_DIR/gluster volume create vol transport tcp,rdma $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null + +if [ $? -ne 0 ]; then + echo -n "$global_bug_id: " + not_ok; +else + echo -n "$global_bug_id: " + ok; +fi + +test_kill; + +test_cleanup; -- cgit