diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-02-05 03:56:20 -0800 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2010-02-09 10:55:35 +0530 |
commit | b902d408cc3ba0f4d623bf72030598d24c213ca8 (patch) | |
tree | a29c2cfedc0058d1acf15e52882e22184e0b6a50 /8 | |
parent | 17dcf1dfe1bd03a581fb272731a7cce0ffe752a4 (diff) |
regression testcase for the bug 8
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to '8')
-rwxr-xr-x | 8/regr/spec_files/server1.vol | 8 | ||||
-rwxr-xr-x | 8/regr/testcase | 27 |
2 files changed, 35 insertions, 0 deletions
diff --git a/8/regr/spec_files/server1.vol b/8/regr/spec_files/server1.vol new file mode 100755 index 0000000..2b73c9d --- /dev/null +++ b/8/regr/spec_files/server1.vol @@ -0,0 +1,8 @@ +# **** server1 spec file **** + +### Export volume "brick" with the contents of "/home/export" directory. +volume posix1 + type storage/posix # POSIX FS translator + option directory /home/raghu/work/regression.git/8/regr/export/export1 # Export this directory +end-volume + diff --git a/8/regr/testcase b/8/regr/testcase new file mode 100755 index 0000000..574aebd --- /dev/null +++ b/8/regr/testcase @@ -0,0 +1,27 @@ +#!/bin/bash + +description="# Incorrect PID printed in the glusterfs log header" +comments="# The log header prints the pre-daemon pid which does not match the pid seen if we do a ps." + + +source ../../init + +start_glusterfs --no-servers --no-clients + +sleep 2 + +$($GLUSTERFS --run-id regr.c.$BUGID -f $SPECDIR/server1.vol -l $LOGDIR/$(hostname)-server1.log --pid-file=$PWD/server1.pid) + + +if [ $(cat server1.pid) == $(cat $LOGDIR/$(hostname)-server1.log | grep PID | cut -d":" -f2) ] ; then + ok $description + comment $comments +else + not_ok $description + comment $comments +fi + + +cleanup_glusterfs + +rm *.pid >/dev/null |