aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
AgeCommit message (Collapse)Author
2011-01-22Fixed C++ style comment not allowed in ISO C90.Guenter Knauf
2011-01-20unittest: add 3 tests to test1300Amr Shahin
Testing Curl_llist_insert_next
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-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-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-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.