fi
RET3=`$INIT_L7DIRECTORD configtest 2>&1`
- # all result should be same.
+ # all result must be same.
if [ "$RET1" != "$RET2" -o "$RET1" != "$RET3" ]
then
echo "Test failed: configtest result was not matched."
RET1=`$L7DIRECTORD configtest 2>&1`
if [ $? -eq 1 ]
then
- echo "Test failed: $L7DIRECTORD configtest should be no error."
+ echo "Test failed: $L7DIRECTORD configtest must be no error."
exit 1
fi
RET2=`$L7DIRECTORD -t 2>&1`
if [ $? -eq 1 ]
then
- echo "Test failed: $L7DIRECTORD -t should be no error."
+ echo "Test failed: $L7DIRECTORD -t must be no error."
exit 1
fi
RET3=`$INIT_L7DIRECTORD configtest 2>&1`
EXPECT="Syntax OK"
if [ "$RET1" != "$EXPECT" ]
then
- echo "Test failed: $L7DIRECTORD configtest should be Syntax OK."
+ echo "Test failed: $L7DIRECTORD configtest must be Syntax OK."
exit 1
fi
# stop l7directord
$INIT_L7DIRECTORD stop
-# /usr/sbin/l7vsadm should be used
+# /usr/sbin/l7vsadm must be used
grep " $L7VSADM -K -n" $dummylog > /dev/null 2>&1
if [ $? -ne 0 ]
then
# stop l7directord
$INIT_L7DIRECTORD stop
-# /sbin/l7vsadm should be used
+# /sbin/l7vsadm must be used
grep " /sbin/l7vsadm -K -n" $dummylog > /dev/null 2>&1
if [ $? -ne 0 ]
then
# this diff time will be same as checktimeout value.
diff_time=`expr $timeout_time - $start_time`
if [ $diff_time -ne 3 -a $diff_time -ne 4 ]; then
- echo "Test failed: Timeout should occurred in 3 sec, but it passed $diff_time sec this time."
+ echo "Test failed: Timeout must occurred in 3 (or 4) sec, but it passed $diff_time sec this time."
exit 1
fi
# this diff time will be same as checktimeout value.
diff_time=`expr $timeout_time - $start_time`
if [ $diff_time -ne 3 -a $diff_time -ne 4 ]; then
- echo "Test failed: Timeout should occurred in 3 sec, but it passed $diff_time sec this time."
+ echo "Test failed: Timeout must occurred in 3 (or 4) sec, but it passed $diff_time sec this time."
exit 1
fi