diff options
author | Stef Walter <stef@memberwebs.com> | 2009-06-18 17:12:25 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-06-18 17:12:25 +0000 |
commit | 543b45ab3ed3f4d1a9852ead27becf0f2dee8f6d (patch) | |
tree | 00a56400bbed9e01b569e09f87eb679c5dbc8d86 /tests/cu-test/AllTests.c | |
parent | 4bf87cb9f4f6b9812c06a8d2c500869c48ebc2dc (diff) |
Make tests for storage, and fix problems
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(); +} |