X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=test%2Fscript%2FPT%2FB%2FB-8-IPv6v6.sh;fp=test%2Fscript%2FPT%2FB%2FB-8-IPv6v6.sh;h=dccfc04997cd905fb4298e3a46af3c62833fdef4;hb=4bcd512a997b7bf361c23116b7e51273035432f3;hp=0000000000000000000000000000000000000000;hpb=c98260fdc42e319de4b7bc06212de30a378c5092;p=ultramonkey-l7%2Fultramonkey-l7-v3.git diff --git a/test/script/PT/B/B-8-IPv6v6.sh b/test/script/PT/B/B-8-IPv6v6.sh new file mode 100755 index 00000000..dccfc049 --- /dev/null +++ b/test/script/PT/B/B-8-IPv6v6.sh @@ -0,0 +1,66 @@ +#!/bin/bash + +. ${SET_DEFAULT_CONF} + +VS="[::1]" +SS="[::1]" + +#Run http server +SorryServer1=SorryServer1 +SorryServer1_ADDR=$SS +SorryServer1_PORT=50001 +start_lighttpd -s $SorryServer1 -a $SorryServer1_ADDR -p $SorryServer1_PORT -i +if [ $? -ne 0 ] +then + echo "Test failed: start_lighttpd SorryServer1" + exit 1 +fi + +#Add Service +$INIT_L7VSD start +if [ $? -ne 0 ] +then + echo "Test failed: $L7VSD" + exit 1 +fi +usleep 100000 + +$L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k +if [ $? -ne 0 ] +then + echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -u 100 -b $SS:50001 -f 0 -Q 200K -q 200k" + exit 1 +fi + +RET=`$L7VSADM -l` +EXPECT="Layer-7 Virtual Server version 3.0.0 +Prot LocalAddress:Port ProtoMod Scheduler + -> RemoteAddress:Port Forward Weight ActiveConn InactConn +TCP localhost:40001 sessionless rr" + +if [ "${RET}" != "${EXPECT}" ] +then + echo "Test failed: $L7VSADM -l" + exit 1 +fi + +$L7VSADM -C +if [ $? -ne 0 ] +then + echo "Test failed: $L7VSADM -C" + exit 1 +fi + +RET=`$L7VSADM -l` +EXPECT="Layer-7 Virtual Server version 3.0.0 +Prot LocalAddress:Port ProtoMod Scheduler + -> RemoteAddress:Port Forward Weight ActiveConn InactConn" +if [ "${RET}" != "${EXPECT}" ] +then + echo "Test failed: $L7VSADM -l" + exit 1 +fi + +exit 0 + +