diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-07-28 18:39:32 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-07-28 18:39:32 +0000 |
commit | f042a7419d21eb0c0c6d7b6fe526eb93e7a78bbb (patch) | |
tree | 847bb443c7ff4a13e7df98f46cd8b13ce473aa4f /tests/data/test1049 | |
parent | bc0ebfcdeb5a063f1753a82a6068871455adac76 (diff) |
Added test cases 1045 through 1049 as simple tests of --interface using the
localhost interface.
Diffstat (limited to 'tests/data/test1049')
-rw-r--r-- | tests/data/test1049 | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/data/test1049 b/tests/data/test1049 new file mode 100644 index 000000000..964724743 --- /dev/null +++ b/tests/data/test1049 @@ -0,0 +1,48 @@ +<testcase> +<info> +<keywords> +TFTP +TFTP RRQ +--interface +</keywords> +</info> + +# +# Server-side +<reply> +<data> +a chunk of +data +returned + to client +</data> +</reply> + +# +# Client-side +<client> +<server> +tftp +</server> + <name> +TFTP retrieve with localhost --interface + </name> + <command> +tftp://%HOSTIP:%TFTPPORT//1049 --trace-ascii log/traceit --interface 127.0.0.1 +</command> +# When bound to localhost, one may connect only to a local test server +<precheck> +perl -e "print 'Test requires default test server host address' if ( '%HOSTIP' ne '127.0.0.1' );" +</precheck> +</client> + +# +# Verify pseudo protocol after the test has been "shot" +<verify> +<protocol> +opcode: 1 +filename: /1049 +mode: octet +</protocol> +</verify> +</testcase> |