Searched refs:tc (Results 1 - 25 of 60) sorted by relevance

123

/bind-9.6-ESV-R11/unit/atf-src/atf-c/
H A Dunused_test.c33 ATF_TC_HEAD(this_is_used, tc)
35 atf_tc_set_md_var(tc, "descr", "A test case that is not referenced");
37 ATF_TC_BODY(this_is_used, tc)
42 ATF_TC_HEAD(this_is_unused, tc)
44 atf_tc_set_md_var(tc, "descr", "A test case that is referenced");
46 ATF_TC_BODY(this_is_unused, tc)
H A Dtc_test.c41 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 Dmacros_h_test.c87 ATF_TC_HEAD(TEST_MACRO_1, tc) { if (tc != NULL) {} }
88 ATF_TC_BODY(TEST_MACRO_1, tc) { if (tc != NULL) {} }
93 ATF_TC_HEAD(TEST_MACRO_2, tc) { if (tc != NULL) {} }
94 ATF_TC_BODY(TEST_MACRO_2, tc) { if (tc != NULL) {} }
95 ATF_TC_CLEANUP(TEST_MACRO_2, tc) { if (tc !
[all...]
H A Dmacros.h37 #include <atf-c/tc.h>
41 #define ATF_TC_NAME(tc) \
42 (atfu_ ## tc ## _tc)
44 #define ATF_TC_PACK_NAME(tc) \
45 (atfu_ ## tc ## _tc_pack)
47 #define ATF_TC_WITHOUT_HEAD(tc) \
48 static void atfu_ ## tc ## _body(const atf_tc_t *); \
49 static atf_tc_t atfu_ ## tc ## _tc; \
50 static atf_tc_pack_t atfu_ ## tc ## _tc_pack = { \
51 .m_ident = #tc, \
[all...]
H A Dtp.c36 #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 Dcheck_test.c53 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 Derror_test.c59 ATF_TC_HEAD(error_new, tc)
61 atf_tc_set_md_var(tc, "descr", "Checks the construction of an error "
64 ATF_TC_BODY(error_new, tc)
85 ATF_TC_HEAD(error_new_wo_memory, tc)
87 atf_tc_set_md_var(tc, "descr", "Checks that an unavailable memory error "
92 ATF_TC_BODY(error_new_wo_memory, tc)
106 ATF_TC_HEAD(no_error, tc)
108 atf_tc_set_md_var(tc, "descr", "Checks that constructing a non-error "
111 ATF_TC_BODY(no_error, tc)
120 ATF_TC_HEAD(is_error, tc)
[all...]
H A Dtc.c45 #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-run/
H A Dseveral_tcs_helper.c33 ATF_TC_HEAD(first, tc)
35 atf_tc_set_md_var(tc, "descr", "Description 1");
37 ATF_TC_BODY(first, tc)
42 ATF_TC_HEAD(second, tc)
44 atf_tc_set_md_var(tc, "descr", "Description 2");
45 atf_tc_set_md_var(tc, "timeout", "500");
46 atf_tc_set_md_var(tc, "X-property", "Custom property");
48 ATF_TC_BODY(second, tc)
51 ATF_TC_CLEANUP(second, tc)
56 ATF_TC_BODY(third, tc)
[all...]
H A Dexpect_helpers.c37 ATF_TC_BODY(pass_and_pass, tc)
43 ATF_TC_BODY(pass_but_fail_requirement, tc)
50 ATF_TC_BODY(pass_but_fail_check, tc)
57 ATF_TC_BODY(fail_and_fail_requirement, tc)
65 ATF_TC_BODY(fail_and_fail_check, tc)
77 ATF_TC_BODY(fail_but_pass, tc)
92 ATF_TC_BODY(exit_any_and_exit, tc)
99 ATF_TC_BODY(exit_code_and_exit, tc)
106 ATF_TC_BODY(exit_but_pass, tc)
112 ATF_TC_BODY(signal_any_and_signal, tc)
[all...]
/bind-9.6-ESV-R11/unit/atf-src/bootstrap/
H A Dh_tp_basic_c.c35 ATF_TC_HEAD(pass, tc)
37 atf_tc_set_md_var(tc, "descr", "An empty test case that always passes");
39 ATF_TC_BODY(pass, tc)
45 ATF_TC_HEAD(fail, tc)
47 atf_tc_set_md_var(tc, "descr", "An empty test case that always fails");
49 ATF_TC_BODY(fail, tc)
55 ATF_TC_HEAD(skip, tc)
57 atf_tc_set_md_var(tc, "descr", "An empty test case that is always "
60 ATF_TC_BODY(skip, tc)
66 ATF_TC_HEAD(default, tc)
[all...]
/bind-9.6-ESV-R11/unit/atf-src/test-programs/
H A Dc_helpers.c77 ATF_TC_HEAD(cleanup_pass, tc)
79 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_cleanup test "
82 ATF_TC_BODY(cleanup_pass, tc)
84 touch(atf_tc_get_config_var(tc, "tmpfile"));
86 ATF_TC_CLEANUP(cleanup_pass, tc)
88 if (atf_tc_get_config_var_as_bool(tc, "cleanup"))
89 safe_remove(atf_tc_get_config_var(tc, "tmpfile"));
93 ATF_TC_HEAD(cleanup_fail, tc)
95 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_cleanup test "
98 ATF_TC_BODY(cleanup_fail, tc)
[all...]
/bind-9.6-ESV-R11/unit/atf-src/atf-c/detail/
H A Denv_test.c44 ATF_TC_HEAD(has, tc)
46 atf_tc_set_md_var(tc, "descr", "Tests the atf_env_has function");
48 ATF_TC_BODY(has, tc)
55 ATF_TC_HEAD(get, tc)
57 atf_tc_set_md_var(tc, "descr", "Tests the atf_env_get function");
59 ATF_TC_BODY(get, tc)
71 ATF_TC_HEAD(set, tc)
73 atf_tc_set_md_var(tc, "descr", "Tests the atf_env_set function");
75 ATF_TC_BODY(set, tc)
93 ATF_TC_HEAD(unset, tc)
[all...]
H A Dtest_helpers.h48 ATF_TC_HEAD(name, tc) \
50 atf_tc_set_md_var(tc, "descr", "Tests that the " hdrname " file can " \
53 ATF_TC_BODY(name, tc) \
60 ATF_TC_HEAD(name, tc) \
62 atf_tc_set_md_var(tc, "descr", descr); \
64 ATF_TC_BODY(name, tc) \
66 build_check_c_o(tc, sfile, failmsg, true); \
71 ATF_TC_HEAD(name, tc) \
73 atf_tc_set_md_var(tc, "descr", descr); \
75 ATF_TC_BODY(name, tc) \
[all...]
H A Duser_test.c47 ATF_TC_HEAD(euid, tc)
49 atf_tc_set_md_var(tc, "descr", "Tests the atf_user_euid function");
51 ATF_TC_BODY(euid, tc)
57 ATF_TC_HEAD(is_member_of_group, tc)
59 atf_tc_set_md_var(tc, "descr", "Tests the atf_user_is_member_of_group "
62 ATF_TC_BODY(is_member_of_group, tc)
111 ATF_TC_HEAD(is_root, tc)
113 atf_tc_set_md_var(tc, "descr", "Tests the atf_user_is_root function");
115 ATF_TC_BODY(is_root, tc)
124 ATF_TC_HEAD(is_unprivileged, tc)
[all...]
H A Ddynstr_test.c50 ATF_TC_HEAD(init, tc)
52 atf_tc_set_md_var(tc, "descr", "Checks the empty constructor");
54 ATF_TC_BODY(init, tc)
76 ATF_TC_HEAD(init_ap, tc)
78 atf_tc_set_md_var(tc, "descr", "Checks the formatted constructor using "
81 ATF_TC_BODY(init_ap, tc)
106 ATF_TC_HEAD(init_fmt, tc)
108 atf_tc_set_md_var(tc, "descr", "Checks the formatted constructor using "
111 ATF_TC_BODY(init_fmt, tc)
137 ATF_TC_HEAD(init_raw, tc)
[all...]
/bind-9.6-ESV-R11/lib/dns/tests/
H A Ddbiterator_test.c97 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...]
H A Ddbversion_test.c124 ATF_TC_HEAD(attachversion, tc) {
125 atf_tc_set_md_var(tc, "descr", "check dns_db_attachversion passes with matching db/verison");
127 ATF_TC_BODY(attachversion, tc) {
129 UNUSED(tc);
135 ATF_TC_HEAD(attachversion_bad, tc) {
136 atf_tc_set_md_var(tc, "descr", "check dns_db_attachversion aborts with mis-matching db/verison");
138 ATF_TC_BODY(attachversion_bad, tc) {
140 UNUSED(tc);
165 ATF_TC_HEAD(closeversion, tc) {
166 atf_tc_set_md_var(tc, "desc
[all...]
H A Dmaster_test.c119 ATF_TC_HEAD(load, tc) {
120 atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() loads a "
123 ATF_TC_BODY(load, tc) {
126 UNUSED(tc);
140 ATF_TC_HEAD(unexpected, tc) {
141 atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() returns "
145 ATF_TC_BODY(unexpected, tc) {
148 UNUSED(tc);
162 ATF_TC_HEAD(noowner, tc) {
163 atf_tc_set_md_var(tc, "desc
[all...]
H A Dnsec3_test.c63 ATF_TC_HEAD(max_iterations, tc) {
64 atf_tc_set_md_var(tc, "descr", "check that appropriate max iterations "
67 ATF_TC_BODY(max_iterations, tc) {
69 UNUSED(tc);
H A Dtime_test.c39 ATF_TC_HEAD(epoch_minus_one, tc) {
40 atf_tc_set_md_var(tc, "descr", "0xffffffff <-> 19691231235959");
42 ATF_TC_BODY(epoch_minus_one, tc) {
50 UNUSED(tc);
67 ATF_TC_HEAD(epoch, tc) {
68 atf_tc_set_md_var(tc, "descr", "0x00000000 <-> 19700101000000");
70 ATF_TC_BODY(epoch, tc) {
78 UNUSED(tc);
95 ATF_TC_HEAD(half_maxint, tc) {
96 atf_tc_set_md_var(tc, "desc
[all...]
/bind-9.6-ESV-R11/lib/isc/tests/
H A Dsafe_test.c32 ATF_TC_HEAD(isc_safe_memcmp, tc) {
33 atf_tc_set_md_var(tc, "descr", "safe memcmp()");
35 ATF_TC_BODY(isc_safe_memcmp, tc) {
36 UNUSED(tc);
H A Dparse_test.c38 ATF_TC_HEAD(parse_overflow, tc) {
39 atf_tc_set_md_var(tc, "descr", "Check for 32 bit overflow");
41 ATF_TC_BODY(parse_overflow, tc) {
44 UNUSED(tc);
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/
H A Dmacros.hpp45 class atfu_tc_ ## name : public atf::tests::tc { \
51 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, false) {} \
56 class atfu_tc_ ## name : public atf::tests::tc { \
63 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, false) {} \
68 class atfu_tc_ ## name : public atf::tests::tc { \
76 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, true) {} \
96 #define ATF_FAIL(reason) atf::tests::tc::fail(reason)
98 #define ATF_SKIP(reason) atf::tests::tc::skip(reason)
100 #define ATF_PASS() atf::tests::tc::pass()
107 atf::tests::tc
[all...]
H A Dtests.cpp54 #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...]

Completed in 57 milliseconds

123