这篇教程C++ test_run函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中test_run函数的典型用法代码示例。如果您正苦于以下问题:C++ test_run函数的具体用法?C++ test_run怎么用?C++ test_run使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了test_run函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: mainint main(int argc, char *argv[]){ const struct test *t; int arg; size_t i; arg = test_init(argc, argv, tests); if (arg == 0) return 0; if (arg < argc) { t = test_find(tests, argv[arg]); if (t == NULL) { fprintf(stderr, "could not find test %s/n", argv[arg]); exit(EXIT_FAILURE); } return test_run(t); } for (i = 0; tests[i] != NULL; i++) { if (test_run(tests[i]) != 0) exit(EXIT_FAILURE); } exit(EXIT_SUCCESS);}
开发者ID:pedrox,项目名称:kmod,代码行数:27,
示例2: mainint main() { test_setup(); perf_start(); for (int i = 0; i < NUM_ITER; ++i) { test_clear(); reset_timer(); start_timer(); test_run(i); stop_timer(); samples[i] = get_time(); } perf_stop(); int check = test_check(); printf("Correct: %d/n", check); for (int i = 0; i < NUM_ITER; ++i) printf("TS[%d]: %d/n", i, samples[i]); perf_print_all(); return 0;}
开发者ID:pulp-platform,项目名称:pulpino,代码行数:29,
示例3: main/** * @brief Main function for the FreeCoAP HTTP/COAP message/URI cross library unit tests * * @returns Operation status * @retval EXIT_SUCCESS Success * @retval EXIT_FAILURE Error */int main(void){ test_t tests[] = {{test_uri_http_to_coap_func, &test1_data}, {test_uri_http_to_coap_func, &test2_data}, {test_uri_http_to_coap_func, &test3_data}, {test_uri_http_to_coap_func, &test4_data}, {test_uri_http_to_coap_func, &test5_data}, {test_uri_http_to_coap_func, &test6_data}, {test_uri_http_to_coap_func, &test7_data}, {test_uri_coap_to_http_func, &test1_data}, {test_uri_coap_to_http_func, &test2_data}, {test_uri_coap_to_http_func, &test3_data}, {test_uri_coap_to_http_func, &test4_data}, {test_uri_coap_to_http_func, &test5_data}, {test_uri_coap_to_http_func, &test6_data}, {test_uri_coap_to_http_func, &test7_data}, {test_msg_http_to_coap_func, &test8_data}, {test_msg_http_to_coap_func, &test9_data}, {test_msg_http_to_coap_func, &test10_data}, {test_msg_http_to_coap_func, &test11_data}, {test_msg_coap_to_http_func, &test12_data}}; unsigned num_tests = DIM(tests); unsigned num_pass = 0; coap_log_set_level(COAP_LOG_ERROR); num_pass = test_run(tests, num_tests); return num_pass == num_tests ? EXIT_SUCCESS : EXIT_FAILURE;}
开发者ID:Rahuldee,项目名称:FreeCoAP,代码行数:36,
示例4: test_shell_handlerstatic shell_result test_shell_handler(shell_command* command) { if (strcmp(command->command, "test") == 0) { test_run(); return SHELL_RESULT_SUCCESS; } return SHELL_RESULT_FAIL;}
开发者ID:snoremac,项目名称:avrlaunch,代码行数:7,
示例5: mainint main(int argc, char **argv){ int suite = -1, tcase = -1; setenv("NTFSV_TRACE_PATHNAME", "/hostfs/repl-opensaf/saflog/ntfa.log", 1); srandom(getpid()); if (argc > 1) { suite = atoi(argv[1]); } if (argc > 2) { tcase = atoi(argv[2]); } if (suite == 0) { test_list(); return 0; } test_run(suite, tcase); return 0;}
开发者ID:kenzaburo,项目名称:OpenSaf-FrameWork,代码行数:28,
示例6: BOOST_FIXTURE_TEST_CASEBOOST_FIXTURE_TEST_CASE( test_simple_order, _3cases ){ ut::test_unit_id order[] = {master->p_id, tc1->p_id, tc2->p_id, tc3->p_id}; std::vector<ut::test_unit_id> expected_order(order, order+4); test_run( expected_order );}
开发者ID:Franky666,项目名称:programmiersprachen-raytracer,代码行数:7,
示例7: mainint main(void){ static void (*test_functions[])(void) = { test_dsync_mailbox_tree_sync_creates, test_dsync_mailbox_tree_sync_deletes, test_dsync_mailbox_tree_sync_renames1, test_dsync_mailbox_tree_sync_renames2, test_dsync_mailbox_tree_sync_renames3, test_dsync_mailbox_tree_sync_renames4, test_dsync_mailbox_tree_sync_renames5, test_dsync_mailbox_tree_sync_renames6, test_dsync_mailbox_tree_sync_renames7, test_dsync_mailbox_tree_sync_renames8, test_dsync_mailbox_tree_sync_renames9, test_dsync_mailbox_tree_sync_renames10, test_dsync_mailbox_tree_sync_renames11, test_dsync_mailbox_tree_sync_renames12, test_dsync_mailbox_tree_sync_renames13, test_dsync_mailbox_tree_sync_renames14, test_dsync_mailbox_tree_sync_renames15, test_dsync_mailbox_tree_sync_renames16, test_dsync_mailbox_tree_sync_renames17, test_dsync_mailbox_tree_sync_renames18, test_dsync_mailbox_tree_sync_renames19, test_dsync_mailbox_tree_sync_renames20, test_dsync_mailbox_tree_sync_random, NULL }; return test_run(test_functions);}
开发者ID:dhultin,项目名称:dovecot-pop-uidl-proxy,代码行数:30,
示例8: mainint main(int argc, char **argv) { int suite = ALL_SUITES, tcase = ALL_TESTS; srandom(getpid()); clm_init(); if (argc > 1) { suite = atoi(argv[1]); } if (argc > 2) { tcase = atoi(argv[2]); } if (suite == 0) { test_list(); return 0; } return test_run(suite, tcase);}
开发者ID:helioloureiro,项目名称:opensaf-fork,代码行数:25,
示例9: event_loopstatic void event_loop(sp_session *session) { int timeout = -1;#ifndef _WIN32 sigset_t sigset; sigemptyset(&sigset); sigaddset(&sigset, SIGIO);#endif while (g_exit_code < 0) {#ifndef _WIN32 pthread_sigmask(SIG_BLOCK, &sigset, NULL);#endif DSFYDEBUG("Calling sp_session_process_events()/n"); sp_session_process_events(session, &timeout); if(test_run() < 0) { DSFYDEBUG("Done running test, existing event loop/n"); break; }#ifdef _WIN32 WaitForSingleObject(g_notify_event, timeout);#else pthread_sigmask(SIG_UNBLOCK, &sigset, NULL); usleep(timeout * 1000);#endif } DSFYDEBUG("Exiting from loop()/n");}
开发者ID:Kitof,项目名称:openspotify,代码行数:33,
示例10: mainint main(int argc, char *argv[]){ const char *msg; msg = parse_opts(argc, argv, NULL, NULL); if (msg != NULL) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); tst_require_root(NULL); if (tst_kvercmp(2, 6, 0) < 0) { tst_brkm(TCONF, NULL, "Test must be run with kernel 2.6 or newer"); } tst_sig(FORK, DEF_HANDLER, cleanup); tst_module_load(NULL, module_name, NULL); module_loaded = 1; test_run(); cleanup(); tst_exit();}
开发者ID:MohdVara,项目名称:ltp,代码行数:25,
示例11: test_batteryvoidtest_battery(){ int retval; struct libdaemon_config *cfg; /* ensure run before init fails */ retval = test_run(); /* ensure destroy before init fails */ retval = test_destroy(); /* ensure init works */ retval = test_init(); cfg = daemon_getconfig(); if ((NULL != cfg) && (NULL != cfg->rundir)) printf("[+] rundir: %s/n/n", cfg->rundir); /* ensure double init fails */ retval = test_init(); /* test run works */// retval = test_run(); /* test destroy works */ retval = test_destroy();}
开发者ID:cangtian,项目名称:libdaemon,代码行数:29,
示例12: mainint main() { plan(); test_run(); return exit_status();}
开发者ID:modulated,项目名称:uti-c,代码行数:7,
示例13: mainint main(void) { random_init(); dcrypt_initialize("openssl", NULL, NULL); static void (*test_functions[])(void) = { test_cipher_test_vectors, test_cipher_aead_test_vectors, test_hmac_test_vectors, test_load_v1_keys, test_load_v1_key, test_load_v1_public_key, test_load_v2_key, test_load_v2_public_key, test_get_info_v2_key, test_gen_and_get_info_rsa_pem, test_get_info_rsa_private_key, NULL }; int ret = test_run(test_functions); dcrypt_deinitialize(); random_deinit(); return ret;}
开发者ID:bechtoldt,项目名称:dovecot-core,代码行数:26,
示例14: test_module_initstatic int __inittest_module_init(void){ int result; result = test_init(); if(result < 0) { pr_err("Failed to init test."); return result; } else if(result > 0) { pr_err("Test initialization function returns positive result."); return -EINVAL; } result = test_run(); test_cleanup(); if(result < 0) { pr_err("Test failed."); return result; } else if(result > 0) { pr_err("Test execution returns positive result."); return -EINVAL; } return 0;}
开发者ID:Tsyvarev,项目名称:kedr-callback-operations-interception,代码行数:34,
示例15: mainint main(void){ static void (*test_functions[])(void) = { test_message_parser_small_blocks, NULL }; return test_run(test_functions);}
开发者ID:dhultin,项目名称:dovecot-pop-uidl-proxy,代码行数:8,
示例16: mainint main(void){ static void (*test_functions[])(void) = { test_quota_transaction_is_over, NULL }; return test_run(test_functions);}
开发者ID:LTD-Beget,项目名称:dovecot,代码行数:8,
示例17: mainint main(void){ static void (*test_functions[])(void) = { test_istream_dot, NULL }; return test_run(test_functions);}
开发者ID:dhultin,项目名称:dovecot-pop-uidl-proxy,代码行数:8,
示例18: mainint main(void){ static void (*test_functions[])(void) = { test_mail_html2text, NULL }; return test_run(test_functions);}
开发者ID:IvanKharpalev,项目名称:core,代码行数:8,
示例19: mainint main(void){ static void (*test_functions[])(void) = { test_message_date_parse, NULL }; return test_run(test_functions);}
开发者ID:via,项目名称:dovecot-clouddb,代码行数:8,
示例20: mainint main(void){ static void (*test_functions[])(void) = { test_settings_get_time, NULL }; return test_run(test_functions);}
开发者ID:IvanKharpalev,项目名称:core,代码行数:8,
示例21: mainint main(void){ static void (*test_functions[])(void) = { test_quoted_printable_q_decode, NULL }; return test_run(test_functions);}
开发者ID:LTD-Beget,项目名称:dovecot,代码行数:8,
示例22: mainint main(void) { void (*tests[])(void) = { test_lua, NULL }; return test_run(tests);}
开发者ID:bdraco,项目名称:core,代码行数:8,
示例23: mainint main(void){ static void (*test_functions[])(void) = { test_penalty_checksum, NULL }; return test_run(test_functions);}
开发者ID:dhultin,项目名称:dovecot-pop-uidl-proxy,代码行数:8,
示例24: mainint main(void){ static void (*test_functions[])(void) = { test_message_id_get_next, NULL }; return test_run(test_functions);}
开发者ID:via,项目名称:dovecot-clouddb,代码行数:8,
示例25: mainint main(void){ static void (*test_functions[])(void) = { test_message_snippet, NULL }; return test_run(test_functions);}
开发者ID:IvanKharpalev,项目名称:core,代码行数:8,
示例26: mainint main(void){ static void (*test_functions[])(void) = { test_imap_parse_system_flag, NULL }; return test_run(test_functions);}
开发者ID:Distrotech,项目名称:dovecot,代码行数:8,
示例27: mainint main(void){ static void (*test_functions[])(void) = { test_dict_escape, NULL }; return test_run(test_functions);}
开发者ID:via,项目名称:dovecot-clouddb,代码行数:8,
示例28: mainint main(void){ static void (*test_functions[])(void) = { test_imap_parser_crlf, NULL }; return test_run(test_functions);}
开发者ID:via,项目名称:dovecot-clouddb,代码行数:8,
示例29: mainint main(void){ static void (*test_functions[])(void) = { test_imap_bodystructure_write, test_imap_bodystructure_parse, NULL }; return test_run(test_functions);}
开发者ID:Distrotech,项目名称:dovecot,代码行数:9,
示例30: mainint main(int argc, char* argv[]){ void *app = test_init(); egx_wnd_t window = window_create_((char*)"Test Qt Hahaha",0,0,0,640,480); window_show_(window); test_run(app); test_quit(app); return 0;}
开发者ID:edgarliu,项目名称:easygx,代码行数:9,
注:本文中的test_run函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ test_set_step函数代码示例 C++ test_result函数代码示例 |