Yang Tse
537490e391
Undo using the sreadfrom() wrapper to replace recvfrom() in our code.
2008-07-30 05:10:42 +00:00
Yang Tse
7a588144b7
Reinstate hiding aclocal 'underquoted definition' warnings.
2008-07-30 04:42:16 +00:00
Dan Fandrich
adc032e7d8
Return an error code when extra files are found in filecheck:
2008-07-29 18:57:01 +00:00
Dan Fandrich
4ff37a4ed1
Added test case 1050 to test --ftp-port with an IPv6 address.
...
Made --interface tests less restrictive on host address.
2008-07-29 01:05:28 +00:00
Dan Fandrich
f042a7419d
Added test cases 1045 through 1049 as simple tests of --interface using the
...
localhost interface.
2008-07-28 18:39:32 +00:00
Dan Fandrich
b6b03c8ab9
Added feature in runtests.pl to select tests based on key word.
2008-07-27 02:34:27 +00:00
Dan Fandrich
e06944438a
Added test 1044 to test large file support in ftp with -I.
2008-07-26 20:09:36 +00:00
Yang Tse
b217e6eed7
No longer hide aclocal 'underquoted definition' warnings.
...
http://sources.redhat.com/automake/automake.html#Extending-aclocal documents
that starting with Automake 1.8, aclocal will warn about all underquoted calls
to AC_DEFUN due to the fact that in a single aclocal run it might include more
than once all .m4 files which it finds available, this includes .m4 files from
other software packages.
If the first argument to AC_DEFUN is underquoted and the same macro is included
more than once, successive inclusions after the first one will expand the macro
instead of assuming it is the same as the first one included.
2008-07-26 00:19:03 +00:00
Dan Fandrich
932b589780
Changed the long logfile elision code in runtests.pl to properly handle
...
lines ending in \r.
2008-07-24 02:16:48 +00:00
Dan Fandrich
27c282a6ee
Mention that the test harness can't check every possible feature.
2008-07-23 23:03:52 +00:00
Yang Tse
51e84c77e7
fix compiler warning: implicit conversion from "long" to "int"
2008-07-21 09:23:56 +00:00
Yang Tse
1b37baf656
Use the sreadfrom() wrapper to replace recvfrom() in our code.
2008-07-21 03:06:07 +00:00
Dan Fandrich
ed2dbefa73
Fixed the XML syntax of a few test files.
2008-07-17 22:39:23 +00:00
Yang Tse
1e7125ae7b
add comment for include paths
2008-07-15 05:46:49 +00:00
Dan Fandrich
aa4a7471dd
Added test1042 and test1043 to test -C - on HTTP.
2008-07-15 04:12:15 +00:00
Dan Fandrich
69a03ce23c
Added test1040 and test1041 to test -C - on HTTP. Test 1041 failed so it's
...
added to DISABLED.
2008-07-15 03:36:38 +00:00
Dan Fandrich
336992cc54
Fixed test 553 to pass the torture test.
2008-07-11 18:23:06 +00:00
Dan Fandrich
13afcbd1eb
Avoid a potential zombie process when killing an old ftpserver
2008-07-11 17:18:37 +00:00
Dan Fandrich
8d49a8f278
Added test cases 1038 and 1039 to test Adrian Kreher's report that ftp
...
uploads with -C - didn't resume properly, but the tests pass.
2008-07-11 05:08:06 +00:00
Yang Tse
d8f109176c
fallback to gettimeofday when monotonic clock is unavailable at run-time
2008-07-10 07:16:45 +00:00
Dan Fandrich
bbb1b99ce1
Added tests 1036 and 1037 to verify resumed ftp downloads with -C -
2008-07-10 06:09:03 +00:00
Dan Fandrich
60f0b4fffe
Fixed test 554 to pass the torture test.
2008-07-08 21:16:18 +00:00
Dan Fandrich
a25959184e
Added test cases 1034 & 1035 to test IDN name conversion failures.
2008-07-07 23:52:52 +00:00
Daniel Stenberg
0e5da5b8bc
- Scott Barrett provided a test case for a segfault in the FTP code and the
...
fix for it. It occured when you did a FTP transfer using
CURLFTPMETHOD_SINGLECWD and then did another one on the same easy handle but
switched to CURLFTPMETHOD_NOCWD. Due to the "dir depth" variable not being
cleared properly. Scott's test case is now known as test 539 and it
verifies the fix.
2008-07-07 20:37:07 +00:00
Daniel Stenberg
82412f218f
Phil Blundell provided a fix for libcurl's treatment of unexpected 1xx
...
response codes. Previously libcurl would hang on such occurances. I added
test case 1033 to verify.
2008-07-03 08:47:53 +00:00
Daniel Stenberg
d92945bb8a
- Eduard Bloch filed the debian bug report #487567
...
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487567 ) pointing out that
libcurl used Content-Range: instead of Range when doing a range request with
--head (CURLOPT_NOBODY). This is now fixed and test case 1032 was added to
verify.
2008-06-22 20:38:16 +00:00
Dan Fandrich
a837bd08b0
Edited some test keywords for consistency
2008-06-21 17:56:48 +00:00
Dan Fandrich
70d834c512
Always use $LOGDIR when referring to the log directory.
2008-06-19 01:12:02 +00:00
Dan Fandrich
5304b13365
Added SSH failure test cases 628-632
2008-06-19 00:18:58 +00:00
Daniel Stenberg
2d0fea2650
fixed the language somewhat
2008-06-13 20:45:34 +00:00
Dan Fandrich
024c7641a9
Added IPv6 keywords for some more tests that require IPv6 networking support
2008-06-12 23:50:57 +00:00
Daniel Stenberg
5abfdc0140
- curl the tool now deals with its command line options somewhat differently!
...
All boolean options (such as -O, -I, -v etc), both short and long versions,
now always switch on/enable the option named. Using the same option multiple
times thus make no difference. To switch off one of those options, you need
to use the long version of the option and type --no-OPTION. Like to disable
verbose mode you use --no-verbose!
- Added --remote-name-all to curl, which if used changes the default for all
given URLs to be dealt with as if -O is used. So if you want to disable that
for a specific URL after --remote-name-all has been used, you muse use -o -
or --no-remote-name.
2008-06-08 20:53:49 +00:00
Daniel Stenberg
930a45e7a9
- Added CURLINFO_PRIMARY_IP as a new information retrievable with
...
curl_easy_getinfo. It returns a pointer to a string with the most recently
used IP address. Modified test case 500 to also verify this feature. The
implementing of this feature was sponsored by Lenny Rachitsky at NeuStar.
2008-06-06 17:33:35 +00:00
Daniel Stenberg
e7b5a8e6cb
curl returns 0 for these options now
2008-06-01 22:10:21 +00:00
Daniel Stenberg
27eaf0cf02
now returns 0
2008-06-01 22:04:09 +00:00
Daniel Stenberg
f7815fa93c
- Bug report #1973352 ( http://curl.haxx.se/bug/view.cgi?id=1973352 ) identified
...
how the HTTP redirect following code didn't properly follow to a new URL if
the new url was but a query string such as "Location: ?moo=foo". Test case
1031 was added to verify this fix.
2008-05-26 20:39:41 +00:00
Dan Fandrich
d31da176eb
Made sure to pass longs in to curl_easy_setopt where necessary in the
...
libtest code.
2008-05-22 21:49:52 +00:00
Daniel Stenberg
c1dfe2c529
wait for all 129 bytes
2008-05-13 21:43:37 +00:00
Daniel Stenberg
7f88e8badb
Added test case 556 that uses curl_easy_send() and curl_easy_recv()
2008-05-13 21:42:07 +00:00
Yang Tse
ed80eb5b0f
configure script will now define HAVE_CLOCK_GETTIME_MONOTONIC symbol only
...
when function clock_gettime() is available and the monotonic timer is
also available. Otherwise, in some cases, librt or libposix4 could be used
for linking even when finally not using the clock_gettime() function due
to lack of the monotonic clock.
2008-05-12 02:04:21 +00:00
Yang Tse
60dd765b3d
fix syntax error: missing semicolon
2008-05-10 23:50:55 +00:00
Yang Tse
19479ea021
Internal time differences now use monotonic time source if available.
...
This also implies the removal of the winmm.lib dependency for WIN32.
2008-05-09 16:31:51 +00:00
Daniel Stenberg
fc9e0d2249
- Ben Van Hof filed bug report #1945240 : "libcurl sometimes sends body twice
...
when using CURL_AUTH_ANY" (http://curl.haxx.se/bug/view.cgi?id=1945240 ).
The problem was that when libcurl rewound a stream meant for upload when it
would prepare for a second request, it could accidentally continue the
sending of the rewound data on the first request instead of on the second.
Ben also provided test case 1030 that verifies this fix.
2008-05-03 21:45:12 +00:00
Dan Fandrich
45edad84cb
Document that variable replacement now takes place in the test file <stdout> section.
2008-05-01 17:48:00 +00:00
Daniel Stenberg
fd31f7e7e5
use variables to support other IPs and port numbers
2008-05-01 10:52:12 +00:00
Daniel Stenberg
7b2531da24
do variable replacement in the stdout data read from the test case
2008-05-01 10:51:16 +00:00
Dan Fandrich
848a13654d
Added precheck for hard-coded test server address and port
2008-05-01 00:20:01 +00:00
Dan Fandrich
1cca8f5a30
Made file XML compatible
2008-05-01 00:18:16 +00:00
Daniel Stenberg
852989856d
- To make it easier for applications that want lots of magic stuff done on
...
redirections and thus cannot use CURLOPT_FOLLOWLOCATION easily, we now
introduce the new CURLINFO_REDIRECT_URL option that lets applications
extract the URL libcurl would've redirected to if it had been told to. This
then enables the application to continue to that URL as it thinks is
suitable, without having to re-implement the magic of creating the new URL
from the Location: header etc. Test 1029 verifies it.
2008-04-30 21:20:08 +00:00
Dan Fandrich
ab71654078
Added test 1028 to test an HTTP redirect to a FTP URL.
2008-04-29 02:30:09 +00:00
Yang Tse
b8193b6321
tests/libtest/delay.pl no longer used. The 'delay' attribute of the
...
test harness <command> subsection now provides this functionality.
2008-04-25 11:01:26 +00:00
Yang Tse
113d0937de
Add 'timeout' and 'delay' attributes support for the test harness <command> subsection
2008-04-25 04:19:50 +00:00
Yang Tse
e0f0a2ccee
<postcheck> delay no longer needed for this test.
...
http://curl.haxx.se/mail/lib-2008-04/0392.html
2008-04-23 23:58:00 +00:00
Yang Tse
96edebf4d9
improve synchronization between test harness runtests.pl script
...
and test harness servers to minimize risk of false test failures.
http://curl.haxx.se/mail/lib-2008-04/0392.html
2008-04-23 23:55:34 +00:00
Yang Tse
ad1dd08693
fix minor memory leak triggered upon test failure
2008-04-22 13:07:27 +00:00
Yang Tse
95fd093c4a
Remove fflush() + fsync() previously introduced accelerated writing of
...
server input and response request files of the test harness sws server.
Reintroduce, for test # 1001, the <postcheck> small delay. The delay is
needed even with the accelerated writing of server input and response
request files in test harness sws server.
http://curl.haxx.se/mail/lib-2008-04/0385.html
2008-04-22 12:40:05 +00:00
Yang Tse
ed1ad28e29
Remove previously introduced small delay to verify if it can be avoided
...
with the accelerated writing of server input and response request files
in test harness sws server.
2008-04-22 00:23:18 +00:00
Dan Fandrich
768e3e796e
Ignore the result of the postcheck command in torture mode
2008-04-21 17:19:44 +00:00
Dan Fandrich
3869d4a3a7
Make the test work with nroffs that use special escaping for bold output.
2008-04-21 16:57:27 +00:00
Yang Tse
a87c468c5c
accelerate the writing of server input and response request files
...
to disk, trying to defeat file and disk write-behind algorithms
2008-04-20 19:15:08 +00:00
Dan Fandrich
7abf50a5c0
Added test cases 1026 and 1027 to do some rudimentary tests on the --manual
...
and --help options.
2008-04-18 22:31:52 +00:00
Yang Tse
d3f46eb61b
test 1001 needs a small delay between client part execution and test
...
result file verifications to allow the test server to completely write
out all files
2008-04-18 17:25:54 +00:00
Yang Tse
72c58b0d1d
test 1001 needs a small delay between client part execution and test
...
result file verifications to allow the test server to completely write
out all files
2008-04-18 17:17:14 +00:00
Yang Tse
6c89e1b311
fix compiler warning: enumerated type mixed with another type
2008-04-17 11:59:46 +00:00
Daniel Stenberg
0331071346
Added test case 555, a variation of 547 but using multi interface instead of
...
easy. This was reported not working by Penugonda Chenna Reddy in
http://curl.haxx.se/mail/lib-2008-04/0046.html but I fail to repeat that
problem.
2008-04-16 21:11:46 +00:00
Dan Fandrich
a9591ad1b7
Added test case 1025 to test a command-line cookie with Location: following
2008-04-10 18:18:55 +00:00
Dan Fandrich
c97d112b30
Added test case 1024 to test a scenario similar to the one reported
...
by Ben Combee where libcurl would send the wrong cookie to a redirected
server. libcurl was doing the right thing in this test case.
2008-04-10 04:21:08 +00:00
Yang Tse
6fd3ff4032
fix compiler warning: argument is incompatible with corresponding format string conversion
2008-04-07 15:40:49 +00:00
Yang Tse
532d4b5106
SunSSH sshd ignores UsePrivilegeSeparation option
2008-04-04 14:47:32 +00:00
Yang Tse
5788719988
SunSSH 1.2 options sync
2008-04-04 14:08:36 +00:00
Daniel Stenberg
ac0b911eda
oops, forgot to add test554
2008-04-04 11:39:32 +00:00
Dan Fandrich
10232bfe9e
Added test627 to test SFTP with CURLOPT_NOBODY
2008-04-04 02:06:35 +00:00
Daniel Stenberg
a2314225e0
- Added CURLFORM_STREAM as a supported option to curl_formadd() to allow an
...
application to provide data for a multipart with the read callback. Note
that the size needs to be provided with CURLFORM_CONTENTSLENGTH when the
stream option is used. This feature is verified by the new test case
554. This feature was sponsored by Xponaut.
2008-03-31 10:02:23 +00:00
Dan Fandrich
7f7b643c0d
Made the test work on perl 5.00
2008-03-28 18:19:11 +00:00
Daniel Stenberg
95bd901efe
- Fixed the problem with doing a zero byte SCP transfer, verified with test
...
case 617 (which was added by Daniel Fandrich 5 Mar 2008).
2008-03-22 22:00:21 +00:00
Gunter Knauf
c0a30b04c2
added --extvercmd parameter which can be used to specify an external command to display 'curl --version', f.e. with MinW32 crosscompile --extvercmd=/usr/bin/wine can be used.
2008-03-20 16:10:54 +00:00
Dan Fandrich
e9a460411f
Fixed an infinite loop when given an invalid SFTP quote command.
2008-03-18 22:59:04 +00:00
Dan Fandrich
a57098ea9b
Added test 626 to reproduce an infinite loop when given an invalid
...
SFTP quote command reported by Vincent Le Normand, but left it disabled.
2008-03-18 17:05:29 +00:00
Dan Fandrich
942daece00
Spell the commands right
2008-03-15 01:03:23 +00:00
Dan Fandrich
040a4443a1
Added tests 622-625 to test SFTP/SCP uploads. Test 625 was an attempt to
...
reproduce the --ftp-create-dirs problem reported by Brian Ulm, but that
seems to need a call curl_easy_reset() which this test case doesn't do.
2008-03-13 22:51:39 +00:00
Daniel Stenberg
fc9ad03e66
updated according to the name resolve race condition fix just committed
2008-03-11 22:58:52 +00:00
Dan Fandrich
458925ae0b
Added tests 618-621 to test SFTP/SCP transfers of more than one file
...
(test 620 tests the just-fixed problem reported by Brian Ulm).
2008-03-10 19:40:27 +00:00
Michal Marek
e44dc92197
fixed typo
2008-03-10 14:32:19 +00:00
Dan Fandrich
b16ea66cec
Added tests 616 and 617 to see how SFTP and SCP cope with zero-length
...
files, as questioned by Mike Protts. SFTP does for me but SCP doesn't
so test 617 is disabled for now.
2008-03-06 01:15:28 +00:00
Dan Fandrich
80cec5a62a
Fixed the test harness so it will write out zero-length data files.
2008-03-06 01:11:43 +00:00
Yang Tse
6c2c281a7e
fix log message used when unable to connect to destination port
2008-03-05 18:27:31 +00:00
Yang Tse
18cbb4d7d6
signal handling to properly cleanup on SIGINT and SIGTERM
2008-02-28 10:15:21 +00:00
Yang Tse
22e84d92b7
when terminating do it falling through cleanup code
2008-02-28 10:13:07 +00:00
Yang Tse
3d74649908
avoid inclusion of setup.h in util.h
2008-02-28 09:38:32 +00:00
Yang Tse
ed63d9d4de
header inclusion cleanup
2008-02-28 00:55:06 +00:00
Yang Tse
8adc7038fe
make comment more precise
2008-02-27 14:54:18 +00:00
Daniel Stenberg
b12fef3f31
Michal Marek's cleanup of how curl_easy_setopt() is used in examples and
...
test code. Thanks to his curl_easy_setopt() typechecker work...
2008-02-27 09:06:15 +00:00
Gunter Knauf
97a41f3646
trial to fix the HP-UX breakage...
2008-02-26 23:06:15 +00:00
Yang Tse
058e764af8
all reads from stdin and writes to stdout will be retried until the
...
whole operation completes or an unrecoverable condition is detected
2008-02-26 18:13:59 +00:00
Yang Tse
0d09f342c4
refactor some code out to write_pidfile() in util.c
2008-02-26 15:06:44 +00:00
Yang Tse
1d95109ffa
Revert sockfilt.c back to revision 1.42
...
Changes introduced in revision 1.43 were useless
2008-02-22 09:31:18 +00:00
Yang Tse
064eebeaf1
Avoid timeout restart when signal caught while awaiting socket and stdin events
2008-02-20 17:17:18 +00:00
Daniel Stenberg
e6170eb20d
- Fixed test case 405 to not fail when libcurl is built with GnuTLS
2008-02-20 12:18:08 +00:00
Daniel Stenberg
2c80bcbc81
made the non-matching error code output nicer since we know it is a number
...
and the string contains a newline...
2008-02-20 12:14:31 +00:00
Daniel Stenberg
55700cb01f
- We no longer support setting the CURLOPT_URL option from inside a callback
...
such as the CURLOPT_SSL_CTX_FUNCTION one treat that as if it was a Location:
following. The patch that introduced this feature was done for 7.11.0, but
this code and functionality has been broken since about 7.15.4 (March 2006)
with the introduction of non-blocking OpenSSL "connects".
It was a hack to begin with and since it doesn't work and hasn't worked
correctly for a long time and nobody has even noticed, I consider it a very
suitable subject for plain removal. And so it was done.
2008-02-20 08:28:02 +00:00