int main(UNUSED int argc, UNUSED char *argv[]) { int nfail; SRunner *sr; sr = srunner_create(blank_suite()); srunner_add_suite(sr, main_suite()); srunner_add_suite(sr, opts_suite()); srunner_add_suite(sr, dynbuf_suite()); srunner_add_suite(sr, cert_suite()); srunner_add_suite(sr, cachemgr_suite()); srunner_add_suite(sr, cachefkcrt_suite()); srunner_add_suite(sr, cachetgcrt_suite()); srunner_add_suite(sr, cachedsess_suite()); srunner_add_suite(sr, cachessess_suite()); srunner_add_suite(sr, ssl_suite()); srunner_add_suite(sr, sys_suite()); srunner_add_suite(sr, base64_suite()); srunner_add_suite(sr, url_suite()); srunner_add_suite(sr, util_suite()); srunner_add_suite(sr, pxythrmgr_suite()); srunner_run_all(sr, CK_NORMAL); nfail = srunner_ntests_failed(sr); srunner_free(sr); return !nfail ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(void) { int number_failed; SRunner *sr; if (g_getenv("PURPLE_CHECK_DEBUG")) purple_debug_set_enabled(TRUE); /* Make g_return_... functions fatal, ALWAYS. * As this is the test code, this is NOT controlled * by PURPLE_FATAL_ASSERTS. */ g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); sr = srunner_create (master_suite()); srunner_add_suite(sr, cipher_suite()); srunner_add_suite(sr, jabber_caps_suite()); srunner_add_suite(sr, jabber_digest_md5_suite()); srunner_add_suite(sr, jabber_jutil_suite()); srunner_add_suite(sr, jabber_scram_suite()); srunner_add_suite(sr, oscar_util_suite()); srunner_add_suite(sr, util_suite()); srunner_add_suite(sr, xmlnode_suite()); /* make this a libpurple "ui" */ purple_check_init(); srunner_run_all (sr, CK_NORMAL); number_failed = srunner_ntests_failed (sr); srunner_free (sr); purple_core_quit(); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(int argc, char *argv[]) { int number_failed = 0; Suite *s = util_suite(); SRunner *sr = srunner_create(s); srunner_run_all(sr, CK_ENV); number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
si32 main(void) { si32 number_failed = 0; Suite *s; SRunner *sr; s = util_suite(); sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(void) { int number_failed; Suite *s = util_suite(); SRunner *sr = srunner_create(s); /* run the test suite */ srunner_run_all(sr, CK_NORMAL); number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; return 0; }
int main (void) { int number_failed; Suite *s; SRunner *sr; s = util_suite (); sr = srunner_create (s); srunner_run_all (sr, CK_NORMAL); number_failed = srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? 0 : 1; }
int main (void) { int number_failed; g_type_init(); complearn_init(); Suite *s = complearn_suite (); SRunner *sr = srunner_create (s); srunner_add_suite (sr, environment_suite ()); srunner_add_suite (sr, ncd_suite ()); srunner_add_suite (sr, util_suite ()); srunner_add_suite (sr, cloutput_suite ()); srunner_run_all (sr, CK_NORMAL); number_failed = srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int32_t main(void) { int32_t number_failed; Suite *s = util_suite(); SRunner *sr = srunner_create(s); qb_log_init("check", LOG_USER, LOG_EMERG); qb_log_ctl(QB_LOG_SYSLOG, QB_LOG_CONF_ENABLED, QB_FALSE); qb_log_filter_ctl(QB_LOG_STDERR, QB_LOG_FILTER_ADD, QB_LOG_FILTER_FILE, "*", LOG_INFO); qb_log_ctl(QB_LOG_STDERR, QB_LOG_CONF_ENABLED, QB_TRUE); srunner_run_all(sr, CK_VERBOSE); number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main (void) { int number_failed = 0; o_set_log_file ("check_libshared.oml.log"); SRunner *sr = srunner_create (mstring_suite ()); srunner_add_suite (sr, base64_suite ()); srunner_add_suite (sr, json_suite ()); srunner_add_suite (sr, string_utils_suite ()); srunner_add_suite (sr, util_suite ()); srunner_add_suite (sr, headers_suite ()); srunner_add_suite (sr, marshal_suite ()); srunner_run_all (sr, CK_ENV); number_failed += srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(int argc, const char **argv) { int number_failed; struct stat s; if (argc != 2) { fprintf(stderr, "synopsis: %s <repo_directory>\n", argv[0]); exit(1); } if (stat(argv[1], &s) || !S_ISDIR(s.st_mode)) { fprintf(stderr, "can not read repos at '%s'.\n", argv[1]); exit(1); } if (init_test_globals(&test_globals, argv[1])) { fprintf(stderr, "failed initializing test engine.\n"); exit(1); } printf("Tests using directory: %s\n", test_globals.tmpdir); SRunner *sr = srunner_create(sack_suite()); srunner_add_suite(sr, iutil_suite()); srunner_add_suite(sr, util_suite()); srunner_add_suite(sr, reldep_suite()); srunner_add_suite(sr, repo_suite()); srunner_add_suite(sr, package_suite()); srunner_add_suite(sr, packagelist_suite()); srunner_add_suite(sr, packageset_suite()); srunner_add_suite(sr, query_suite()); srunner_add_suite(sr, selector_suite()); srunner_add_suite(sr, subject_suite()); srunner_add_suite(sr, goal_suite()); srunner_add_suite(sr, advisory_suite()); srunner_add_suite(sr, advisoryref_suite()); srunner_run_all(sr, CK_NORMAL); number_failed = srunner_ntests_failed(sr); srunner_free(sr); free_test_globals(&test_globals); return (number_failed == 0) ? 0 : 1; }
int main (void) { int number_failed = 0; o_set_log_file ("check_oml2.log"); SRunner* sr = srunner_create (omlvalue_suite()); srunner_add_suite (sr, bswap_suite ()); srunner_add_suite (sr, mbuf_suite ()); srunner_add_suite (sr, cbuf_suite ()); srunner_add_suite (sr, marshal_suite ()); srunner_add_suite (sr, api_suite ()); srunner_add_suite (sr, writers_suite ()); srunner_add_suite (sr, filters_suite ()); srunner_add_suite (sr, util_suite ()); srunner_add_suite (sr, log_suite ()); srunner_run_all (sr, CK_NORMAL); number_failed += srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }