r2916 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jul 10 12:27:43 CEST 2008
Author: phk
Date: 2008-07-10 12:27:43 +0200 (Thu, 10 Jul 2008)
New Revision: 2916
Added:
trunk/varnish-cache/bin/varnishtest/tests/a00008.vtc
Log:
Add a testcase for the sema operations
Added: trunk/varnish-cache/bin/varnishtest/tests/a00008.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00008.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00008.vtc 2008-07-10 10:27:43 UTC (rev 2916)
@@ -0,0 +1,51 @@
+# $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
More information about the varnish-commit
mailing list