本文整理匯總了C++中ADD_SUITE函數的典型用法代碼示例。如果您正苦於以下問題:C++ ADD_SUITE函數的具體用法?C++ ADD_SUITE怎麽用?C++ ADD_SUITE使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ADD_SUITE函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: setupRunner
void setupRunner(TestRunner &runner)
{
// execute tests in test dir with defined structure
ADD_SUITE(runner, SybCTnewDATest);
ADD_SUITE(runner, SybCTnewDAImplTest);
ADD_SUITE(runner, SybCTThreadTest);
ADD_SUITE(runner, ConfiguredActionTest);
}
示例2: setupRunner
void setupRunner(TestRunner &runner) {
// Use this work suite to debug a failing TestCase
ADD_SUITE(runner, StressAppTest);
ADD_SUITE(runner, RemoteStresserTest);
ADD_SUITE(runner, FlowControllerTest);
ADD_SUITE(runner, HTTPFlowControllerTest);
ADD_SUITE(runner, HTTPFlowControllerPrepareTest);
ADD_SUITE(runner, ConfiguredActionTest);
ADD_SUITE(runner, HTMLComparerTest);
ADD_SUITE(runner, NewRendererTest);
ADD_SUITE(runner, HTMLParserTest);
} // setupRunner
示例3: ADD_SUITE
abts_suite *testatomic(abts_suite *suite)
{
suite = ADD_SUITE(suite)
abts_run_test(suite, test_init, NULL);
abts_run_test(suite, test_set32, NULL);
abts_run_test(suite, test_read32, NULL);
abts_run_test(suite, test_dec32, NULL);
abts_run_test(suite, test_xchg32, NULL);
abts_run_test(suite, test_cas_equal, NULL);
abts_run_test(suite, test_cas_equal_nonnull, NULL);
abts_run_test(suite, test_cas_notequal, NULL);
abts_run_test(suite, test_casptr_equal, NULL);
abts_run_test(suite, test_casptr_equal_nonnull, NULL);
abts_run_test(suite, test_casptr_notequal, NULL);
abts_run_test(suite, test_add32, NULL);
abts_run_test(suite, test_inc32, NULL);
abts_run_test(suite, test_set_add_inc_sub, NULL);
abts_run_test(suite, test_wrap_zero, NULL);
abts_run_test(suite, test_inc_neg1, NULL);
#if APR_HAS_THREADS
abts_run_test(suite, test_atomics_threaded, NULL);
#endif
return suite;
}
示例4: ADD_SUITE
abts_suite *testhash(abts_suite *suite)
{
suite = ADD_SUITE(suite)
abts_run_test(suite, hash_make, NULL);
abts_run_test(suite, hash_set, NULL);
abts_run_test(suite, hash_reset, NULL);
abts_run_test(suite, same_value, NULL);
abts_run_test(suite, same_value_custom, NULL);
abts_run_test(suite, key_space, NULL);
abts_run_test(suite, delete_key, NULL);
abts_run_test(suite, hash_count_0, NULL);
abts_run_test(suite, hash_count_1, NULL);
abts_run_test(suite, hash_count_5, NULL);
abts_run_test(suite, hash_clear, NULL);
abts_run_test(suite, hash_traverse, NULL);
abts_run_test(suite, summation_test, NULL);
abts_run_test(suite, overlay_empty, NULL);
abts_run_test(suite, overlay_2unique, NULL);
abts_run_test(suite, overlay_same, NULL);
abts_run_test(suite, overlay_fetch, NULL);
return suite;
}
示例5: ADD_SUITE
abts_suite *testnames(abts_suite *suite)
{
suite = ADD_SUITE(suite)
abts_run_test(suite, merge_aboveroot, NULL);
abts_run_test(suite, merge_belowroot, NULL);
abts_run_test(suite, merge_noflag, NULL);
abts_run_test(suite, merge_dotdot, NULL);
abts_run_test(suite, merge_secure, NULL);
abts_run_test(suite, merge_notrel, NULL);
abts_run_test(suite, merge_notrelfail, NULL);
abts_run_test(suite, merge_notabs, NULL);
abts_run_test(suite, merge_notabsfail, NULL);
abts_run_test(suite, merge_dotdot_dotdot_dotdot, NULL);
#if defined(WIN32)
abts_run_test(suite, merge_lowercasedrive, NULL);
#endif
abts_run_test(suite, root_absolute, NULL);
abts_run_test(suite, root_relative, NULL);
abts_run_test(suite, root_from_slash, NULL);
abts_run_test(suite, root_from_cwd_and_back, NULL);
return suite;
}
示例6: ADD_SUITE
abts_suite *testcrypto(abts_suite *suite) {
suite = ADD_SUITE(suite);
/* test simple init and shutdown */
abts_run_test(suite, test_crypto_init, NULL);
/* test a simple encrypt / decrypt operation - openssl */
abts_run_test(suite, test_crypto_block_openssl, NULL);
/* test a padded encrypt / decrypt operation - openssl */
abts_run_test(suite, test_crypto_block_openssl_pad, NULL);
/* test a simple encrypt / decrypt operation - nss */
abts_run_test(suite, test_crypto_block_nss, NULL);
/* test a padded encrypt / decrypt operation - nss */
abts_run_test(suite, test_crypto_block_nss_pad, NULL);
/* test encrypt nss / decrypt openssl */
abts_run_test(suite, test_crypto_block_nss_openssl, NULL);
/* test padded encrypt nss / decrypt openssl */
abts_run_test(suite, test_crypto_block_nss_openssl_pad, NULL);
/* test encrypt openssl / decrypt nss */
abts_run_test(suite, test_crypto_block_openssl_nss, NULL);
/* test padded encrypt openssl / decrypt nss */
abts_run_test(suite, test_crypto_block_openssl_nss_pad, NULL);
return suite;
}
示例7: ADD_SUITE
abts_suite *testdso(abts_suite *suite)
{
suite = ADD_SUITE(suite)
#if APR_HAS_DSO
apr_filepath_merge(&modname, NULL, MOD_NAME, 0, p);
abts_run_test(suite, test_load_module, NULL);
abts_run_test(suite, test_dso_sym, NULL);
abts_run_test(suite, test_dso_sym_return_value, NULL);
abts_run_test(suite, test_unload_module, NULL);
#ifdef LIB_NAME
apr_filepath_merge(&libname, NULL, LIB_NAME, 0, p);
abts_run_test(suite, test_load_library, NULL);
abts_run_test(suite, test_dso_sym_library, NULL);
abts_run_test(suite, test_dso_sym_return_value_library, NULL);
abts_run_test(suite, test_unload_library, NULL);
#endif
abts_run_test(suite, test_load_notthere, NULL);
#endif /* APR_HAS_DSO */
return suite;
}
示例8: ADD_SUITE
abts_suite *testescape(abts_suite *suite)
{
suite = ADD_SUITE(suite);
abts_run_test(suite, test_escape, NULL);
return suite;
}
示例9: ADD_SUITE
abts_suite *teststrmatch(abts_suite *suite)
{
suite = ADD_SUITE(suite);
abts_run_test(suite, test_str, NULL);
return suite;
}
示例10: ADD_SUITE
abts_suite *testsleep(abts_suite *suite)
{
suite = ADD_SUITE(suite)
abts_run_test(suite, sleep_one, NULL);
return suite;
}
示例11: ADD_SUITE
abts_suite *testreslist(abts_suite *suite)
{
suite = ADD_SUITE(suite);
#if APR_HAS_THREADS
abts_run_test(suite, test_reslist, NULL);
#endif
return suite;
}
示例12: ADD_SUITE
abts_suite *testrmm(abts_suite *suite)
{
suite = ADD_SUITE(suite);
#if APR_HAS_SHARED_MEMORY
abts_run_test(suite, test_rmm, NULL);
#endif
return suite;
}
示例13: ADD_SUITE
abts_suite *testflock(abts_suite *suite)
{
suite = ADD_SUITE(suite)
abts_run_test(suite, test_withlock, NULL);
abts_run_test(suite, test_withoutlock, NULL);
abts_run_test(suite, remove_lockfile, NULL);
return suite;
}
示例14: ADD_SUITE
abts_suite *testmd4(abts_suite *suite)
{
suite = ADD_SUITE(suite);
for (count=0; count < num_sums; count++) {
abts_run_test(suite, test_md4sum, NULL);
}
return suite;
}
示例15: ADD_SUITE
abts_suite *testproc(abts_suite *suite)
{
suite = ADD_SUITE(suite)
abts_run_test(suite, test_create_proc, NULL);
abts_run_test(suite, test_proc_wait, NULL);
abts_run_test(suite, test_file_redir, NULL);
return suite;
}