cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Status report: TFTP tests

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Fri, 16 Sep 2005 04:48:18 -0500

Using curl-7.14.2-20050916, I get:

********* System characteristics ********
* curl 7.14.2-20050916 (i686-pc-linux-gnu)
* libcurl/7.14.2-20050916 OpenSSL/0.9.7e zlib/1.2.3 libidn/0.5.15
* Features: IDN IPv6 Largefile NTLM SSL libz
* Host: lorien
* System: Linux lorien 2.6.12-gentoo-r10 #2 Thu Sep 8 05:03:01 CDT 2005 i686
Intel(R) Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux
* Server SSL: OFF
* libcurl SSL: ON
* libcurl debug: OFF
* valgrind: OFF
* HTTP IPv6 ON
* FTP IPv6 ON
* HTTP port: 8990
* FTP port: 8992
* FTP port 2: 8995
* HTTP IPv6 port: 8994
* FTP IPv6 port: 8996
* TFTP port: 8997
* SSL library: OpenSSL
*****************************************
test 271...[TFTP retrieve]

protocol FAILED:
--- log/check-expected 2005-09-16 04:25:03.000000000 -0500
+++ log/check-generated 2005-09-16 04:25:03.000000000 -0500
@@ -1,3 +0,0 @@
-opcode: 1
-filename: /271
-mode: octet

- abort tests
TESTDONE: 0 tests out of 1 reported OK: 0%
TESTFAIL: These test cases failed: 271
TESTDONE: 1 tests were considered during 7 seconds.

A Sun E450 running Gentoo doesn't even get the tftp server started:

********* System characteristics ********
* curl 7.14.2-20050916 (sparc64-unknown-linux-gnu)
* libcurl/7.14.2-20050916 OpenSSL/0.9.7e zlib/1.2.3 libidn/0.5.15
* Features: IDN Largefile NTLM SSL libz
* Host: bbsnp02
* System: Linux bbsnp02 2.6.13-gentoo #1 SMP Wed Sep 7 03:43:45 CDT 2005
sparc64 sun4u TI UltraSparc II (BlackBird) GNU/Linux
* Server SSL: ON
* libcurl SSL: ON
* libcurl debug: OFF
* valgrind: OFF
* HTTP IPv6 OFF
* FTP IPv6 OFF
* HTTP port: 8990
* FTP port: 8992
* FTP port 2: 8995
* HTTPS port: 8991
* TFTP port: 8997
* SSL library: OpenSSL
*****************************************
RUN: TFTP server failed verification
test 271 SKIPPED: failed starting TFTP server
TESTFAIL: No tests were performed!
TESTDONE: 1 tests were considered during 7 seconds.
TESTINFO: 1 tests were skipped due to these restraints:
TESTINFO: "failed starting TFTP server" 1 times (271)

It runs on its own, though, via:

server/tftpd

Trying to hit the above from my laptop I get:

src/curl tftp://10.134.11.24:8999/verifiedserver
WE ROOLZ: 30103

and then

src/curl tftp://10.134.11.24:8999/271
a chunk of
data
returned
to client

so I guess the sparc binary for the tftp test server functions, even if it's
not being kicked off properly by the tests...

Ralph Mitchell

On 9/15/05, Daniel Stenberg <daniel-curl_at_haxx.se> wrote:
>
> Hi
>
> I've just committed my initial changes that adds a TFTP server to the test
> suite.
>
> The test server is based on the netkit-tftpd code, heavily modified and
> simplified to act in a similar spirit as the other test servers. If I
> start it
> manually, I can fetch "files" (data pieces from test cases) from it and
> upload
> files to it.
>
> The main test script (runtests.pl) has been adapted to be able to run TFTP
> tests (and soon TFTP-IPv6 tests) but for some reason I cannot get my first
> TFTP test to work out properly.
>
> If there's anyone who feels like testing, or possibly helping me out, the
> attached test271 file can be copied to the tests/data dir and then test
> 271
> should be possible to run (I mean, as far as I've made it run which isn't
> successful yet).
>
> I'm open for feedback.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
>
Received on 2005-09-16