aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2007-09-27Removed cut-and-paste cruft leading to fclose() of an unopened fileDan Fandrich
2007-09-27Enabled a few more gcc warnings with --enable-debug. Renamed a fewDan Fandrich
variables to avoid shadowing global declarations.
2007-09-26Philip Langdale provided the new CURLOPT_POST301 option forDaniel Stenberg
curl_easy_setopt() that alters how libcurl functions when following redirects. It makes libcurl obey the RFC2616 when a 301 response is received after a non-GET request is made. Default libcurl behaviour is to change method to GET in the subsequent request (like it does for response code 302 - because that's what many/most browsers do), but with this CURLOPT_POST301 option enabled it will do what the spec says and do the next request using the same method again. I.e keep POST after 301. The curl tool got this option as --post301 Test case 1011 and 1012 were added to verify.
2007-09-26Max Katsev reported that when doing a libcurl FTP request withDaniel Stenberg
CURLOPT_NOBODY enabled but not CURLOPT_HEADER, libcurl wouldn't do TYPE before it does SIZE which makes it less useful. I walked over the code and made it do this properly, and added test case 542 to verify it.
2007-09-24Immanuel Gregoire fixed KNOWN_BUGS #44: --ftp-method nocwd did not handleDaniel Stenberg
URLs ending with a slash properly (it should list the contents of that directory). Test case 351 brought back and also test 1010 was added.
2007-09-20Added variable substitution to the <verify><file> section.Dan Fandrich
Made a few more tests work remotely.
2007-09-18Use double quotes in command lines for consistency.Dan Fandrich
2007-09-18IPv6 is a required feature for these two tests, even if it's not obvious.Dan Fandrich
2007-09-17Fixed the required server entryDan Fandrich
2007-09-17Changed some FTP tests to validate the format of the PORT and EPRT commandsDan Fandrich
sent by curl, if not the addresses themselves.
2007-09-17Added %CLIENTIP and %CLIENT6IP data file substitution variables.Dan Fandrich
Added hooks to the test suite to make it possible to test a curl running on a remote host.
2007-09-17Allow setting the IP address on which to listen for connections.Dan Fandrich
2007-09-17Make the ftp server connect to the address given by curl in the PORT/EPRTDan Fandrich
instead of hard-coding it to 127.0.0.1
2007-09-17Made the directory postprocessor more forgiving of input directory formatDan Fandrich
2007-09-15Michal Marek made libcurl automatically append ";type=<a|i>" when using HTTPDaniel Stenberg
proxies for FTP urls.
2007-09-14Replaced 127.0.0.1 with %HOSTIP where possibleDan Fandrich
2007-09-12Extracting the CURLINFO_PRIVATE pointer makes no point since nothing setDaniel Stenberg
it. This caused a segfault in some fprintf() implementations. Like on Solaris.
2007-09-11Daniel S (12 September 2007)Daniel Stenberg
- Bug report #1792649 (http://curl.haxx.se/bug/view.cgi?id=1792649) pointed out a problem with doing an empty upload over FTP on a re-used connection. I added test case 541 to reproduce it and to verify the fix. - I noticed while writing test 541 that the FTP code wrongly did a CWD on the second transfer as it didn't store and remember the "" path from the previous transfer so it would instead CWD to the entry path as stored. This worked, but did a superfluous command. Thus, test case 541 now also verifies this fix.
2007-09-07Added test case 1007 to test permission problem when uploading with TFTPDan Fandrich
(to validate bug #1790403).
2007-09-05Minor updatesDan Fandrich
2007-08-30Added more accurate error code returns from SFTP operations. Added testDan Fandrich
case 615 to test an SFTP upload failure.
2007-08-30Renamed several libcurl error codes and options to make them more generalDan Fandrich
and allow reuse by multiple protocols. Several unused error codes were removed. In all cases, macros were added to preserve source (and binary) compatibility with the old names. These macros are subject to removal at a future date, but probably not before 2009. An application can be tested to see if it is using any obsolete code by compiling it with the CURL_NO_OLDIES macro defined. Documented some newer error codes in libcurl-error(3)
2007-08-30Fixed a few compiler warnings. Try to do a slightly better job ofDan Fandrich
cleaning up after an OOM condition in curl_multi_add_handle
2007-08-28Mention that 'make test' does more than just run all the tests (suggestedDan Fandrich
by Kris/tinker105 in bug #1779054) and mention the torture tests.
2007-08-24Bug report #1779054 (http://curl.haxx.se/bug/view.cgi?id=1779054) pointedDaniel Stenberg
out that libcurl didn't deal with large responses from server commands, when the single response was consisting of multiple lines but of a total size of 16KB or more. Dan Fandrich improved the ftp test script and provided test case 1006 to repeat the problem, and I fixed the code to make sure this new test case runs fine.
2007-08-23Added test case 1005 to test excessively-long replies spread out overDan Fandrich
multiple lines (similar to test case 1003).
2007-08-23Allow ftp server alternate replies to contain backslash-escaped controlDan Fandrich
characters.
2007-08-23Need even more time to wait for an accept.Dan Fandrich
2007-08-23Added test1004 to validate a previous fix for a memory leak when anDan Fandrich
empty proxy server is selected.
2007-08-22Bug report #1779054 (http://curl.haxx.se/bug/view.cgi?id=1779054) pointedDaniel Stenberg
out that libcurl didn't deal with very long (>16K) FTP server response lines properly. Starting now, libcurl will chop them off (thus the client app will not get the full line) but survive and deal with them fine otherwise. Test case 1003 was added to verify this.
2007-08-22added a size > buffer size check to make it easier to track this in theDaniel Stenberg
future
2007-08-22Upped the buffer size to 17000+ bytes to prepare for the upcoming test 1003Daniel Stenberg
that verfies ridiculously long server response lines. Also changed sprintf to snprintf in a few places.
2007-08-20Increase timeout for accept for improved reliability on loaded servers.Dan Fandrich
2007-08-17remove stupid comment since there's no content in this test caseDaniel Stenberg
2007-08-17Robson Braga Araujo filed bug report #1776235Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1776235) about ftp requests with NOBODY on a directory would do a "SIZE (null)" request. This is now fixed and test case 1000 was added to verify.
2007-08-17some keywords for future stats/coverage checksDaniel Stenberg
2007-08-17Moved the 5320 and 5322 into the 1000-series instead which is a documentedDaniel Stenberg
range. They are about FTP but the 100-199 range is full.
2007-08-17Song Ma provided a patch that cures a problem libcurl has when doing resumeDaniel Stenberg
HTTP PUT using Digest authentication. Test case 5320 and 5322 were also added to verify the functionality.
2007-08-13Removed redundant dependency linesDan Fandrich
2007-08-09There's no need to ignore the User-Agent for this test.Dan Fandrich
2007-08-07Fixed some icc compiler warnings.Dan Fandrich
2007-08-02Dmitriy Sergeyev reported a regression: resumed file:// transfers brokeDaniel Stenberg
after 7.16.2. This is much due to the different treatment file:// gets internally, but now I added test 231 to make it less likely to happen again without us noticing!
2007-07-23Implemented only the parts of Patrick Monnerat's OS/400 patch that renamedDan Fandrich
some few internal identifiers to avoid conflicts, which could be useful on other platforms.
2007-07-23Log the "<CMD> wasn't handled" error normally since it is now expectedDan Fandrich
to occur in a couple of tests.
2007-07-22Added test case 354 that makes a simple FTP retrieval without password, whichDaniel Stenberg
verifies the bug fix in #1757328.
2007-07-21test and verify curl -I on a single FTP file somewhat more than beforeDaniel Stenberg
2007-07-21To allow more flexibility in FTP test cases, I've removed the enforced statesDaniel Stenberg
from the test server code as they served no real purpose. The test server is here to serve for the test cases, not to attempt to function as a real server!
2007-07-19Revert the 512 change since newer versions of OpenSSH don't support DSADan Fandrich
keys that small.
2007-07-18Use 512 bit keys to reduce the time taken to generate them. This shouldn'tDan Fandrich
really reduce security since in the common case of a daily automated build the keys are only used for a single test run lasting a few minutes before being deleted.
2007-07-17Fixed test cases 613 and 614 by improving the log postprocessor to handleDan Fandrich
a new directory listing format that newer libssh2's can provide. This is probably NOT sufficient to handle all directory listing formats that server's can provide and should be revisited.