Searched defs:tc (Results 1 - 20 of 20) sorted by relevance

/bind-9.11.3/unit/atf-src/atf-c/
H A Dtc_test.c26 #include "atf-c/tc.h"
39 ATF_TC_HEAD(empty, tc)
41 if (tc != NULL) {}
43 ATF_TC_BODY(empty, tc)
47 ATF_TC_HEAD(test_var, tc)
49 atf_tc_set_md_var(tc, "test-var", "Test text");
57 ATF_TC_HEAD(init, tc)
59 atf_tc_set_md_var(tc, "descr", "Tests the atf_tc_init function");
63 atf_tc_t tc; local
65 RE(atf_tc_init(&tc, "test
85 atf_tc_t tc; local
118 atf_tc_t tc; local
138 atf_tc_t tc; local
[all...]
H A Dtp.c37 #include "atf-c/tc.h"
52 const atf_tc_t *tc; local
55 tc = NULL;
60 tc = tc2;
64 return tc;
109 atf_tc_t *tc = atf_list_iter_data(iter); local
110 atf_tc_fini(tc);
130 const atf_tc_t *tc = find_tc(tp, id); local
131 return tc != NULL;
137 const atf_tc_t *tc local
176 atf_tp_add_tc(atf_tp_t *tp, atf_tc_t *tc) argument
196 const atf_tc_t *tc; local
207 const atf_tc_t *tc; local
[all...]
H A Dcheck_test.c48 do_exec(const atf_tc_t *tc, const char *helper_name, atf_check_result_t *r) argument
53 get_process_helpers_path(tc, false, &process_helpers);
66 do_exec_with_arg(const atf_tc_t *tc, const char *helper_name, const char *arg, argument
72 get_process_helpers_path(tc, false, &process_helpers);
99 ATF_TC_HEAD(h_build_c_o_ok, tc)
101 atf_tc_set_md_var(tc, "descr", "Helper test case for build_c_o");
103 ATF_TC_BODY(h_build_c_o_ok, tc)
117 ATF_TC_HEAD(h_build_c_o_fail, tc)
119 atf_tc_set_md_var(tc, "descr", "Helper test case for build_c_o");
121 ATF_TC_BODY(h_build_c_o_fail, tc)
220 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 Dmacros_test.c82 atf_tc_t tc; local
85 RE(atf_tc_init(&tc, name, head, body, NULL, config));
86 run_h_tc(&tc, "output", "error", "result");
87 atf_tc_fini(&tc);
95 ATF_TC_HEAD(h_ ## id, tc) \
97 atf_tc_set_md_var(tc, "descr", "Helper test case"); \
99 ATF_TC_BODY(h_ ## id, tc) \
234 ATF_TC_HEAD(check_errno, tc)
236 atf_tc_set_md_var(tc, "descr", "Tests the ATF_CHECK_ERRNO macro");
238 ATF_TC_BODY(check_errno, tc)
[all...]
H A Dtc.c26 #include "atf-c/tc.h"
63 const atf_tc_t *tc; member in struct:context
106 context_init(struct context *ctx, const atf_tc_t *tc, const char *resfile) argument
108 ctx->tc = tc;
545 atf_tc_init(atf_tc_t *tc, const char *ident, atf_tc_head_t head, argument
551 tc->pimpl = malloc(sizeof(struct atf_tc_impl));
552 if (tc->pimpl == NULL) {
557 tc->pimpl->m_ident = ident;
558 tc
602 atf_tc_init_pack(atf_tc_t *tc, const atf_tc_pack_t *pack, const char *const *config) argument
610 atf_tc_fini(atf_tc_t *tc) argument
623 atf_tc_get_ident(const atf_tc_t *tc) argument
629 atf_tc_get_config_var(const atf_tc_t *tc, const char *name) argument
643 atf_tc_get_config_var_wd(const atf_tc_t *tc, const char *name, const char *defval) argument
657 atf_tc_get_config_var_as_bool(const atf_tc_t *tc, const char *name) argument
675 atf_tc_get_config_var_as_bool_wd(const atf_tc_t *tc, const char *name, const bool defval) argument
689 atf_tc_get_config_var_as_long(const atf_tc_t *tc, const char *name) argument
707 atf_tc_get_config_var_as_long_wd(const atf_tc_t *tc, const char *name, const long defval) argument
721 atf_tc_get_md_var(const atf_tc_t *tc, const char *name) argument
735 atf_tc_get_md_vars(const atf_tc_t *tc) argument
741 atf_tc_has_config_var(const atf_tc_t *tc, const char *name) argument
751 atf_tc_has_md_var(const atf_tc_t *tc, const char *name) argument
765 atf_tc_set_md_var(atf_tc_t *tc, const char *name, const char *fmt, ...) argument
1006 atf_tc_run(const atf_tc_t *tc, const char *resfile) argument
1034 atf_tc_cleanup(const atf_tc_t *tc) argument
[all...]
/bind-9.11.3/unit/atf-src/atf-c++/detail/
H A Dtest_helpers.cpp65 build_check_cxx_o_srcdir(const atf::tests::tc& tc, const char* sfile) argument
68 atf::fs::path(tc.get_config_var("srcdir")) / sfile;
87 get_process_helpers_path(const atf::tests::tc& tc, bool is_detail) argument
92 return atf::fs::path(tc.get_config_var("srcdir")) /
95 return atf::fs::path(tc.get_config_var("srcdir")) /
H A Dtest_helpers.hpp67 class tc;
73 bool build_check_cxx_o_srcdir(const atf::tests::tc&, const char*);
74 atf::fs::path get_process_helpers_path(const atf::tests::tc&, bool);
89 TestCase tc; local
90 tc.init(data->m_config);
91 tc.run("result");
H A Dprocess_test.cpp59 exec_process_helpers(const atf::tests::tc& tc, const char* helper_name) argument
64 argv.push_back(get_process_helpers_path(tc, true).leaf_name());
67 return exec(get_process_helpers_path(tc, true),
/bind-9.11.3/unit/atf-src/atf-c++/
H A Dtests.hpp66 // The "tc" class.
71 class tc { class in namespace:atf::tests
73 tc(const tc&);
74 tc& operator=(const tc&);
88 tc(const std::string&, const bool);
89 virtual ~tc(void);
H A Dtests_test.cpp64 check_equal(const atf::tests::tc& tc, const std::string& str, argument
74 tc.fail("Constructed string differs from the expected one");
H A Dcheck_test.cpp56 do_exec(const atf::tests::tc* tc, const char* helper_name) argument
59 argv.push_back(get_process_helpers_path(*tc, false).str());
69 do_exec(const atf::tests::tc* tc, const char* helper_name, const char *carg2) argument
72 argv.push_back(get_process_helpers_path(*tc, false).str());
H A Dtests.cpp56 #include "atf-c/tc.h"
142 // The "tc" class.
145 static std::map< atf_tc_t*, impl::tc* > wraps;
146 static std::map< const atf_tc_t*, const impl::tc* > cwraps;
166 wrap_head(atf_tc_t *tc) argument
168 std::map< atf_tc_t*, impl::tc* >::iterator iter = wraps.find(tc);
174 wrap_body(const atf_tc_t *tc) argument
176 std::map< const atf_tc_t*, const impl::tc* >::const_iterator iter =
177 cwraps.find(tc);
183 wrap_cleanup(const atf_tc_t *tc) argument
192 impl::tc::tc(const std::string& ident, const bool has_cleanup) : function in class:impl::tc
458 impl::tc* tc = *iter; local
498 impl::tc* tc = *iter; local
531 impl::tc* tc = find_tc(tcs, fields.first); local
630 impl::tc* tc = *iter; local
[all...]
/bind-9.11.3/lib/dns/tests/
H A Ddbdiff_test.c36 test_create(const atf_tc_t *tc, dns_db_t **old, dns_db_t **newdb) { argument
40 atf_tc_get_md_var(tc, "X-old"));
44 atf_tc_get_md_var(tc, "X-new"));
53 ATF_TC_HEAD(diffx_same, tc) {
54 atf_tc_set_md_var(tc, "descr", "dns_db_diffx of identical content");
55 atf_tc_set_md_var(tc, "X-old", "testdata/diff/zone1.data");
56 atf_tc_set_md_var(tc, "X-new", "testdata/diff/zone1.data"); }
57 ATF_TC_BODY(diffx_same, tc) {
65 test_create(tc, &olddb, &newdb);
81 ATF_TC_HEAD(diffx_add, tc) {
[all...]
H A Ddbiterator_test.c48 test_create(const atf_tc_t *tc) { argument
57 atf_tc_get_md_var(tc, "X-filename"));
69 ATF_TC_HEAD(create, tc) {
70 atf_tc_set_md_var(tc, "descr", "create a database iterator");
71 atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
73 ATF_TC_BODY(create, tc) {
74 test_create(tc);
78 ATF_TC_HEAD(create_nsec3, tc) {
79 atf_tc_set_md_var(tc, "descr", "create a database iterator (NSEC3)");
80 atf_tc_set_md_var(tc, "
88 test_walk(const atf_tc_t *tc) argument
151 test_reverse(const atf_tc_t *tc) argument
212 test_seek(const atf_tc_t *tc) argument
287 test_seek_empty(const atf_tc_t *tc) argument
344 test_seek_nx(const atf_tc_t *tc) argument
[all...]
/bind-9.11.3/unit/atf-src/tools/
H A Dui_test.cpp43 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 Dprocess_test.cpp62 exec_process_helpers(const atf::tests::tc& tc, const char* helper_name) argument
66 const tools::fs::path helpers = tools::fs::path(tc.get_config_var("srcdir")) /
H A Dtest_program_test.cpp53 get_helper(const atf::tests::tc& tc, const char* name) argument
55 return tools::fs::path(tc.get_config_var("srcdir")) / name;
102 check_match(const atf::tests::tc& tc, const std::string& str, argument
113 tc.fail("Constructed string differs from the expected one");
633 expss << "tc-start: " << ts_regex << "brokentc\n";
657 expss << "tc-start: " << ts_regex << "passtc\n";
661 expss << "tc-end: " << ts_regex << "passtc, passed\n";
665 expss << "tc
[all...]
/bind-9.11.3/unit/atf-src/atf-c/detail/
H A Dtest_helpers.c66 build_check_c_o_srcdir(const atf_tc_t *tc, const char *sfile) argument
71 atf_tc_get_config_var(tc, "srcdir"), sfile));
96 get_process_helpers_path(const atf_tc_t *tc, const bool is_detail, argument
100 atf_tc_get_config_var(tc, "srcdir"),
122 run_h_tc(atf_tc_t *tc, const char *outname, const char *errname, argument
133 struct run_h_tc_data data = { tc, resname };
H A Dtp_main.c43 #include "atf-c/tc.h"
259 const atf_tc_t *tc = *tcsptr; local
260 char **vars = atf_tc_get_md_vars(tc);
H A Dprocess_test.c440 ATF_TC_HEAD(stream_init_capture, tc)
442 atf_tc_set_md_var(tc, "descr", "Tests the "
445 ATF_TC_BODY(stream_init_capture, tc)
458 ATF_TC_HEAD(stream_init_connect, tc)
460 atf_tc_set_md_var(tc, "descr", "Tests the "
463 ATF_TC_BODY(stream_init_connect, tc)
476 ATF_TC_HEAD(stream_init_inherit, tc)
478 atf_tc_set_md_var(tc, "descr", "Tests the "
481 ATF_TC_BODY(stream_init_inherit, tc)
494 ATF_TC_HEAD(stream_init_redirect_fd, tc)
859 do_exec(const atf_tc_t *tc, const char *helper_name, atf_process_status_t *s, void (*prehook)(void)) argument
[all...]

Completed in 46 milliseconds