From f11d3c329c335a3fb8f01cc4509e2ab7a2abec04 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Mon, 15 Jan 2007 21:06:12 +0000 Subject: Added TFTP upload tests. --- tests/data/Makefile.am | 3 +- tests/data/test285 | 42 +++++++++++++++++++++++ tests/data/test286 | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 tests/data/test285 create mode 100644 tests/data/test286 (limited to 'tests/data') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 87b9deb7e..fcb6482ec 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -36,4 +36,5 @@ 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 test284 test538 + test534 test535 test281 test537 test282 test283 test284 test538 test285 \ + test286 diff --git a/tests/data/test285 b/tests/data/test285 new file mode 100644 index 000000000..72f0455dd --- /dev/null +++ b/tests/data/test285 @@ -0,0 +1,42 @@ + + +TFTP +TFTP WRQ + + + +# +# Client-side + + +tftp + + +TFTP send + + +-T log/test285.txt tftp://%HOSTIP:%TFTPPORT// --trace-ascii log/traceit + + +a chunk of +data +sent + to server + + + +# +# Verify pseudo protocol after the test has been "shot" + + +a chunk of +data +sent + to server + + +opcode: 2 +filename: /test285.txt +mode: octet + + diff --git a/tests/data/test286 b/tests/data/test286 new file mode 100644 index 000000000..d78e24f3a --- /dev/null +++ b/tests/data/test286 @@ -0,0 +1,90 @@ + + +TFTP +TFTP WRQ + + + +# +# Client-side + + +tftp + + +TFTP send of boundary case 512 byte file + + +-T log/test286.txt tftp://%HOSTIP:%TFTPPORT// --trace-ascii log/traceit + + +A chunk of data which exactly fits into +a 512 byte TFTP block, testing a boundary +condition in the TFTP transmit code. +89ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF + + + +# +# Verify pseudo protocol after the test has been "shot" + + +A chunk of data which exactly fits into +a 512 byte TFTP block, testing a boundary +condition in the TFTP transmit code. +89ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF +123456789ABCDEF + + +opcode: 2 +filename: /test286.txt +mode: octet + + -- cgit v1.2.3