]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1278: verify that an extra --no-remote-name cause no warning
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Feb 2023 12:31:59 +0000 (13:31 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 22 Feb 2023 07:43:19 +0000 (08:43 +0100)
tests/data/Makefile.inc
tests/data/test1278 [new file with mode: 0644]

index 0190eaa681f01cd51885ce03f2ebfa5bd4f75412..7ad82f9b498d93dc1a85cb3c05f902ee4f5a4556 100644 (file)
@@ -160,7 +160,7 @@ test1239 test1240 test1241 test1242 test1243 test1244 test1245 test1246 \
 test1247 test1248 test1249 test1250 test1251 test1252 test1253 test1254 \
 test1255 test1256 test1257 test1258 test1259 test1260 test1261 test1262 \
 test1263 test1264 test1265 test1266 test1267 test1268 test1269 test1270 \
-test1271 test1272 test1273 test1274 test1275 test1276 test1277 \
+test1271 test1272 test1273 test1274 test1275 test1276 test1277 test1278 \
 \
 test1280 test1281 test1282 test1283 test1284 test1285 test1286 test1287 \
 test1288 test1289 test1290 test1291 test1292 test1293 test1294 test1295 \
diff --git a/tests/data/test1278 b/tests/data/test1278
new file mode 100644 (file)
index 0000000..ba30569
--- /dev/null
@@ -0,0 +1,48 @@
+<testcase>
+<info>
+<keywords>
+--no-remote-name
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data crlf="yes" nocheck="yes">
+HTTP/1.1 200 OK
+Date: Tue, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
+ETag: "21025-dc7-39462498"
+Accept-Ranges: bytes
+Content-Length: 6
+Connection: close
+Content-Type: text/html
+Funny-head: yesyes
+
+-foo-
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+<name>
+verify extra --no-remote-name
+</name>
+<command option="no-output">
+http://%HOSTIP:%HTTPPORT/%TESTNUMBER --no-progress-meter -o log/out%TESTNUMBER --no-remote-name -w '%{stderr}yes\n'
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<stderr mode="text">
+yes
+</stderr>
+</verify>
+</testcase>