OSDN Git Service

trunk整理
[ultramonkey-l7/ultramonkey-l7-v3.git] / test / script / module-protocol-sessionless / sessionless-30.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
13 usleep 100000
14 RET=`$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -S /sorry12345 --sorry-uri /test 2>&1 | grep "PARSE ERROR"`
15 if [ "$RET" != "PARSE ERROR: protocol module argument error(--proto-module): Cannot set multiple option '-S/--sorry-uri'." ]
16 then
17         echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -S /sorry12345 --sorry-uri /test"
18         exit 1
19 fi
20
21 exit 0
22