summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* unit1300: code style cleanupDaniel Stenberg2011-02-021-53/+52
|
* adding unit tests for Curl_llist_removeAmr Shahin2011-02-021-1/+83
|
* test: add test 580 to the distDaniel Stenberg2011-01-281-1/+1
|
* tests: more multiple headers checksDaniel Stenberg2011-01-253-1/+108
|
* HTTP: memory leak on multiple Location:Daniel Stenberg2011-01-252-0/+59
| | | | | | | | | The HTTP parser allocated memory on each received Location: header without properly freeing old data. Starting now, the code only considers the first Location: header and will blissfully ignore subsequent ones. Bug: http://curl.haxx.se/bug/view.cgi?id=3165129 Reported by: Martin Lemke
* Fixed C++ style comment not allowed in ISO C90.Guenter Knauf2011-01-221-1/+1
|
* Mention axTLS in some more documentationDan Fandrich2011-01-211-0/+1
|
* runtests.pl: make -s not show skipped testsDaniel Stenberg2011-01-201-1/+1
|
* unittest: add 3 tests to test1300Amr Shahin2011-01-201-1/+79
| | | | Testing Curl_llist_insert_next
* dist: add new certs to tarballDaniel Stenberg2011-01-191-1/+2
|
* TLS-SRP: support added when using GnuTLSQuinn Slack2011-01-1912-7/+439
|
* Made unit_setup() return an error code to abort the test earlyDan Fandrich2011-01-055-17/+32
| | | | | | This makes it possible to skip the call to unit_stop() in such cases. Also use Curl_safefree() in unit test 1302 so it will pass the memory torture test.
* tests: <info> tag correctionsDaniel Stenberg2011-01-042-2/+2
|
* unittest: 1303 tests Curl_timeleftDaniel Stenberg2011-01-044-2/+152
| | | | | I came up with 33 different ways to call it and verify that it returns the correct return code.
* curlcheck.h: add fail()Daniel Stenberg2011-01-041-0/+10
| | | | | fail is a new function/macro that a test case can use to indicate a test failure for cases when the standard macros are not sufficient.
* Fixed path to allow out-of-tree buildsDan Fandrich2011-01-041-2/+2
|
* ignore: all executable unit test casesDaniel Stenberg2011-01-041-1/+1
|
* tests: add 1302 to the packageDaniel Stenberg2011-01-041-1/+1
|
* unittest: test base64 encode/decodeDaniel Stenberg2011-01-043-1/+110
|
* curlcheck.h: avoid using NULL pointersDaniel Stenberg2011-01-041-1/+1
|
* curlcheck.h: add verify_memoryDaniel Stenberg2011-01-041-0/+7
| | | | This check verifies that a pointer contains the correct data.
* curlcheck.h: add newlines in error messagesDaniel Stenberg2011-01-041-6/+6
|
* unittest: verify curl_strequalDaniel Stenberg2011-01-044-2/+65
|
* curlcheck.h: add fail_if() fix codeDaniel Stenberg2011-01-031-1/+10
| | | | | | The UNITTEST_START and UNITTEST_STOP defines needed to do a new brace level so that test cases can declare variables fine and still remain fine C89 code.
* unittests: basic docsDaniel Stenberg2011-01-031-0/+73
|
* ignore: unit test filesDaniel Stenberg2011-01-031-0/+1
|
* unittests: a dedicated feature in testsDaniel Stenberg2011-01-033-9/+16
| | | | | | The test runner script now knows if unittests can run and the unit test setup file says it is one. I also made runtests.pl deal with no <command> tag set, so that the description file can get even simpler.
* unittesting: build a separate static libDaniel Stenberg2011-01-031-2/+11
| | | | | | | When configure --enable-debug has been used, all files in lib/ are now built twice and a separate static library crafted for unit-testing will be linked. The unit tests in the tests/unit subdir will use that library.
* unittest: framework for unit-testingDaniel Stenberg2011-01-0310-6/+185
| | | | | This is the first approach at doing fairly clean and easy to write and debug unit tests.
* test harness: take in account that Windows does not support LD_PRELOADYang Tse2010-12-281-4/+9
| | | | | | | configure.ac: Test harness libhostname library will not be built for Windows. runtests.pl: LD_PRELOAD mechanism will not be used to load libhostname library on operating systems which lack LD_PRELOAD support.
* cookies: tricked dotcounter fixedDaniel Stenberg2010-12-231-0/+1
| | | | | | | | | | Providing multiple dots in a series in the domain field (domain=..com) could trick the cookie engine to wrongly accept the cookie believing it to be fine. Since the tailmatching would then match all .com sites, the cookie would then be sent to all of them. The code now requires at least one letter between each dot for them to be counted. Edited test case 61 to verify this.
* SMTP tests: updated MAIL FROM useDaniel Stenberg2010-12-226-7/+7
| | | | | | They were all wrong previously since none used the <brackets> they should for MAIL FROM. Now libcurl adds them itself if the app doesn't so they end up wrong less easy.
* tftpd: avoid buffer overflow report from glibcPaul Howarth2010-12-171-2/+4
|
* axTLS integration: silence runtests.pl perl warningYang Tse2010-12-161-2/+2
|
* Minor fixes to pass tests 301 and 306 with a patched axTLS.Eric Hu2010-12-151-1/+1
|
* Initial axTLS integration. Connections can be made and some tests pass.Eric Hu2010-12-151-0/+12
| | | | | | Failed HTTPS tests: 301, 306, 311, 312, 313, 560 311, 312 need more detailed error reporting from axTLS. 313 relates to CRL, which hasn't been implemented yet.
* sws: fix compier warning: external definition with no prior declarationYang Tse2010-12-061-1/+1
|
* fix compiler warning: rounding, sign extension, or loss of accuracy may resultYang Tse2010-12-022-2/+2
|
* atoi: remove atoi usageYang Tse2010-11-285-7/+10
|
* symbol-scan: use configure script knowledge about how to run the C preprocessorYang Tse2010-11-251-4/+17
|
* ignore file generated by configureYang Tse2010-11-251-0/+1
|
* Check for errors while preprocessing curl.h in test 1119Dan Fandrich2010-11-192-3/+8
| | | | | | This showed a problem when running the test out-of-tree, so an include path is now being added to pick up the generated curlbuild.h file.
* Use the 3-argument open for compatibility with older perlsDan Fandrich2010-11-191-1/+1
|
* test servers: fix strict aliasing compiler warningsYang Tse2010-11-196-129/+188
|
* test1120: verify FTP response 421Daniel Stenberg2010-11-102-1/+45
| | | | curl mustn't try to use the control connection after the 421 is received
* ftpserver.pl: spellfix commentDaniel Stenberg2010-11-101-1/+1
|
* symbols-in-version: add CURL_SOCKET_BADDaniel Stenberg2010-11-091-1/+12
| | | | | I also documented the filtering logic in the symbol-scan.pl function to clarify why not all CURL_* symbols are included.
* ftp: close connection as soon as ABOR has been sentKamil Dudka2010-11-083-3/+0
| | | | | | | ... and do not send ABOR unless really necessary. Bug: https://bugzilla.redhat.com/649347 Reported by: Simon H.
* test: remove test 580Daniel Stenberg2010-11-054-26/+3
| | | | | | | | | | | | | Test 580 is removed again for two reasons: 1) Some compilers aren't satisfied by just a data variable called 'test' when first.o wants a function called 'test'. The Solaris compiler says "ld: warning: symbol `test' has differing types:" while the AIX compiler downright rejects it. 2) Test case 1119 that was added after this test is way more complete and cover everything test 580 does and more without introducing the same problems.
* Allow building test 580 out of treeDan Fandrich2010-11-031-2/+2
|