]> git.proxmox.com Git - libgit2.git/commit - tests/t12-repo.c
Cleanup the testing toolkit
authorVicent Marti <tanoku@gmail.com>
Thu, 3 Mar 2011 16:19:05 +0000 (18:19 +0200)
committerVicent Marti <tanoku@gmail.com>
Thu, 3 Mar 2011 18:23:52 +0000 (20:23 +0200)
commit3dccfed16382c64370dd0fd88668c9d9accae6ed
tree21406b78ecda452244d9ceb64e5ac9ea8337ffd9
parent8fc050961c6f5d3bc8f2bc27799922bebae4b743
Cleanup the testing toolkit

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>
19 files changed:
tests/t00-core.c
tests/t01-rawobj.c
tests/t02-data.h
tests/t02-objread.c
tests/t03-objwrite.c
tests/t04-commit.c
tests/t05-revwalk.c
tests/t06-index.c
tests/t07-hashtable.c
tests/t08-tag.c
tests/t09-tree.c
tests/t10-refs.c
tests/t11-sqlite.c
tests/t12-repo.c
tests/test_helpers.c
tests/test_helpers.h
tests/test_lib.c
tests/test_lib.h
tests/test_main.c