]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1272: test gophers
authorDaniel Stenberg <daniel@haxx.se>
Mon, 16 Nov 2020 16:55:44 +0000 (17:55 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 15 Dec 2020 11:58:19 +0000 (12:58 +0100)
tests/data/Makefile.inc
tests/data/test1272 [new file with mode: 0644]

index b9d03bce278a3f40247755620d085344734840ae..8e1c4957662a82e5d21e700a4cb0c33ab3622710 100644 (file)
@@ -150,7 +150,7 @@ 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 \
 test1280 test1281 test1282 test1283 test1284 test1285 test1286 test1287 \
 test1288 test1289 test1290 test1291 test1292 test1293 test1294 test1295 \
 test1296 test1297 test1298 test1299 test1300 test1301 test1302 test1303 \
diff --git a/tests/data/test1272 b/tests/data/test1272
new file mode 100644 (file)
index 0000000..a03fb6b
--- /dev/null
@@ -0,0 +1,40 @@
+<testcase>
+<info>
+<keywords>
+GOPHER
+GOPHERS
+INDEX
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+iMenu results          error.host      1
+0Selector      /bar    bar.foo.invalid 70
+.
+</data>
+</reply>
+
+# Client-side
+<client>
+<server>
+gophers
+</server>
+ <name>
+Gophers index
+ </name>
+ <command>
+-k gophers://%HOSTIP:%GOPHERSPORT/1/1272
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+/1272
+</protocol>
+</verify>
+</testcase>