X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Flibsysdb_test.c;h=96bb9076cf16f14e6b4afe79de8a3bdec6d54181;hp=2351f19a600687b6aea0ed632d9b0fd55969c939;hb=3ba81224dac4d31ea5ad651db569543825ea5078;hpb=0aed0a0fadb607a04c3f9cb15e4cb49262c115d9 diff --git a/t/libsysdb_test.c b/t/libsysdb_test.c index 2351f19..96bb907 100644 --- a/t/libsysdb_test.c +++ b/t/libsysdb_test.c @@ -25,11 +25,15 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#if HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ #include "libsysdb_test.h" -typedef Suite *(*suite_creator)(void); +#include +#include +#include int main(void) @@ -37,16 +41,34 @@ 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 }, + { core_time_suite, NULL }, + { fe_conn_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);