]> granicus.if.org Git - curl/commitdiff
test332: verify the blksize fix
authorDaniel Stenberg <daniel@haxx.se>
Fri, 3 May 2019 20:21:10 +0000 (22:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 May 2019 05:59:11 +0000 (07:59 +0200)
tests/data/Makefile.inc
tests/data/test332 [new file with mode: 0644]

index cd99ffae712e5f363fccb711c28519422b8d6f22..9b26b1e0a6b8c6cb236d1db5b58ab08249ef410f 100644 (file)
@@ -56,7 +56,7 @@ test289 test290 test291 test292 test293 test294 test295 test296 test297 \
 test298 test299 test300 test301 test302 test303 test304 test305 test306 \
 test307 test308 test309 test310 test311 test312 test313 test314 test315 \
 test316 test317 test318 test319 test320 test321 test322 test323 test324 \
-test325 test326 test327 test328 test329 test330 test331 \
+test325 test326 test327 test328 test329 test330 test331 test332 \
 \
 test340 \
 \
diff --git a/tests/data/test332 b/tests/data/test332
new file mode 100644 (file)
index 0000000..3688c2b
--- /dev/null
@@ -0,0 +1,45 @@
+<testcase>
+<info>
+<keywords>
+TFTP
+TFTP RRQ
+FAILURE
+</keywords>
+</info>
+
+<reply>
+<data>
+a chunk of
+data
+returned
+ to client
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+tftp
+</server>
+ <name>
+TFTP retrieve with blksize 400
+ </name>
+ <command>
+tftp://%HOSTIP:%TFTPPORT//332 --tftp-blksize 400
+</command>
+</client>
+
+#
+# Verify pseudo protocol after the test has been "shot"
+<verify>
+<protocol>
+opcode: 1
+mode: octet
+tsize: 0
+blksize: 400
+timeout: 6
+filename: /332
+</protocol>
+</verify>
+</testcase>