Commit 2b1673c9 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Now the test servers and test cases can run on a custom port number. There's

no fixed port numbers in use anymore. Starting now, the default ports the
servers use are 8990 - 8993. There's no option to modify these yet, but
changing the $base option in the top of the runtests.pl script.
parent 702f549a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -27,7 +27,7 @@ http
simple HTTP GET
simple HTTP GET
 </name>
 </name>
 <command>
 <command>
http://%HOSTIP:%HOSTPORT/1
http://%HOSTIP:%HTTPPORT/1
</command>
</command>
</client>
</client>


@@ -39,7 +39,7 @@ http://%HOSTIP:%HOSTPORT/1
</strip>
</strip>
<protocol>
<protocol>
GET /1 HTTP/1.1
GET /1 HTTP/1.1
Host: 127.0.0.1:8999
Host: 127.0.0.1:%HTTPPORT
Pragma: no-cache
Pragma: no-cache
Accept: */*
Accept: */*


+2 −2
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ http
simple HTTP PUT from file
simple HTTP PUT from file
 </name>
 </name>
 <command>
 <command>
http://%HOSTIP:%HOSTPORT/we/want/10 -T log/test10.txt
http://%HOSTIP:%HTTPPORT/we/want/10 -T log/test10.txt
</command>
</command>
<file name="log/test10.txt">
<file name="log/test10.txt">
Weird
Weird
@@ -41,7 +41,7 @@ the
</strip>
</strip>
<protocol>
<protocol>
PUT /we/want/10 HTTP/1.1
PUT /we/want/10 HTTP/1.1
Host: 127.0.0.1:8999
Host: 127.0.0.1:%HTTPPORT
Pragma: no-cache
Pragma: no-cache
Accept: */*
Accept: */*
Content-Length: 78
Content-Length: 78
+3 −3
Original line number Original line Diff line number Diff line
@@ -43,7 +43,7 @@ http
simple HTTP Location: following
simple HTTP Location: following
 </name>
 </name>
 <command>
 <command>
http://%HOSTIP:%HOSTPORT/want/11 -L
http://%HOSTIP:%HTTPPORT/want/11 -L
</command>
</command>
</test>
</test>


@@ -54,12 +54,12 @@ http://%HOSTIP:%HOSTPORT/want/11 -L
</strip>
</strip>
<protocol>
<protocol>
GET /want/11 HTTP/1.1
GET /want/11 HTTP/1.1
Host: 127.0.0.1:8999
Host: 127.0.0.1:%HTTPPORT
Pragma: no-cache
Pragma: no-cache
Accept: */*
Accept: */*


GET /want/data/110002.txt?coolsite=yes HTTP/1.1
GET /want/data/110002.txt?coolsite=yes HTTP/1.1
Host: 127.0.0.1:8999
Host: 127.0.0.1:%HTTPPORT
Pragma: no-cache
Pragma: no-cache
Accept: */*
Accept: */*


+2 −2
Original line number Original line Diff line number Diff line
@@ -27,7 +27,7 @@ http
HTTP range support
HTTP range support
 </name>
 </name>
 <command>
 <command>
http://%HOSTIP:%HOSTPORT/want/12 -r 100-200
http://%HOSTIP:%HTTPPORT/want/12 -r 100-200
</command>
</command>
</test>
</test>


@@ -39,7 +39,7 @@ http://%HOSTIP:%HOSTPORT/want/12 -r 100-200
<protocol>
<protocol>
GET /want/12 HTTP/1.1
GET /want/12 HTTP/1.1
Range: bytes=100-200
Range: bytes=100-200
Host: 127.0.0.1:8999
Host: 127.0.0.1:%HTTPPORT
Pragma: no-cache
Pragma: no-cache
Accept: */*
Accept: */*


+2 −2
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@ http
HTTP custom request 'DELETE'
HTTP custom request 'DELETE'
 </name>
 </name>
 <command>
 <command>
http://%HOSTIP:%HOSTPORT/want/13 -X DELETE
http://%HOSTIP:%HTTPPORT/want/13 -X DELETE
</command>
</command>
</test>
</test>


@@ -29,7 +29,7 @@ http://%HOSTIP:%HOSTPORT/want/13 -X DELETE
</strip>
</strip>
<protocol>
<protocol>
DELETE /want/13 HTTP/1.1
DELETE /want/13 HTTP/1.1
Host: 127.0.0.1:8999
Host: 127.0.0.1:%HTTPPORT
Pragma: no-cache
Pragma: no-cache
Accept: */*
Accept: */*


Loading