Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-06-13 | curl_formget: fix FILE * leak | Daniel Stenberg | |
Properly deal with the fact that the last fread() call most probably is a short read, and when using callbacks in fact all calls can be short reads. No longer consider a file read done until it returns a 0 from the read function. Reported by: Aaron Orenstein Bug: http://curl.haxx.se/mail/lib-2011-06/0048.html | |||
2011-06-11 | Fixed test 1309 to pass the torture test | Dan Fandrich | |
Removing dynamic allocations also simplifies the test. | |||
2011-06-10 | splay: add unit tests | Daniel Stenberg | |
The test code that was #ifdef'ed in the code was converted into unit tests in test case 1309. I also removed the #if 0'ed code from splay.c | |||
2011-06-10 | unit test formpost: added test case 1308 | Daniel Stenberg | |
This is a few first rather basic tests of curl_formadd() and curl_formget(). Should serve as building blocks to add more variations to the test. | |||
2011-06-02 | unit tests: attempt to fix linkage issue | Yang Tse | |
2011-06-01 | unit tests: more build adjustments | Yang Tse | |
2011-06-01 | makefile: avoid preprocessor definition usage when linking | Yang Tse | |
2011-05-25 | unit tests: build adjustment | Yang Tse | |
Also define UNITTESTS macro when building unit test sources. Fixing compiler warning: external definition with no prior declaration | |||
2011-05-24 | unit tests: README, adjust header inclusion order | Yang Tse | |
2011-05-24 | compiler warning: fix | Yang Tse | |
Fix compiler warning: external definition with no prior declaration | |||
2011-05-21 | compiler warning: fix | Yang Tse | |
Fix compiler warning: enumerated type mixed with another type | |||
2011-05-21 | unit tests: adjust header inclusion order | Yang Tse | |
Additionally, prevent multiple inclusions of curl_config.h | |||
2011-03-20 | unit1305: Fixed the test to match our coding style. | Julien Chaffraix | |
2011-03-10 | sources: update source headers | Daniel 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-04 | Moved test 577 into the unit test framework as test 1307 | Dan Fandrich | |
2011-03-04 | Added unit test 1306 so tests 558 & 559 are now fully replaced | Dan Fandrich | |
2011-03-04 | The unit test argument is allowed to be used | Dan Fandrich | |
2011-03-04 | Converted tests 558 & 559 to use the unit test framework as 1305 | Dan Fandrich | |
Test 558 was just a subset of 559 which is something that can be easily added later. | |||
2011-03-04 | Fixed test 1300 to pass the torture test | Dan Fandrich | |
2011-03-04 | Added abort_* unit test macros | Dan Fandrich | |
These are for when a test failure makes it impossible to continue running further tests. | |||
2011-02-10 | netrc: 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-10 | test1304: Added some unit tests for Curl_parsenetrc. | Julien Chaffraix | |
Moved some definitons into the header file so that we can reuse them. | |||
2011-02-02 | unit1300: code style cleanup | Daniel Stenberg | |
2011-02-02 | adding unit tests for Curl_llist_remove | Amr Shahin | |
2011-01-22 | Fixed C++ style comment not allowed in ISO C90. | Guenter Knauf | |
2011-01-20 | unittest: add 3 tests to test1300 | Amr Shahin | |
Testing Curl_llist_insert_next | |||
2011-01-05 | Made unit_setup() return an error code to abort the test early | Dan 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-04 | unittest: 1303 tests Curl_timeleft | Daniel Stenberg | |
I came up with 33 different ways to call it and verify that it returns the correct return code. | |||
2011-01-04 | curlcheck.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-04 | Fixed path to allow out-of-tree builds | Dan Fandrich | |
2011-01-04 | ignore: all executable unit test cases | Daniel Stenberg | |
2011-01-04 | unittest: test base64 encode/decode | Daniel Stenberg | |
2011-01-04 | curlcheck.h: avoid using NULL pointers | Daniel Stenberg | |
2011-01-04 | curlcheck.h: add verify_memory | Daniel Stenberg | |
This check verifies that a pointer contains the correct data. | |||
2011-01-04 | curlcheck.h: add newlines in error messages | Daniel Stenberg | |
2011-01-04 | unittest: verify curl_strequal | Daniel Stenberg | |
2011-01-03 | curlcheck.h: add fail_if() fix code | Daniel 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-03 | unittests: basic docs | Daniel Stenberg | |
2011-01-03 | ignore: unit test files | Daniel Stenberg | |
2011-01-03 | unittesting: build a separate static lib | Daniel 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-03 | unittest: framework for unit-testing | Daniel Stenberg | |
This is the first approach at doing fairly clean and easy to write and debug unit tests. |