diff --git a/t/libsysdb_test.c b/t/libsysdb_test.c
index 8d35dfdeb05a9b4f86f762a64b5e1bc1f881797c..8e5f2f4b23249625547e05feac44d819acbabb69 100644 (file)
--- a/t/libsysdb_test.c
+++ b/t/libsysdb_test.c
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <check.h>
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif /* HAVE_CONFIG_H */
#include "libsysdb_test.h"
-typedef Suite *(*suite_creator)(void);
+#include <check.h>
+#include <stdio.h>
+#include <stdlib.h>
int
main(void)
int failed = 0;
size_t i;
- suite_creator creators[] = {
- util_llist_suite,
- util_dbi_suite,
- util_strbuf_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);