From 5ec5b95f5494477e642b56539a617934bcaaf57b Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 10 Jan 2007 23:40:22 +0000 Subject: Added test for TFTP retrieve of boundary case 512 byte file. --- tests/data/Makefile.am | 2 +- tests/data/test284 | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 tests/data/test284 (limited to 'tests') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 9c87f0aa3..87b9deb7e 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -36,4 +36,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test265 test266 test267 test268 test269 test270 test271 test272 test273 \ test274 test275 test524 test525 test276 test277 test526 test527 test528 \ test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \ - test534 test535 test281 test537 test282 test283 test538 + test534 test535 test281 test537 test282 test283 test284 test538 diff --git a/tests/data/test284 b/tests/data/test284 new file mode 100644 index 000000000..f04fef589 --- /dev/null +++ b/tests/data/test284 @@ -0,0 +1,65 @@ + + +TFTP +TFTP RRQ + + + +# +# Server-side + + +A chunk of data which exactly fits into +a 512 byte TFTP block, testing a boundary +condition in the TFTP receive code. +789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF + + + +# +# Client-side + + +tftp + + +TFTP retrieve of boundary case 512 byte file + + +tftp://%HOSTIP:%TFTPPORT//284 --trace-ascii log/traceit + + + +# +# Verify pseudo protocol after the test has been "shot" + + +opcode: 1 +filename: /284 +mode: octet + + -- cgit v1.2.3