Changeset 13664e2


Ignore:
Timestamp:
2009-11-24 20:08:39 (4 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
2.1, tags/varnish-2.1.0, tags/varnish-2.1.1, tags/varnish-2.1.2, tags/varnish-2.1.3, tags/varnish-2.1.4
Children:
726aba
Parents:
0d758a
git-author:
Poul-Henning Kamp <phk@…> (2009-11-24 20:08:39)
git-committer:
Poul-Henning Kamp <phk@…> (2009-11-24 20:08:39)
Message:

Let servers pick a randomly assigned TCP port, if nothing is
explicitly specified, and use macros to pick up the result
as necessary.

git-svn-id:  http://www.varnish-cache.org/svn/trunk@4364 d4fa192b-c00b-0410-8231-f00ffab90ce4

Location:
bin/varnishtest
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishtest/tests/a00003.vtc

    ref5a07 r13664e2  
    33test "dual independent HTTP transactions" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        expect req.request == PUT 
     
    1111} 
    1212 
    13 server s2 -listen 127.0.0.1:9081 { 
     13server s2 { 
    1414        rxreq 
    1515        expect req.request == GET 
     
    2222server s2 -start  
    2323 
    24 client c1 -connect 127.0.0.1:9080 { 
     24client c1 -connect $s1_sock { 
    2525        txreq -req PUT -proto HTTP/1.0 -url /foo 
    2626        rxresp 
     
    3030} 
    3131 
    32 client c2 -connect 127.0.0.1:9081 { 
     32client c2 -connect $s2_sock { 
    3333        txreq  
    3434        rxresp 
  • bin/varnishtest/tests/a00005.vtc

    ref5a07 r13664e2  
    33test "dual shared client HTTP transactions" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        expect req.request == PUT 
     
    1111} 
    1212 
    13 server s2 -listen 127.0.0.1:9081 { 
     13server s2 { 
    1414        rxreq 
    1515        expect req.request == GET 
     
    2222server s2 -start  
    2323 
    24 client c1 -connect 127.0.0.1:9080 { 
     24client c1 -connect $s1_sock { 
    2525        txreq -req PUT -proto HTTP/1.0 -url /foo 
    2626        rxresp 
     
    3232client c1 -run 
    3333 
    34 client c1 -connect 127.0.0.1:9081 { 
     34client c1 -connect $s2_sock { 
    3535        txreq  
    3636        rxresp 
  • bin/varnishtest/tests/a00008.vtc

    r43fce4 r13664e2  
    33test "Sema operations" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        sema r1 sync 4 
     
    1010} -start 
    1111 
    12 server s2 -listen 127.0.0.1:9081 { 
     12server s2 { 
    1313        rxreq 
    1414        sema r1 sync 4 
     
    1717} -start 
    1818 
    19 server s3 -listen 127.0.0.1:9082 { 
     19server s3 { 
    2020        rxreq 
    2121        sema r1 sync 4 
     
    2424} -start 
    2525 
    26 client c1 -connect 127.0.0.1:9080 { 
     26client c1 -connect $s1_sock { 
    2727        delay .2 
    2828        txreq 
     
    3131} -start 
    3232 
    33 client c2 -connect 127.0.0.1:9081 { 
     33client c2 -connect $s2_sock { 
    3434        delay .6 
    3535        txreq 
     
    3838} -start 
    3939 
    40 client c3 -connect 127.0.0.1:9082 { 
     40client c3 -connect $s3_sock { 
    4141        delay .9 
    4242        txreq 
  • bin/varnishtest/tests/c00009.vtc

    r22f0839 r13664e2  
    99} -start 
    1010 
    11 server s2 -listen 127.0.0.1:9180 { 
     11server s2 { 
    1212        rxreq 
    1313        expect req.url == "/foo" 
  • bin/varnishtest/tests/e00006.vtc

    rbf0a1c r13664e2  
    1616 
    1717 
    18 server s2 -listen 127.0.0.1:9180 { 
     18server s2 { 
    1919        rxreq 
    2020        expect req.url == "/body" 
  • bin/varnishtest/tests/r00433.vtc

    r6ee46d r13664e2  
    1919} -start 
    2020 
    21 server s2 -listen 127.0.0.1:9082 { 
     21server s2 { 
    2222        rxreq 
    2323        expect req.url == "/bar" 
  • bin/varnishtest/tests/v00009.vtc

    r31025b4 r13664e2  
    33test "Test round robin director" 
    44 
    5 server s1 -listen 127.0.0.1:2000 { 
     5server s1 { 
    66        rxreq 
    77        txresp -body "1" 
    88} -start 
    99 
    10 server s2 -listen 127.0.0.1:3000 { 
     10server s2 { 
    1111        rxreq 
    1212        txresp -body "22" 
     
    1414 
    1515 
    16 server s3 -listen 127.0.0.1:4000 { 
     16server s3 { 
    1717        rxreq 
    1818        txresp -body "333" 
    1919} -start 
    2020 
    21 server s4 -listen 127.0.0.1:5000 { 
     21server s4 { 
    2222        rxreq 
    2323        txresp -body "4444" 
  • bin/varnishtest/tests/v00022.vtc

    r7537c1 r13664e2  
    99        txresp -body "1" 
    1010} -start 
    11 server s2 -listen 127.0.0.1:9180 { 
     11server s2 { 
    1212        rxreq 
    1313        txresp -body "22" 
     
    1717        txresp -body "22" 
    1818} -start 
    19 server s3 -listen 127.0.0.1:9181 { 
     19server s3 { 
    2020        rxreq 
    2121        txresp -body "333" 
    2222} -start 
    23 server s4 -listen 127.0.0.1:9182 { 
     23server s4 { 
    2424        rxreq 
    2525        txresp -body "4444" 
  • bin/varnishtest/vtc_server.c

    r297e09 r13664e2  
    133133                vtc_log(s->vl, 0, "Server name must start with 's'"); 
    134134 
    135         REPLACE(s->listen, "127.0.0.1:9080"); 
     135        REPLACE(s->listen, "127.0.0.1:0"); 
    136136        AZ(VSS_parse(s->listen, &s->addr, &s->port)); 
    137137        s->repeat = 1; 
Note: See TracChangeset for help on using the changeset viewer.