summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: specify 'text' mode for some output files in verify sectionYang Tse2013-03-1843-92/+92
|
* tests: 96, 558, 1330: strip build subdirectory dependent leading pathYang Tse2013-03-163-10/+13
|
* imap-tests: Corrected copy/paste error in test808 reply dataSteve Holme2013-03-151-1/+1
|
* unit1330.c: fix dateYang Tse2013-03-151-1/+1
|
* tests: add #96 #558 and #1330Yang Tse2013-03-1510-123/+387
| | | | | | These verfy that the 'memory tracking' subsystem is actually doing its job when using curl tool (#96), a test in libtest (#558) and also a unit test (#1330), in order to prevent regressions in this functionallity.
* imap-tests: Added test808 for custom EXAMINE commandSteve Holme2013-03-152-1/+49
|
* HTTP proxy: insert slash in URL if missingDaniel Stenberg2013-03-155-9/+159
| | | | | | | | | | | | | | | | | | | curl has been accepting URLs using slightly wrong syntax for a long time, such as when completely missing as slash "http://example.org" or missing a slash when a query part is given "http://example.org?q=foobar". curl would translate these into a legitimate HTTP request to servers, although as was shown in bug #1206 it was not adjusted properly in the cases where a HTTP proxy was used. Test 1213 and 1214 were added to the test suite to verify this fix. The test HTTP server was adjusted to allow us to specify test number in the host name only without using any slashes in a given URL. Bug: http://curl.haxx.se/bug/view.cgi?id=1206 Reported by: ScottJi
* ftpserver.pl: Added EXAMINE_imap() for IMAP EXAMINE commandsSteve Holme2013-03-141-0/+20
| | | | Used hard coded data from RFC-3501 section 6.3.2.
* Multiple pipelines and limiting the number of connections.Linus Nielsen Feltzing2013-03-1318-14/+1231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introducing a number of options to the multi interface that allows for multiple pipelines to the same host, in order to optimize the balance between the penalty for opening new connections and the potential pipelining latency. Two new options for limiting the number of connections: CURLMOPT_MAX_HOST_CONNECTIONS - Limits the number of running connections to the same host. When adding a handle that exceeds this limit, that handle will be put in a pending state until another handle is finished, so we can reuse the connection. CURLMOPT_MAX_TOTAL_CONNECTIONS - Limits the number of connections in total. When adding a handle that exceeds this limit, that handle will be put in a pending state until another handle is finished. The free connection will then be reused, if possible, or closed if the pending handle can't reuse it. Several new options for pipelining: CURLMOPT_MAX_PIPELINE_LENGTH - Limits the pipeling length. If a pipeline is "full" when a connection is to be reused, a new connection will be opened if the CURLMOPT_MAX_xxx_CONNECTIONS limits allow it. If not, the handle will be put in a pending state until a connection is ready (either free or a pipe got shorter). CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE - A pipelined connection will not be reused if it is currently processing a transfer with a content length that is larger than this. CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE - A pipelined connection will not be reused if it is currently processing a chunk larger than this. CURLMOPT_PIPELINING_SITE_BL - A blacklist of hosts that don't allow pipelining. CURLMOPT_PIPELINING_SERVER_BL - A blacklist of server types that don't allow pipelining. See the curl_multi_setopt() man page for details.
* test509: libcurl initialization with memory callbacks and actual usageYang Tse2013-03-134-12/+197
|
* curl.h: stricter CURL_EXTERN linkage decorations logicYang Tse2013-03-123-28/+28
| | | | | | No API change involved. Info: http://curl.haxx.se/mail/lib-2013-02/0234.html
* test806: Added CRLF to reply data to be compliant with RFC-822Steve Holme2013-03-111-3/+3
|
* test805: added crlf newlines to make data size matchDaniel Stenberg2013-03-111-18/+18
| | | | | since mails sent are supposed to have CRLF line endings I added them and now the data size after (\Seen) matches again properly
* test: fix newline for the data check of 807Daniel Stenberg2013-03-111-1/+1
|
* test801 to test807: fix protocol section line endingsYang Tse2013-03-117-33/+33
|
* Makefile.am: Corrected a couple of spurious tab charactersSteve Holme2013-03-101-2/+2
| | | | | Corrected a couple of tab characters between test702 and test703, and between test900 and test901 which should be spaces.
* imap: Added test807 for custom request functionality (STORE)Jiri Hruska2013-03-102-1/+44
|
* imap: Added test806 for IMAP (folder) LIST commandJiri Hruska2013-03-102-1/+44
|
* imap: Added test805 for APPEND functionalityJiri Hruska2013-03-102-1/+62
|
* imap: Added test804 for skipping SELECT if in the same mailboxJiri Hruska2013-03-102-1/+47
|
* imap: Added test802 and test803 for UIDVALIDITY verificationJiri Hruska2013-03-103-1/+91
| | | | | Added one test for a request with matching UIDVALIDITY and one which is a mismatched request that will fail.
* imap: Added test801 for UID and SECTION URL parametersJiri Hruska2013-03-102-1/+46
|
* imap-tests: Accept quoted parameters in ftpserver.plJiri Hruska2013-03-101-2/+15
| | | | | | Any IMAP parameter can come in escaped and in double quotes. Added a simple function to unquote the command parameters and applied it to the IMAP command handlers.
* tests: Fix ftpserver.pl indentationJiri Hruska2013-03-101-47/+47
| | | | | The whole of FETCH_imap() had one extra space of indentation, whilst APPEND_imap() used indentation of 2 instead of 4 in places.
* Makefile.am: Corrected end of line filler characterSteve Holme2013-03-101-30/+30
| | | | | | The majority of lines, that specify a test file for inclusion, end with a tab character before the slash whilst some end with a space. Corrected those that end with a space to end with a tab character as well.
* email-tests: Updated the test data that corresponds to the test numberSteve Holme2013-03-1014-35/+35
| | | | | | Finished segregating the email protocol tests, into their own protocol based ranges, in preparation of adding more e-mail related tests to the test suite.
* email-tests: Renamed the IMAP test to be 800Steve Holme2013-03-102-1/+1
| | | | | | Continued segregating the email protocol tests, into their own protocol based ranges, in preparation of adding more e-mail related tests to the test suite.
* email-tests: Renamed the SMTP tests to be in the range 900-906Steve Holme2013-03-108-1/+2
| | | | | | Continued segregating the email protocol tests, into their own protocol based ranges, in preparation of adding more e-mail related tests to the test suite.
* email-tests: Renamed the POP3 tests to be in the range 850-857Steve Holme2013-03-109-3/+2
| | | | | | Started segregating the email protocol tests, into their own protocol based ranges, in preparation of adding more e-mail related tests to the test suite.
* Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibilityYang Tse2013-03-091-0/+2
|
* configure: use XC_LIBTOOL for portability across libtool versionsYang Tse2013-03-081-4/+6
|
* imap: Fixed test801 and test1321 to specify a message UIDJiri Hruska2013-03-062-2/+2
| | | | Just a folder list would be retrieved if UID was not specified now.
* imap: Fixed ftpserver.pl to allow verification even through LIST commandJiri Hruska2013-03-061-8/+20
| | | | Commit 198012ee inadvertently broke LIST_imap().
* imap: Updated ftpserver.pl to be more compliant, added new commandsJiri Hruska2013-03-061-9/+130
| | | | | | | | | | | | | | Enriched IMAP capabilities of ftpserver.pl in order to be able to add tests for the new IMAP features. * Added support for APPEND - Saves uploaded data to log/upload.$testno * Added support for LIST - Returns the contents of <reply/> section in the current test, like e.g FETCH. * Added support for STORE - Returns hardcoded updated flags * Changed handling of SELECT - Returns much more information in the usual set of untagged responses; uses hardcoded data from an example in the IMAP RFC * Changed handling of FETCH - Fixed response format
* darwinssl: fix undefined $ssllib warning in runtests.plNick Zitzmann2013-02-241-7/+17
| | | I also added --with-darwinssl to the list of SSL options in configure.
* imap: Added the ability to FETCH a specific UID and SECTIONJiri Hruska2013-02-232-2/+2
| | | | | | | | | | | | Updated the FETCH command to send the UID and SECTION parsed from the URL. By default the BODY specifier doesn't include a section, BODY[] is now sent whereas BODY[TEXT] was previously sent. In my opinion retrieving just the message text is rarely useful when dealing with emails, as the headers are required for example, so that functionality is not retained. In can however be simulated by adding SECTION=TEXT to the URL. Also updated test801 and test1321 due to the BODY change.
* SOCKS: fix socks proxy when noproxy matchedulion2013-02-112-1/+51
| | | | | | Test 1212 added to verify Bug: http://curl.haxx.se/bug/view.cgi?id=1190
* Fix NULL pointer reference when closing an unused multi handle.Linus Nielsen Feltzing2013-02-104-1/+86
|
* smtp: Fixed an issue when processing EHLO failure responses (Part 3)Steve Holme2013-02-093-3/+3
| | | | | | Follow up fix to commit 62bd21746443 to cater for servers that don't respond with a 250 in their EHLO responses. Additionally updated the SMTP tests to respond with a 250 response code as per RFC5321.
* DONE: consider callback-aborted transfers prematureDaniel Stenberg2013-02-084-2/+224
| | | | | | | | | | | | This bug report properly identified that when doing SMTP and aborting the transfer with a callback, it must be considered aborted prematurely by the code to avoid QUIT etc to be attempted as that would cause a hang. The new test case 1507 verifies this behavior. Reported by: Patricia Muscalu Bug: http://curl.haxx.se/bug/view.cgi?id=1184
* imap: Changed response tag generation to be completely uniqueSteve Holme2013-02-072-10/+10
| | | | | | | | | | Updated the automatic response tag generation to follow the examples given in RC3501, which list a 4 character string such as A001, A002, etc. As a unique identifier should be generated for each command the string generation is based on the connection id and the incrementing command id.
* CURLMOPT_MAXCONNECTS: restore functionalityLinus Nielsen Feltzing2013-02-054-2/+233
| | | | | | When a connection is no longer used, it is kept in the cache. If the cache is full, the oldest idle connection is closed. If no connection is idle, the current one is closed instead.
* cmake: Fix mingw buildMatt Arsenault2013-02-041-1/+0
|
* formpost: support quotes, commas and semicolon in file namesUlion2013-01-224-4/+117
| | | | | | | | | - document the double-quote and backslash need be escaped if quoting. - libcurl formdata escape double-quote in filename by backslash. - curl formparse can parse filename both contains '"' and ',' or ';'. - curl now can uploading file with ',' or ';' in filename. Bug: http://curl.haxx.se/bug/view.cgi?id=1171
* memanalyze.pl: handle fopen() of file names with quotesDaniel Stenberg2013-01-221-2/+2
|
* Makefile.inc: fix $(top_srcdir) not allowed in _SOURCES variablesYang Tse2013-01-203-22/+22
|
* runtests.pl: make VPATH builds find valgrind.suppYang Tse2013-01-181-1/+1
|
* always-multi: always use non-blocking internalsDaniel Stenberg2013-01-1733-73/+77
| | | | | | | | | | Remove internal separated behavior of the easy vs multi intercace. curl_easy_perform() is now using the multi interface itself. Several minor multi interface quirks and bugs have been fixed in the process. Much help with debugging this has been provided by: Yang Tse
* FTP: reject illegal port numbers in EPSV 229 responsesDaniel Stenberg2013-01-151-9/+4
|
* commit bc682cbd follow-upYang Tse2013-01-152-0/+2
|