aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2011-03-10sources: update source headersDaniel Stenberg
All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
2011-03-09tests: phase out haxx.seDaniel Stenberg
Instead of using haxx.se as a fixed magic host name in lots of tests, this is a first step to move toward the generic example.com host instead.
2011-03-09test523: avoid using haxx.seDaniel Stenberg
... since search engines find what they think is a URL in this, they hammer www.haxx.se on this port!
2011-03-08lib582: used for test 582Daniel Stenberg
Accidentally not included in commit 0e74e1d8d83
2011-03-08sftp-multi: test 582 addedHenry Ludemann
Add test 582 for uploading a file using sftp and the multi interface. (Patch and test slightly tweaked by Daniel Stenberg) Initially marked as disabled until it is fixed in the source.
2011-03-04Moved test 577 into the unit test framework as test 1307Dan Fandrich
2011-03-04Added unit test 1306 so tests 558 & 559 are now fully replacedDan Fandrich
2011-03-04The unit test argument is allowed to be usedDan Fandrich
2011-03-04Converted tests 558 & 559 to use the unit test framework as 1305Dan Fandrich
Test 558 was just a subset of 559 which is something that can be easily added later.
2011-03-04Fixed test 1300 to pass the torture testDan Fandrich
2011-03-04Added abort_* unit test macrosDan Fandrich
These are for when a test failure makes it impossible to continue running further tests.
2011-02-22runtests.pl/stopserver: space separate pidsDaniel Stenberg
The stopserver function would append pids to kill and could append them without separating them with space properly. The result would be a very large number that by (some implementations of) kill would be interpreted as a negative number and that process group would be wiped... Bug: http://curl.haxx.se/bug/view.cgi?id=3188836 Reported by: Greg Pratt
2011-02-20tests: Cleaned up netrc testing.Julien Chaffraix
Removed the "netrc_debug" keyword replaced with --netrc-file additions. Removed the debug code from Curl_parsenetrc as it is superseeded by --netrc-file.
2011-02-10netrc: Enable setting up the filename in unit tests.Julien Chaffraix
Unset the environment variable so that we can specify different filenames in the unit test.
2011-02-10test1304: Added some unit tests for Curl_parsenetrc.Julien Chaffraix
Moved some definitons into the header file so that we can reuse them.
2011-02-02unit1300: code style cleanupDaniel Stenberg
2011-02-02adding unit tests for Curl_llist_removeAmr Shahin
2011-01-28test: add test 580 to the distDaniel Stenberg
2011-01-25tests: more multiple headers checksDaniel Stenberg
2011-01-25HTTP: memory leak on multiple Location:Daniel Stenberg
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
2011-01-22Fixed C++ style comment not allowed in ISO C90.Guenter Knauf
2011-01-21Mention axTLS in some more documentationDan Fandrich
2011-01-20runtests.pl: make -s not show skipped testsDaniel Stenberg
2011-01-20unittest: add 3 tests to test1300Amr Shahin
Testing Curl_llist_insert_next
2011-01-19dist: add new certs to tarballDaniel Stenberg
2011-01-19TLS-SRP: support added when using GnuTLSQuinn Slack
2011-01-05Made unit_setup() return an error code to abort the test earlyDan Fandrich
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.
2011-01-04tests: <info> tag correctionsDaniel Stenberg
2011-01-04unittest: 1303 tests Curl_timeleftDaniel Stenberg
I came up with 33 different ways to call it and verify that it returns the correct return code.
2011-01-04curlcheck.h: add fail()Daniel Stenberg
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.
2011-01-04Fixed path to allow out-of-tree buildsDan Fandrich
2011-01-04ignore: all executable unit test casesDaniel Stenberg
2011-01-04tests: add 1302 to the packageDaniel Stenberg
2011-01-04unittest: test base64 encode/decodeDaniel Stenberg
2011-01-04curlcheck.h: avoid using NULL pointersDaniel Stenberg
2011-01-04curlcheck.h: add verify_memoryDaniel Stenberg
This check verifies that a pointer contains the correct data.
2011-01-04curlcheck.h: add newlines in error messagesDaniel Stenberg
2011-01-04unittest: verify curl_strequalDaniel Stenberg
2011-01-03curlcheck.h: add fail_if() fix codeDaniel Stenberg
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.
2011-01-03unittests: basic docsDaniel Stenberg
2011-01-03ignore: unit test filesDaniel Stenberg
2011-01-03unittests: a dedicated feature in testsDaniel Stenberg
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.
2011-01-03unittesting: build a separate static libDaniel Stenberg
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.
2011-01-03unittest: framework for unit-testingDaniel Stenberg
This is the first approach at doing fairly clean and easy to write and debug unit tests.
2010-12-28test harness: take in account that Windows does not support LD_PRELOADYang Tse
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.
2010-12-23cookies: tricked dotcounter fixedDaniel Stenberg
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.
2010-12-22SMTP tests: updated MAIL FROM useDaniel Stenberg
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.
2010-12-17tftpd: avoid buffer overflow report from glibcPaul Howarth
2010-12-16axTLS integration: silence runtests.pl perl warningYang Tse
2010-12-15Minor fixes to pass tests 301 and 306 with a patched axTLS.Eric Hu