X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Flibsysdb_test.c;h=3cc6d89ac94d118b802580bfe97cd37ed00e9331;hb=d65300ae7b9237a9f57bbffe55e9fa97a68bf9cd;hp=2351f19a600687b6aea0ed632d9b0fd55969c939;hpb=0aed0a0fadb607a04c3f9cb15e4cb49262c115d9;p=sysdb.git diff --git a/t/libsysdb_test.c b/t/libsysdb_test.c index 2351f19..3cc6d89 100644 --- a/t/libsysdb_test.c +++ b/t/libsysdb_test.c @@ -25,11 +25,11 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include - #include "libsysdb_test.h" -typedef Suite *(*suite_creator)(void); +#include +#include +#include int main(void) @@ -37,16 +37,32 @@ main(void) int failed = 0; size_t i; - suite_creator creators[] = { - util_llist_suite, - util_dbi_suite, + suite_creator_t creators[] = { + { core_data_suite, NULL }, + { core_object_suite, NULL }, + { core_store_suite, NULL }, + { core_store_lookup_suite, NULL }, + { fe_parser_suite, NULL }, + { fe_sock_suite, NULL }, + { util_channel_suite, NULL }, + { util_dbi_suite, NULL }, + { util_llist_suite, NULL }, + { util_strbuf_suite, NULL }, }; + putenv("TZ=UTC"); + for (i = 0; i < SDB_STATIC_ARRAY_LEN(creators); ++i) { SRunner *sr; Suite *s; - s = creators[i](); + if (creators[i].msg) + printf("%s\n", creators[i].msg); + + if (!creators[i].creator) + continue; + + s = creators[i].creator(); sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); failed += srunner_ntests_failed(sr);