diff options
author | Vijay Bellur <vijay@gluster.com> | 2009-11-01 23:30:11 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2009-11-01 23:30:11 +0530 |
commit | cb1c957ada8ba20524fa8b53652c6f21d76e4b89 (patch) | |
tree | 04099b37d36c783b1506d4b7b3066bd83cab4589 | |
parent | ce8ba96f13d4c926cfc0dee3f7fa23bdbc0f3b44 (diff) |
Changes for new regression test-case format.
-rwxr-xr-x | 226/regr/testcase | 40 |
1 files changed, 9 insertions, 31 deletions
diff --git a/226/regr/testcase b/226/regr/testcase index 02d8c9c..cffc7e9 100755 --- a/226/regr/testcase +++ b/226/regr/testcase @@ -3,40 +3,17 @@ description="#mkdir fails" comments="#mkdir after rm of regular file of same name fails" -version=$1 -bugid=$(pwd | cut -d '/' -f 4) -mountdir="/mnt/regr/$bugid/$version" -specdir="/share/tickets/$bugid/regr/spec_files/" +source ../../init -function ok () { - desc=$@ - echo "ok - $desc" -} +start_glusterfs --no-servers --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-servers --no-clients - -if [ ! -f /sbin/mount.glusterfs-$version ]; then - sed -e 's/^\(\s*prefix=\)".*"/\1"\/opt\/glusterfs\/'$version'"/; s/^\(\s*cmd_line=.*\/sbin\/\).*/\1glusterfs");/' /sbin/mount.glusterfs > /sbin/mount.glusterfs-$version - chmod +x /sbin/mount.glusterfs-$version +## Testcase START +if [ ! -f /sbin/mount.glusterfs-$VERSION ]; then + sed -e 's/^\(\s*prefix=\)".*"/\1"\/opt\/glusterfs\/'$VERSION'"/; s/^\(\s*cmd_line=.*\/sbin\/\).*/\1glusterfs");/' /sbin/mount.glusterfs > /sbin/mount.glusterfs-$VERSION + chmod +x /sbin/mount.glusterfs-$VERSION fi -cd $mountdir +cd $MOUNTDIR touch dot rm -rf dot @@ -50,5 +27,6 @@ else fi rm tmpfile +## Testcase End -/opt/qa/regr/cleanup $version $bugid +cleanup_glusterfs |