aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-05-03 22:21:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-20 07:59:11 +0200
commitf94334749661f0afe0c7fcc4b65135240db77fb9 (patch)
tree026f77b6499125dd48eab9479585c51c9aaa5777
parent2576003415625d7b5f0e390902f8097830b82275 (diff)
test332: verify the blksize fix
-rw-r--r--tests/data/Makefile.inc2
-rw-r--r--tests/data/test33245
2 files changed, 46 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index cd99ffae7..9b26b1e0a 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -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
index 000000000..3688c2b08
--- /dev/null
+++ b/tests/data/test332
@@ -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>