runtests.pl: add %TESTNUMBER variable to make copying tests more convenient

This commit is contained in:
Fabian Keil 2014-06-16 16:03:00 +02:00 committed by Daniel Stenberg
parent 8ad31a8c6e
commit 203dc00718
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 56 additions and 5 deletions

View file

@ -137,7 +137,7 @@ test1144 test1145 test1146 test1147 test1148 test1149 test1150 test1151 \
test1152 test1153 test1154 test1155 test1156 test1157 test1158 test1159 \
test1160 test1161 test1162 test1163 test1164 test1165 test1166 test1167 \
test1168 test1169 test1170 test1171 test1172 test1173 test1174 test1175 \
test1176 test1177 test1178 test1179 test1180 test1181 test1182 \
test1176 test1177 test1178 test1179 test1180 test1181 test1182 test1183 \
\
test1188 \
\

48
tests/data/test1183 Normal file
View file

@ -0,0 +1,48 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>
# Server-side
<reply>
<data>
HTTP/1.1 200 OK
Server: Blafasel/5.0
Date: Sat, 16 Jan 2021 14:48:30 GMT
Content-Length: 12
Bla bla bla
</data>
</reply>
# Client-side
<client>
<server>
http
</server>
<features>
proxy
</features>
<name>
%TESTNUMBER used instead of actual test number
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
# Verify that the %TESTNUMBER has been resolved to 1183
<verify>
<protocol>
GET /1183 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
</protocol>
</verify>
</testcase>