/bind-9.6-ESV-R11/unit/atf-src/atf-c/ |
H A D | tc_test.c | 41 ATF_TC_HEAD(empty, tc) 43 if (tc != NULL) {} 45 ATF_TC_BODY(empty, tc) 49 ATF_TC_HEAD(test_var, tc) 51 atf_tc_set_md_var(tc, "test-var", "Test text"); 59 ATF_TC_HEAD(init, tc) 61 atf_tc_set_md_var(tc, "descr", "Tests the atf_tc_init function"); 65 atf_tc_t tc; local 67 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), 69 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test 87 atf_tc_t tc; local 120 atf_tc_t tc; local 140 atf_tc_t tc; local [all...] |
H A D | tp.c | 36 #include "atf-c/tc.h" 56 const atf_tc_t *tc; local 59 tc = NULL; 64 tc = tc2; 68 return tc; 113 atf_tc_t *tc = atf_list_iter_data(iter); local 114 atf_tc_fini(tc); 134 const atf_tc_t *tc = find_tc(tp, id); local 135 return tc != NULL; 141 const atf_tc_t *tc local 180 atf_tp_add_tc(atf_tp_t *tp, atf_tc_t *tc) argument 200 const atf_tc_t *tc; local 211 const atf_tc_t *tc; local [all...] |
H A D | check_test.c | 53 do_exec(const atf_tc_t *tc, const char *helper_name, atf_check_result_t *r) argument 58 get_process_helpers_path(tc, false, &process_helpers); 71 do_exec_with_arg(const atf_tc_t *tc, const char *helper_name, const char *arg, argument 77 get_process_helpers_path(tc, false, &process_helpers); 104 ATF_TC_HEAD(h_build_c_o_ok, tc) 106 atf_tc_set_md_var(tc, "descr", "Helper test case for build_c_o"); 108 ATF_TC_BODY(h_build_c_o_ok, tc) 122 ATF_TC_HEAD(h_build_c_o_fail, tc) 124 atf_tc_set_md_var(tc, "descr", "Helper test case for build_c_o"); 126 ATF_TC_BODY(h_build_c_o_fail, tc) 225 init_and_run_h_tc(atf_tc_t *tc, const atf_tc_pack_t *tcpack, const char *outname, const char *errname) argument [all...] |
H A D | macros_test.c | 84 atf_tc_t tc; local 87 RE(atf_tc_init(&tc, name, head, body, NULL, config)); 88 run_h_tc(&tc, "output", "error", "result"); 89 atf_tc_fini(&tc); 97 ATF_TC_HEAD(h_ ## id, tc) \ 99 atf_tc_set_md_var(tc, "descr", "Helper test case"); \ 101 ATF_TC_BODY(h_ ## id, tc) \ 236 ATF_TC_HEAD(check_errno, tc) 238 atf_tc_set_md_var(tc, "descr", "Tests the ATF_CHECK_ERRNO macro"); 240 ATF_TC_BODY(check_errno, tc) [all...] |
H A D | tc.c | 45 #include "atf-c/tc.h" 67 const atf_tc_t *tc; member in struct:context 110 context_init(struct context *ctx, const atf_tc_t *tc, const char *resfile) argument 112 ctx->tc = tc; 549 atf_tc_init(atf_tc_t *tc, const char *ident, atf_tc_head_t head, argument 555 tc->pimpl = malloc(sizeof(struct atf_tc_impl)); 556 if (tc->pimpl == NULL) { 561 tc->pimpl->m_ident = ident; 562 tc 606 atf_tc_init_pack(atf_tc_t *tc, const atf_tc_pack_t *pack, const char *const *config) argument 614 atf_tc_fini(atf_tc_t *tc) argument 625 atf_tc_get_ident(const atf_tc_t *tc) argument 631 atf_tc_get_config_var(const atf_tc_t *tc, const char *name) argument 645 atf_tc_get_config_var_wd(const atf_tc_t *tc, const char *name, const char *defval) argument 659 atf_tc_get_config_var_as_bool(const atf_tc_t *tc, const char *name) argument 677 atf_tc_get_config_var_as_bool_wd(const atf_tc_t *tc, const char *name, const bool defval) argument 691 atf_tc_get_config_var_as_long(const atf_tc_t *tc, const char *name) argument 709 atf_tc_get_config_var_as_long_wd(const atf_tc_t *tc, const char *name, const long defval) argument 723 atf_tc_get_md_var(const atf_tc_t *tc, const char *name) argument 737 atf_tc_get_md_vars(const atf_tc_t *tc) argument 743 atf_tc_has_config_var(const atf_tc_t *tc, const char *name) argument 753 atf_tc_has_md_var(const atf_tc_t *tc, const char *name) argument 767 atf_tc_set_md_var(atf_tc_t *tc, const char *name, const char *fmt, ...) argument 1008 atf_tc_run(const atf_tc_t *tc, const char *resfile) argument 1036 atf_tc_cleanup(const atf_tc_t *tc) argument [all...] |
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/ |
H A D | tests.hpp | 72 // The "tc" class. 77 class tc : noncopyable { class in namespace:atf::tests 90 tc(const std::string&, const bool); 91 virtual ~tc(void);
|
H A D | tests_test.cpp | 66 check_equal(const atf::tests::tc& tc, const std::string& str, argument 76 tc.fail("Constructed string differs from the expected one");
|
H A D | check_test.cpp | 61 do_exec(const atf::tests::tc* tc, const char* helper_name) argument 64 argv.push_back(get_process_helpers_path(*tc).str()); 74 do_exec(const atf::tests::tc* tc, const char* helper_name, const char *carg2) argument 77 argv.push_back(get_process_helpers_path(*tc).str());
|
H A D | tests.cpp | 54 #include "atf-c/tc.h" 126 // The "tc" class. 129 static std::map< atf_tc_t*, impl::tc* > wraps; 130 static std::map< const atf_tc_t*, const impl::tc* > cwraps; 144 wrap_head(atf_tc_t *tc) argument 146 std::map< atf_tc_t*, impl::tc* >::iterator iter = wraps.find(tc); 152 wrap_body(const atf_tc_t *tc) argument 154 std::map< const atf_tc_t*, const impl::tc* >::const_iterator iter = 155 cwraps.find(tc); 168 wrap_cleanup(const atf_tc_t *tc) argument 177 impl::tc::tc(const std::string& ident, const bool has_cleanup) : function in class:impl::tc 450 impl::tc* tc = *iter; local 549 impl::tc* tc = *iter; local 569 operator ()(const impl::tc* tc) argument 608 impl::tc* tc = *iter; local 643 impl::tc* tc = find_tc(init_tcs(), fields.first); local [all...] |
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/ |
H A D | test_helpers.cpp | 59 build_check_cxx_o(const atf::tests::tc& tc, const char* sfile, argument 63 atf::fs::path(tc.get_config_var("srcdir")) / sfile; 81 get_process_helpers_path(const atf::tests::tc& tc) argument 83 return atf::fs::path(tc.get_config_var("srcdir")) /
|
H A D | ui_test.cpp | 43 const char *tc; member in struct:test 360 run_tests(const char *tc) argument 364 std::cout << "Running tests for " << tc << "\n"; local 368 for (t = &tests[0]; t->tc != NULL; t++) { 369 if (std::strcmp(t->tc, tc) == 0) {
|
H A D | process_test.cpp | 62 exec_process_helpers(const atf::tests::tc& tc, const char* helper_name) argument 67 argv.push_back(get_process_helpers_path(tc).leaf_name()); 70 return exec(get_process_helpers_path(tc),
|
H A D | test_helpers.hpp | 83 class tc; 88 void build_check_cxx_o(const atf::tests::tc&, const char*, const char*, bool); 89 atf::fs::path get_process_helpers_path(const atf::tests::tc&); 104 TestCase tc; local 105 tc.init(data->m_config); 106 tc.run("result");
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c/detail/ |
H A D | test_helpers.c | 71 build_check_c_o(const atf_tc_t *tc, const char *sfile, const char *failmsg, argument 77 atf_tc_get_config_var(tc, "srcdir"), sfile)); 100 get_process_helpers_path(const atf_tc_t *tc, const bool is_detail, argument 104 atf_tc_get_config_var(tc, "srcdir"), 126 run_h_tc(atf_tc_t *tc, const char *outname, const char *errname, argument 137 struct run_h_tc_data data = { tc, resname };
|
H A D | tp_main.c | 42 #include "atf-c/tc.h" 264 const atf_tc_t *tc = *tcsptr; local 265 char **vars = atf_tc_get_md_vars(tc);
|
H A D | process_test.c | 444 ATF_TC_HEAD(stream_init_capture, tc) 446 atf_tc_set_md_var(tc, "descr", "Tests the " 449 ATF_TC_BODY(stream_init_capture, tc) 462 ATF_TC_HEAD(stream_init_connect, tc) 464 atf_tc_set_md_var(tc, "descr", "Tests the " 467 ATF_TC_BODY(stream_init_connect, tc) 480 ATF_TC_HEAD(stream_init_inherit, tc) 482 atf_tc_set_md_var(tc, "descr", "Tests the " 485 ATF_TC_BODY(stream_init_inherit, tc) 498 ATF_TC_HEAD(stream_init_redirect_fd, tc) 863 do_exec(const atf_tc_t *tc, const char *helper_name, atf_process_status_t *s, void (*prehook)(void)) argument [all...] |
/bind-9.6-ESV-R11/lib/dns/tests/ |
H A D | dbiterator_test.c | 97 test_create(const atf_tc_t *tc) { argument 105 result = setup_db(atf_tc_get_md_var(tc, "X-filename"), 118 ATF_TC_HEAD(create, tc) { 119 atf_tc_set_md_var(tc, "descr", "create a database iterator"); 120 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data"); 122 ATF_TC_BODY(create, tc) { 123 test_create(tc); 127 ATF_TC_HEAD(create_nsec3, tc) { 128 atf_tc_set_md_var(tc, "descr", "create a database iterator (NSEC3)"); 129 atf_tc_set_md_var(tc, " 137 test_walk(const atf_tc_t *tc) argument 200 test_reverse(const atf_tc_t *tc) argument 261 test_seek(const atf_tc_t *tc) argument 336 test_seek_empty(const atf_tc_t *tc) argument 393 test_seek_nx(const atf_tc_t *tc) argument [all...] |
/bind-9.6-ESV-R11/unit/atf-src/atf-run/ |
H A D | test_program_test.cpp | 52 get_helper(const atf::tests::tc& tc, const char* name) argument 54 return atf::fs::path(tc.get_config_var("srcdir")) / name; 101 check_match(const atf::tests::tc& tc, const std::string& str, argument 112 tc.fail("Constructed string differs from the expected one"); 630 expss << "tc-start: " << ts_regex << "brokentc\n"; 654 expss << "tc-start: " << ts_regex << "passtc\n"; 658 expss << "tc-end: " << ts_regex << "passtc, passed\n"; 662 expss << "tc [all...] |