END_TEST int main(void) { Suite *s = suite_create("ShelfSuite"); TCase *tc_core = tcase_create("tests"); tcase_add_checked_fixture(tc_core, setup, teardown); tcase_add_test (tc_core, open_fails_nonexistant_path_create_false); tcase_add_test (tc_core, open_passes_nonexistant_path_create_true); suite_add_tcase(s, tc_core); SRunner *sr = srunner_create(s); srunner_run_all(sr, CK_VERBOSE); int failed = srunner_ntests_failed (sr); srunner_free(sr); return (failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main (int argc, char **argv) { int nf; Suite *s = jpegparse_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }
int main(void) { #ifdef DEBUG log_level = 0; #else log_level = 2; #endif int number_failed; Suite *s = flexthread_suite(); SRunner *sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); log_level = 0; number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? 0 : 1; }
int main(int argc, char *argv[]) { unix_time_update(); Suite *Assoc = Assoc_suite(); SRunner *test_runner = srunner_create(Assoc); srunner_set_fork_status(test_runner, CK_NOFORK); srunner_run_all(test_runner, CK_NORMAL); int number_failed = srunner_ntests_failed(test_runner); srunner_free(test_runner); return number_failed; }
int main(int argc, const char *argv[]) { int number_failed; Suite *s = dlopen_suite(); SRunner *sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); number_failed = srunner_ntests_failed(sr); srunner_free(sr); if (number_failed == 0) return EXIT_SUCCESS; return EXIT_FAILURE; }
int main(void){ int number_failed; //SRunner *sr = srunner_create (turnmessage_suite ()); SRunner *sr = srunner_create (stunlib_suite ()); //SRunner *sr = srunner_create (s); srunner_add_suite (sr, turnclient_suite ()); srunner_add_suite (sr, turnmessage_suite ()); srunner_add_suite (sr, realworldmsg_suite ()); srunner_add_suite (sr, stunclient_suite ()); srunner_add_suite (sr, stunserver_suite ()); 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(int argc, char **argv) { int number_failed; Suite *s; SRunner *sr; s = nsurl_suite(); 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; }
int main(void) { int number_failed; Suite *s; SRunner *sr; s = file_system_suite(); sr = srunner_create(s); srunner_set_fork_status(sr, CK_NOFORK); 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(int argc, const char **argv) { int number_failed; Suite *suite = ipmap_suite(); SRunner *runner = srunner_create(suite); g_type_init(); ipset_init_library(); srunner_run_all(runner, CK_NORMAL); number_failed = srunner_ntests_failed(runner); srunner_free(runner); return (number_failed == 0)? EXIT_SUCCESS: EXIT_FAILURE; }
END_TEST int main(void) { Suite *s = suite_create("common definitions"); TCase *tc_core = tcase_create("core"); tcase_add_test(tc_core, test_prefix); tcase_add_test(tc_core, test_suffix); suite_add_tcase(s, tc_core); SRunner *sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); int n_failed = srunner_ntests_failed(sr); srunner_free(sr); return n_failed ? EXIT_FAILURE : EXIT_SUCCESS; }
int main(int argc, char *argv[]) { srand((unsigned int) time(NULL)); Suite *dht = dht_suite(); SRunner *test_runner = srunner_create(dht); int number_failed = 0; //srunner_set_fork_status(test_runner, CK_NOFORK); srunner_run_all(test_runner, CK_NORMAL); number_failed = srunner_ntests_failed(test_runner); srunner_free(test_runner); return number_failed; }
int main(void) { #ifdef UA_ENABLE_HISTORIZING testDataSorted = sortDateTimes(testData); #endif /* UA_ENABLE_HISTORIZING */ Suite *s = testSuite_Client(); SRunner *sr = srunner_create(s); srunner_set_fork_status(sr, CK_NOFORK); srunner_run_all(sr,CK_NORMAL); int number_failed = srunner_ntests_failed(sr); srunner_free(sr); #ifdef UA_ENABLE_HISTORIZING UA_free(testDataSorted); #endif /* UA_ENABLE_HISTORIZING */ return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main (int argc, char *argv[]) { unsigned int number_failed; Suite *s; SRunner *sr; apr_app_initialize(&argc, (const char * const **) &argv, NULL); s = mod_auth_cas_suite(); sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); number_failed = srunner_ntests_failed(sr); srunner_free(sr); apr_terminate(); return (number_failed != 0); }
int main(int argc, char **argv) { (void) argc; /* unused */ (void) argv; /* unused */ Suite *s = suite_create("Curly"); SRunner *sr = srunner_create(s); srunner_add_suite(sr, hashtable_suite()); srunner_add_suite(sr, parser_suite()); srunner_add_suite(sr, url_suite()); srunner_run_all(sr, CK_NORMAL); int 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; SRunner * sr; int memdebug = 0; int iswin = 0; int error = 0; #if defined(_WIN64) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN32__) iswin = 1; #endif memdebug = getenv("MEMDEBUG") ? atoi(getenv("MEMDEBUG")) : 0; if( memdebug ) { talloc_enable_leak_report_full(); } rootctx = talloc_new(NULL); // Load the spec spec_filename = getenv("handlebars_tokenizer_spec"); if( spec_filename == NULL ) { spec_filename = "./spec/handlebars/spec/tokenizer.json"; } error = loadSpec(spec_filename); if( error != 0 ) { goto error; } fprintf(stderr, "Loaded %lu test cases\n", tests_len); s = parser_suite(); sr = srunner_create(s); if( iswin || memdebug ) { srunner_set_fork_status(sr, CK_NOFORK); } srunner_run_all(sr, CK_ENV); number_failed = srunner_ntests_failed(sr); srunner_free(sr); error = (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; error: talloc_free(rootctx); if( memdebug ) { talloc_report_full(NULL, stderr); } return error; }
int main(void) { int nf; Suite *s; SRunner *sr; cl_initialize_crypto(); fpu_words = get_fpu_endian(); check_version_compatible(); s = test_cl_suite(); sr = srunner_create(s); #ifdef CHECK_HAVE_LOOPS srunner_add_suite(sr, test_cli_suite()); #else printf("*** Warning ***: your check version is too old,\nseveral important tests will not execute\n"); #endif srunner_add_suite(sr, test_jsnorm_suite()); srunner_add_suite(sr, test_str_suite()); srunner_add_suite(sr, test_regex_suite()); srunner_add_suite(sr, test_disasm_suite()); srunner_add_suite(sr, test_uniq_suite()); srunner_add_suite(sr, test_matchers_suite()); srunner_add_suite(sr, test_htmlnorm_suite()); srunner_add_suite(sr, test_bytecode_suite()); srunner_set_log(sr, "test.log"); if(freopen("test-stderr.log","w+",stderr) == NULL) { fputs("Unable to redirect stderr!\n",stderr); } cl_debug(); srunner_run_all(sr, CK_NORMAL); nf = srunner_ntests_failed(sr); if (nf) printf("NOTICE: Use the 'T' environment variable to adjust testcase timeout\n"); srunner_free(sr); #if HAVE_LIBXML2 xmlCleanupParser(); #endif cl_cleanup_crypto(); return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(void) { Suite *s1 = suite_create("Integer Vector 3"); TCase *tc1_1 = tcase_create("Integer Vector 3"); SRunner *sr = srunner_create(s1); int nf; srunner_set_fork_status(sr, CK_NOFORK); test_add(tc1_1); suite_add_tcase(s1, tc1_1); srunner_run_all(sr, CK_ENV); nf = srunner_ntests_failed(sr); srunner_free(sr); return nf == 0 ? 0 : 1; }
int main(void) { setvbuf(stdout, nullptr, _IONBF, 0); srand((unsigned int) time(nullptr)); Suite *tox = tox_suite(); SRunner *test_runner = srunner_create(tox); int number_failed = 0; srunner_run_all(test_runner, CK_NORMAL); number_failed = srunner_ntests_failed(test_runner); srunner_free(test_runner); return number_failed; }
/** * \brief Unit test suite main method. * * Create test suite runner and add test suites it should run. Use environment * variable to control how the suites will be run (forked/no forked mode). * * This suite is not only for generic view test suite, it is used for all view * related test suites (something like mini master suite for view related * functionality) * * \param argc number of parameters to program * \param argv array of parameters to program * \return number of failed suites */ int main(int argc, char** argv) { int number_failed = 0; SRunner *suite_runner = srunner_create( create_fa_accept_set_suite() ); srunner_add_suite( suite_runner, create_fa_transition_suite() ); srunner_add_suite( suite_runner, create_fa_node_suite() ); srunner_add_suite( suite_runner, create_fa_automaton_suite() ); srunner_add_suite( suite_runner, create_fa_runner_suite() ); srunner_run_all(suite_runner, CK_ENV); number_failed = srunner_ntests_failed(suite_runner); srunner_free(suite_runner); return ( 0 == number_failed ) ? EXIT_SUCCESS : EXIT_FAILURE; }
} END_TEST int main(void) { TCase *tc_pubsub_publish = tcase_create("PubSub publish"); tcase_add_checked_fixture(tc_pubsub_publish, setup, teardown); tcase_add_test(tc_pubsub_publish, SinglePublishDataSetField); Suite *s = suite_create("PubSub publishing json via udp"); suite_add_tcase(s, tc_pubsub_publish); SRunner *sr = srunner_create(s); srunner_set_fork_status(sr, CK_NOFORK); srunner_run_all(sr,CK_NORMAL); int number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(void) { int number_failed = 0; svr_do_schedule_mutex = (pthread_mutex_t *)calloc(1, sizeof(pthread_mutex_t)); listener_command_mutex = (pthread_mutex_t *)calloc(1, sizeof(pthread_mutex_t)); pthread_mutex_init(svr_do_schedule_mutex, NULL); pthread_mutex_init(listener_command_mutex, NULL); SRunner *sr = NULL; init_server(); rundebug(); sr = srunner_create(req_jobobit_suite()); srunner_set_log(sr, "req_jobobit_suite.log"); srunner_run_all(sr, CK_NORMAL); number_failed = srunner_ntests_failed(sr); srunner_free(sr); return number_failed; }
int main(int argc, char *argv[]) { (void) argc; (void) argv; Suite *tox = tox_suite(); SRunner *test_runner = srunner_create(tox); setbuf(stdout, NULL); srunner_run_all(test_runner, CK_NORMAL); int number_failed = srunner_ntests_failed(test_runner); srunner_free(test_runner); return number_failed; }
int main (void) { init(); int number_failed; Suite * s = create_test_suite(); SRunner * sr = srunner_create (s); srunner_set_log (sr, "check_glyr_opt.log"); srunner_run_all (sr, CK_VERBOSE); number_failed = srunner_ntests_failed (sr); srunner_free (sr); cleanup_db(); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; };
int main(int argc, char **argv) { if (argc != 2) { fprintf(stderr, "Usage: %s <module.ko>\n", argv[0]); return 1; } load_module(argv[1]); Suite *s = kmod_suite(); SRunner *sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); int number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(void) { int nfail; Suite *suite = cuckoo_suite(); SRunner *srunner = srunner_create(suite); srunner_set_log(srunner, DEBUG_LOG); srunner_run_all(srunner, CK_ENV); /* set CK_VEBOSITY in ENV to customize */ nfail = srunner_ntests_failed(srunner); srunner_free(srunner); /* teardown */ test_teardown(); return (nfail == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(int argc, char **argv) { int nf; msx_set_debug(0); if(argc > 1) debug = 1; Suite *s = mapper_suite(); SRunner *sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); nf = srunner_ntests_failed(sr); srunner_free(sr); return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main () { int number_failed = 0; SRunner * sr = srunner_create (makeGraphInitSuite ()); srunner_add_suite (sr, makeGraphWorldBaseSuite ()); logSetLevel (E_ALL ^ E_DEBUG); srunner_run_all (sr, CK_NORMAL); number_failed = srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
END_TEST /* ****************************** * Main entry point * * ******************************/ int main (int argc, char *argv) { Suite *fs = create_test_suite(); SRunner *fs_runner = srunner_create(fs); srunner_run_all(fs_runner, CK_NORMAL); int number_failed = srunner_ntests_failed (fs_runner); srunner_free (fs_runner); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
int main(void) { int number_failed; g_thread_init(NULL); cfs_status_init(); Suite *s = memdb_suite(); SRunner *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 (int argc, char **argv) { gint nf; Suite *s = rgvolume_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); srunner_run_all (sr, CK_ENV); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }