curl-library
[PATCH] TFTP test case
From: Tor Arntsen <tor_at_spacetec.no>
Date: Mon, 22 May 2006 11:24:10 +0200
Date: Mon, 22 May 2006 11:24:10 +0200
(Sorry I don't have the exact mail to reply to - but it's this thread at
least)
Test 271 has failed since the change to tftp that required absolute filenames
to start with a double slash. Something like the following patch will fix it:
-Tor
---- Index: tests/runtests.pl =================================================================== RCS file: /cvsroot/curl/curl/tests/runtests.pl,v retrieving revision 1.204 diff -u -u -r1.204 runtests.pl --- tests/runtests.pl 11 May 2006 06:34:30 -0000 1.204 +++ tests/runtests.pl 22 May 2006 09:19:44 -0000 @@ -468,7 +468,14 @@ my ($proto, $ip, $port) = @_; my $pid; my $time=time(); - my $cmd="$CURL -m$server_response_maxtime --silent -vg \"$proto://$ip:$port/verifiedserver\" 2>log/verifyftp"; + my $cmd; + if ($proto eq "tftp") { + $cmd="$CURL -m$server_response_maxtime --silent -vg \"$proto://$ip:$port//verifiedserver\" 2>log/verifyftp"; + } + else { + $cmd="$CURL -m$server_response_maxtime --silent -vg \"$proto://$ip:$port/verifiedserver\" 2>log/verifyftp"; + } + # check if this is our server running on this port: my @data=`$cmd`; logmsg "RUN: $cmd\n" if($verbose); Index: tests/data/test271 =================================================================== RCS file: /cvsroot/curl/curl/tests/data/test271,v retrieving revision 1.1 diff -u -u -r1.1 test271 --- tests/data/test271 19 Sep 2005 22:04:06 -0000 1.1 +++ tests/data/test271 22 May 2006 09:19:44 -0000 @@ -26,7 +26,7 @@ TFTP retrieve </name> <command> -tftp://%HOSTIP:%TFTPPORT/271 --trace-ascii log/traceit +tftp://%HOSTIP:%TFTPPORT//271 --trace-ascii log/traceit </command> </client>Received on 2006-05-22