Commit a0492d4e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a testcase for the sema operations



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2916 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent fe65f264
# $Id: a00007.vtc 2906 2008-07-08 10:29:07Z phk $
test "Sema operations"
server s1 -listen 127.0.0.1:9080 {
rxreq
sema r1 sync 4
delay .9
txresp
} -start
server s2 -listen 127.0.0.1:9081 {
rxreq
sema r1 sync 4
delay .6
txresp
} -start
server s3 -listen 127.0.0.1:9082 {
rxreq
sema r1 sync 4
delay .2
txresp
} -start
client c1 -connect 127.0.0.1:9080 {
delay .2
txreq
rxresp
sema r1 sync 4
} -start
client c2 -connect 127.0.0.1:9081 {
delay .6
txreq
rxresp
sema r1 sync 4
} -start
client c3 -connect 127.0.0.1:9082 {
delay .9
txreq
rxresp
sema r1 sync 4
} -start
# Wait for all servers to have received requests
sema r1 sync 4
# Wait for all clients to have received responses
sema r1 sync 4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment