6 SorryServer1=SorryServer1
7 SorryServer1_ADDR=127.0.0.1
8 SorryServer1_PORT=50001
9 start_lighttpd -s $SorryServer1 -a $SorryServer1_ADDR -p $SorryServer1_PORT
12 echo "Test failed: start_lighttpd SorryServer1"
21 echo "Test failed: $L7VSD"
26 $L7VSADM -A -t localhost:40001 -m sessionless -s wrr -u 10 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 0 -Q 100M -q 100M -O deferaccept,cork,quickackoff,nodelay -L 1 -a /var/log/l7vs/l7vsd_conn.log --ac-rotate-type size --ac-rotate-max-backup-index 12 --ac-rotate-max-filesize 1M
29 echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -s wrr -u 10 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 0 -Q 100M -q 100M -O deferaccept,cork,quickackoff,nodelay -L 1 -a /var/log/l7vs/l7vsd_conn.log --ac-rotate-type size --ac-rotate-max-backup-index 12 --ac-rotate-max-filesize 1M"
35 EXPECT="Layer-7 Virtual Server version 3.0.0
39 l7vsd_network_qos warn
40 l7vsd_network_bandwidth warn
41 l7vsd_network_num_connection warn
42 l7vsd_network_access warn
44 l7vsd_virtualservice warn
45 l7vsd_virtualservice_thread warn
47 l7vsd_session_thread warn
49 l7vsd_sorryserver warn
51 l7vsd_replication warn
52 l7vsd_replication_sendthread warn
58 l7vsd_system_memory warn
59 l7vsd_system_endpoint warn
60 l7vsd_system_signal warn
61 l7vsd_system_environment warn
73 cache update interval none
75 last request date none
77 total GET requests none
78 total SET requests none
79 total trap counts none
81 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
82 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
83 TCP localhost:40001 sessionless wrr --sorry-uri '/' --statistic 0
85 Sorry Server localhost:50001 Masq
92 Access Log File /var/log/l7vs/l7vsd_conn.log
93 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 12 --ac-rotate-max-filesize 1M
95 TCP_DEFER_ACCEPT enable
100 Current Upload / Limit 0.000000 Mbps / 800.000000 Mbps
101 Current Download / Limit 0.000000 Mbps / 800.000000 Mbps
103 HTTP Total Requests 0
105 HTTP POST Requests 0"
106 if [ "${RET}" != "${EXPECT}" ]
108 echo "Test failed: $L7VSADM -V"