aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test286
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-01-15 21:06:12 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-01-15 21:06:12 +0000
commitf11d3c329c335a3fb8f01cc4509e2ab7a2abec04 (patch)
treed2ec91ef8fd7b5db656fa9d954c63afb5dc9fcb5 /tests/data/test286
parentb0d13fa4cbd8a6ff0a1bd344f539fa15c33af3af (diff)
Added TFTP upload tests.
Diffstat (limited to 'tests/data/test286')
-rw-r--r--tests/data/test28690
1 files changed, 90 insertions, 0 deletions
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 @@
+<info>
+<keywords>
+TFTP
+TFTP WRQ
+</keywords>
+</info>
+
+#
+# Client-side
+<client>
+<server>
+tftp
+</server>
+ <name>
+TFTP send of boundary case 512 byte file
+ </name>
+ <command>
+-T log/test286.txt tftp://%HOSTIP:%TFTPPORT// --trace-ascii log/traceit
+</command>
+<file name="log/test286.txt">
+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
+</file>
+</client>
+
+#
+# Verify pseudo protocol after the test has been "shot"
+<verify>
+<upload>
+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
+</upload>
+<protocol>
+opcode: 2
+filename: /test286.txt
+mode: octet
+</protocol>
+</verify>