diff options
| author | Vinayak Hegde <vinayak@gluster.com> | 2009-10-27 22:05:56 -0700 |
|---|---|---|
| committer | Vijay Bellur <vijay@gluster.com> | 2009-10-30 12:08:03 +0530 |
| commit | 65b2bfc27e259bfdc51b8204d4494c20d83d494b (patch) | |
| tree | 5ce17231f5d451d2ed05155f304aac23e530b143 /14/regr/testcase | |
| parent | 3109c6fd00ed9a95dd59986d6b030cfd4463471b (diff) | |
Regression testcase for bug-14
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to '14/regr/testcase')
| -rwxr-xr-x | 14/regr/testcase | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/14/regr/testcase b/14/regr/testcase new file mode 100755 index 0000000..af04e9a --- /dev/null +++ b/14/regr/testcase @@ -0,0 +1,46 @@ +#!/bin/bash + +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 + +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 --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 ] +then + echo $x + ok $description +else + not_ok $description + comment $comments +fi + +/opt/qa/regr/cleanup $version $bugid |
