summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-11-01 23:28:52 +0530
committerVijay Bellur <vijay@gluster.com>2009-11-01 23:28:52 +0530
commitee62e4a721f6e67aa90ad3ff819fcc326d2f13da (patch)
tree145c63322c0a9c6fc837817ed639def8f8140bd8
parent39b438a23bc3477a20ad2497fb0e8e64b566bbf1 (diff)
Changes for new regression testcase template
-rwxr-xr-x14/regr/testcase37
1 files changed, 5 insertions, 32 deletions
diff --git a/14/regr/testcase b/14/regr/testcase
index af04e9a..2b9903d 100755
--- a/14/regr/testcase
+++ b/14/regr/testcase
@@ -3,44 +3,17 @@
description="#[ glusterfs 2.0.2 ] - No error logged on stdout/stderr upon missing mount point during client invocation"
comments="#error should be displayed on the sreen"
-version=$1
-bugid=$(pwd | cut -d '/' -f 4)
-specdir=/share/tickets/$bugid/regr/spec_files
-logdir=/share/tickets/$bugid/regr/logs/$version
-GLUSTERFS=/opt/glusterfs/$version/sbin
+source ../../init
-function ok () {
- desc=$@
- echo "ok - $desc"
-}
+start_glusterfs --no-clients
-function not_ok () {
- desc=$@
- echo "not ok - $desc"
-}
-
-
-function comment () {
- desc=$@
- echo "$desc"
-}
-
-[ $# -ne 1 ] && {
- not_ok "#<Usage: $(basename $0) <glusterfs_version>"
- exit
-}
-
-/opt/qa/regr/setup $version $bugid --no-clients
-
-
-x=$($GLUSTERFS/glusterfs --run-id regr.c.$bugid -f $specdir/client1.vol -l $logdir/$(hostname)-client1.log | wc -l)
-if [ $x -ne 0 ]
+$($GLUSTERFS --run-id regr.c.$BUGID -f $SPECDIR/client1.vol -l $LOGDIR/$(hostname)-client1.log)
+if [ $? -ne 0 ]
then
- echo $x
ok $description
else
not_ok $description
comment $comments
fi
-/opt/qa/regr/cleanup $version $bugid
+cleanup_glusterfs