diff options
author | Stef Walter <stef@memberwebs.com> | 2008-03-14 14:40:47 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-03-14 14:40:47 +0000 |
commit | 8865f7a28e40b82f98e944c8e7dbd67b56428bbc (patch) | |
tree | 1b51a96d8158b0758c304a7b72ff9c6d0cb2e533 /tests/cu-test/AllTests.c | |
parent | 106dadfb63b371a1d5cf97ead46f975848e73786 (diff) |
Add unit tests
Diffstat (limited to 'tests/cu-test/AllTests.c')
-rw-r--r-- | tests/cu-test/AllTests.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/cu-test/AllTests.c b/tests/cu-test/AllTests.c new file mode 100644 index 0000000..5c849ef --- /dev/null +++ b/tests/cu-test/AllTests.c @@ -0,0 +1,25 @@ +#include <stdio.h> + +#include "CuTest.h" + +CuSuite* CuGetSuite(); +CuSuite* CuStringGetSuite(); + +void RunAllTests(void) +{ + CuString *output = CuStringNew(); + CuSuite* suite = CuSuiteNew(); + + CuSuiteAddSuite(suite, CuGetSuite()); + CuSuiteAddSuite(suite, CuStringGetSuite()); + + CuSuiteRun(suite); + CuSuiteSummary(suite, output); + CuSuiteDetails(suite, output); + printf("%s\n", output->buffer); +} + +int main(void) +{ + RunAllTests(); +} |