summaryrefslogtreecommitdiff
path: root/tests/test_lib.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved testing resources to clar, and removed old tests directory.Ben Straub2012-03-311-198/+0
| | | | Removed the BUILD_CLAR CMake flag, and updated the readme.
* test: Properly show error messagesVicent Marti2011-06-281-1/+4
|
* test: Print last error message properlyVicent Marti2011-06-281-17/+10
|
* test_lib.c: flush stdout after every test-runschu2011-05-301-0/+2
| | | | | | | Make sure the user immediately sees the feedback, '.' or 'F', for a test. If it's only in the buffer, it may gets "lost" in case of error. Signed-off-by: schu <schu-github@schulog.org>
* test_lib: add return value to git_testschu2011-05-181-3/+15
| | | | | | | Save the return value of functions not passing must_pass() and report the returned error. Signed-off-by: schu <schu-github@schulog.org>
* tests: free the test suite nameCarlos Martín Nieto2011-04-131-0/+1
| | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Cleanup the testing toolkitVicent Marti2011-03-031-34/+40
| | | | | | | | | | | | | | | | | | | Tests are now declared with detailed descriptions and a short test name: BEGIN_TEST(the_test0, "this is an example test that does something") ... END_TEST Modules are declared through a simple macro interface: BEGIN_MODULE(mod_name) ADD_TEST(the_test0); ... END_MODULE Error messages when tests fail have been greatly improved. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Make the test return an error code on failureVicent Marti2011-02-021-1/+3
| | | | Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Rewrite the unit testing suiteVicent Marti2011-02-021-75/+159
| | | | | | | | | | | NIH Enterprises presents: a new testing system based on CuTesT, which is faster than our previous one and fortunately uses no preprocessing on the source files, which means we can run that from CMake. The test suites have been gathered together into bigger files (one file per suite, testing each of the different submodules of the library). Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Fix some coding style issuesRamsay Jones2010-02-281-5/+4
| | | | Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
* Use a 64 bit off_t throughout the library and tests on POSIXRamsay Jones2010-01-201-4/+1
| | | | Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
* Create a basic test suite for the library and test oid functionsShawn O. Pearce2008-11-011-0/+99
This is a horribly simple test suite that makes it fairly easy to put together some basic function level unit tests on the library. Its patterned somewhat after the test suite in git.git, but also after the "Check" test library. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>