• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂38d708929ad103324f6e87adea951ae037ea1a1f (tree)
時間2010-10-13 17:51:56
作者0809216 <0809216@1ed6...>
Commiter0809216

Log Message

Fixed configtest script

git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10366 1ed66053-1c2d-0410-8867-f7571e6e31d3

Change Summary

差異

--- a/test/script/l7directord/l7directord-1-2-44-1.sh
+++ b/test/script/l7directord/l7directord-1-2-44-1.sh
@@ -9,10 +9,9 @@ then
99 echo "Test failed: $L7DIRECTORD configtest"
1010 exit 1
1111 fi
12-usleep 100000
1312
14-EXPECT="Syntax OK"
15-if [ "$RET" != "$EXPECT" ]
13+echo "$RET" | grep "Syntax OK" > /dev/null 2>&1
14+if [ $? -ne 0 ]
1615 then
1716 echo "Test failed: $L7DIRECTORD configtest"
1817 exit 1
--- a/test/script/l7directord/l7directord-1-2-44-2.sh
+++ b/test/script/l7directord/l7directord-1-2-44-2.sh
@@ -9,10 +9,9 @@ then
99 echo "Test failed: $L7DIRECTORD -t"
1010 exit 1
1111 fi
12-usleep 100000
1312
14-EXPECT="Syntax OK"
15-if [ "$RET" != "$EXPECT" ]
13+echo "$RET" | grep "Syntax OK" > /dev/null 2>&1
14+if [ $? -ne 0 ]
1615 then
1716 echo "Test failed: $L7DIRECTORD -t"
1817 exit 1
--- a/test/script/l7directord/l7directord-1-2-44-3.sh
+++ b/test/script/l7directord/l7directord-1-2-44-3.sh
@@ -9,10 +9,9 @@ then
99 echo "Test failed: $INIT_L7DIRECTORD configtest"
1010 exit 1
1111 fi
12-usleep 100000
1312
14-EXPECT="Syntax OK"
15-if [ "$RET" != "$EXPECT" ]
13+echo "$RET" | grep "Syntax OK" > /dev/null 2>&1
14+if [ $? -ne 0 ]
1615 then
1716 echo "Test failed: $INIT_L7DIRECTORD configtest"
1817 exit 1
--- a/test/script/l7directord/l7directord-1-2-46-1.sh
+++ b/test/script/l7directord/l7directord-1-2-46-1.sh
@@ -9,10 +9,9 @@ then
99 echo "Test failed: $L7DIRECTORD configtest"
1010 exit 1
1111 fi
12-usleep 100000
1312
14-EXPECT="Syntax OK"
15-if [ "$RET" != "$EXPECT" ]
13+echo "$RET" | grep "Syntax OK" > /dev/null 2>&1
14+if [ $? -ne 0 ]
1615 then
1716 echo "Test failed: $L7DIRECTORD configtest"
1817 exit 1
--- a/test/script/l7directord/l7directord-1-2-46-2.sh
+++ b/test/script/l7directord/l7directord-1-2-46-2.sh
@@ -9,10 +9,9 @@ then
99 echo "Test failed: $L7DIRECTORD -t"
1010 exit 1
1111 fi
12-usleep 100000
1312
14-EXPECT="Syntax OK"
15-if [ "$RET" != "$EXPECT" ]
13+echo "$RET" | grep "Syntax OK" > /dev/null 2>&1
14+if [ $? -ne 0 ]
1615 then
1716 echo "Test failed: $L7DIRECTORD -t"
1817 exit 1
--- a/test/script/l7directord/l7directord-1-2-46-3.sh
+++ b/test/script/l7directord/l7directord-1-2-46-3.sh
@@ -9,10 +9,9 @@ then
99 echo "Test failed: $INIT_L7DIRECTORD configtest"
1010 exit 1
1111 fi
12-usleep 100000
1312
14-EXPECT="Syntax OK"
15-if [ "$RET" != "$EXPECT" ]
13+echo "$RET" | grep "Syntax OK" > /dev/null 2>&1
14+if [ $? -ne 0 ]
1615 then
1716 echo "Test failed: $INIT_L7DIRECTORD configtest"
1817 exit 1
--- a/test/script/l7directord/l7directord-1-2-48-1.sh
+++ b/test/script/l7directord/l7directord-1-2-48-1.sh
@@ -10,8 +10,8 @@ then
1010 exit 1
1111 fi
1212
13-EXPECT="Syntax OK"
14-if [ "$RET" != "$EXPECT" ]
13+echo "$RET" | grep "Syntax OK" > /dev/null 2>&1
14+if [ $? -ne 0 ]
1515 then
1616 echo "Test failed: $L7DIRECTORD ${L7DIRECTORD_CONF_DIR}/specified.cf configtest"
1717 exit 1
--- a/test/script/l7directord/l7directord-1-2-48-2.sh
+++ b/test/script/l7directord/l7directord-1-2-48-2.sh
@@ -10,8 +10,8 @@ then
1010 exit 1
1111 fi
1212
13-EXPECT="Syntax OK"
14-if [ "$RET" != "$EXPECT" ]
13+echo "$RET" | grep "Syntax OK" > /dev/null 2>&1
14+if [ $? -ne 0 ]
1515 then
1616 echo "Test failed: $L7DIRECTORD -t ${L7DIRECTORD_CONF_DIR}/specified.cf"
1717 exit 1