OSDN Git Service

propset svn:executable
[ultramonkey-l7/ultramonkey-l7-v3.git] / test / script / module-protocol-sessionless / sessionless-37.sh
1 #!/bin/bash
2
3 . ${SET_DEFAULT_CONF}
4
5 #Add Service
6 $L7VSD
7 if [ $? -ne 0 ]
8 then
9         echo "Test failed: $L7VSD"
10         exit 1
11 fi
12 usleep 100000
13
14 $L7VSADM -A -t 127.0.0.1:40001 -m sessionless --statistic 0
15 if [ $? -ne 0 ]
16 then
17         echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless --statistic 0"
18         exit 1
19 fi
20
21 #Check default value
22 RET=`$L7VSADM -V -n | grep "127.0.0.1:40001" | awk '{print $7,$8}'`
23 EXPECT="--statistic 0"
24 if [ "${RET}" != "${EXPECT}" ]
25 then
26         echo "Test failed: $L7VSADM -V -n"
27         exit 1
28 fi
29
30 exit 0
31