diff options
author | Vijay Bellur <vijay@gluster.com> | 2009-11-01 23:29:34 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2009-11-01 23:29:34 +0530 |
commit | ea4b68fce207db5fe9f08fd6f533c02b2c726c55 (patch) | |
tree | 4d8358ef492a4b75844c286a48b63a44528a7b4f | |
parent | ee62e4a721f6e67aa90ad3ff819fcc326d2f13da (diff) |
Changes for new regression test-case format.
-rwxr-xr-x | 131/regr/testcase | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/131/regr/testcase b/131/regr/testcase index 1726bbb..50804db 100755 --- a/131/regr/testcase +++ b/131/regr/testcase @@ -3,42 +3,16 @@ description="# (131) provide a way to get the file location in clustered storage" comments="#doesn't have a mechanism to get the location of the file" -version=$1 -bugid=$(pwd | cut -d '/' -f 4) +source ../../init -exportdir=/jbod/regr/$bugid -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 +start_glusterfs sleep 5 -if [ $(getfattr -d -e hex -m "trusted.glusterfs.location" $mountdir/client1 2> /dev/null | wc -l) -ne 0 ];then +if [ $(getfattr -d -e hex -m "trusted.glusterfs.location" $MOUNTDIR/client1 2> /dev/null | wc -l) -ne 0 ];then ok $description else not_ok $desrciption comment $comments fi -/opt/qa/regr/cleanup $version $bugid +cleanup_glusterfs |