summaryrefslogtreecommitdiffstats
path: root/dvm/2154/testcase
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-03-16 02:20:16 -0700
committerVijay Bellur <vijay@gluster.com>2011-03-17 12:21:02 +0530
commit363835c2a7bce13e831d83632296a5364e80ca4a (patch)
tree3842411a3c2d4a1a4a8c8daf94fbb97186bb25fc /dvm/2154/testcase
parent7b57d9ff49a55a5d43edf406fc793c193fb5a898 (diff)
regression testcase for the bug 2154
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'dvm/2154/testcase')
-rwxr-xr-xdvm/2154/testcase21
1 files changed, 21 insertions, 0 deletions
diff --git a/dvm/2154/testcase b/dvm/2154/testcase
new file mode 100755
index 0000000..50b58c0
--- /dev/null
+++ b/dvm/2154/testcase
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+source ./regression_helpers
+
+$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null
+
+TOP_DIR=$(dirname $GLUSTERFSDIR);
+
+ls -l /etc/glusterd/.cmd_log_history 2>/dev/null 1>/dev/null;
+if [ $? -eq 0 ]; then
+ ret=22;
+else
+ ls -l $TOP_DIR/var/log/glusterfs/.cmd_log_history 2>/dev/null 1>/dev/null;
+ if [ $? -eq 0 ]; then
+ ret=0;
+ else
+ ret=22;
+ fi
+fi
+
+exit $ret;