summaryrefslogtreecommitdiffstats
path: root/regression_testcase_sample
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-11-01 23:25:08 +0530
committerVijay Bellur <vijay@gluster.com>2009-11-01 23:25:08 +0530
commitc115828fdda56f78fc7cf8ed078ab5d23bbb4b4b (patch)
tree9ea2ace3b6d4b8f37d4494c77a5f0962fd0e2db6 /regression_testcase_sample
parent5afb5eba560002e11e3341b21afbd9c25da9bcee (diff)
Make regression testcases not bound to any specific machine/environment.
Diffstat (limited to 'regression_testcase_sample')
-rw-r--r--regression_testcase_sample47
1 files changed, 6 insertions, 41 deletions
diff --git a/regression_testcase_sample b/regression_testcase_sample
index 2ede804..864d8fd 100644
--- a/regression_testcase_sample
+++ b/regression_testcase_sample
@@ -1,49 +1,14 @@
#!/bin/bash
-bugid=$(pwd | cut -d '/' -f 4)
+source ../../init
+start_glusterfs
-description="#( $bugid ) description of the bug from bugzilla"
-comments="#any comment about the bug"
+#testcase starts here
-version=$1
+#This is my testcase
+#testcase ends here
-mountdir=/mnt/regr/$bugid/$version
-
-function ok () {
- desc=$@
- echo "ok - $desc"
-}
-
-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
-
-#testcase here
-
-sleep 5
-
-if [ $(mount | grep "$mountdir/client1" | wc -l) -ne 0 ];then
- not_ok $description
- comment $comments
-else
- ok $description
-fi
-
-/opt/qa/regr/cleanup $version $bugid
+cleanup_glusterfs