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

12345

/bind-9.11.3/unit/atf-src/atf-c/
H A Dunused_test.c29 ATF_TC_HEAD(this_is_used, tc)
31 atf_tc_set_md_var(tc, "descr", "A test case that is not referenced");
33 ATF_TC_BODY(this_is_used, tc)
38 ATF_TC_HEAD(this_is_unused, tc)
40 atf_tc_set_md_var(tc, "descr", "A test case that is referenced");
42 ATF_TC_BODY(this_is_unused, tc)
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 Dmacros_h_test.c83 ATF_TC_HEAD(TEST_MACRO_1, tc) { if (tc != NULL) {} }
84 ATF_TC_BODY(TEST_MACRO_1, tc) { if (tc != NULL) {} }
90 ATF_TC_HEAD(TEST_MACRO_2, tc) { if (tc != NULL) {} }
91 ATF_TC_BODY(TEST_MACRO_2, tc) { if (tc != NULL) {} }
92 ATF_TC_CLEANUP(TEST_MACRO_2, tc) { if (tc !
[all...]
H A Dmacros.h33 #include <atf-c/tc.h>
37 #define ATF_TC_NAME(tc) \
38 (atfu_ ## tc ## _tc)
40 #define ATF_TC_PACK_NAME(tc) \
41 (atfu_ ## tc ## _tc_pack)
43 #define ATF_TC_WITHOUT_HEAD(tc) \
44 static void atfu_ ## tc ## _body(const atf_tc_t *); \
45 static atf_tc_t atfu_ ## tc ## _tc; \
46 static atf_tc_pack_t atfu_ ## tc ## _tc_pack = { \
47 .m_ident = #tc, \
[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 Derror_test.c54 ATF_TC_HEAD(error_new, tc)
56 atf_tc_set_md_var(tc, "descr", "Checks the construction of an error "
59 ATF_TC_BODY(error_new, tc)
80 ATF_TC_HEAD(error_new_wo_memory, tc)
82 atf_tc_set_md_var(tc, "descr", "Checks that an unavailable memory error "
87 ATF_TC_BODY(error_new_wo_memory, tc)
101 ATF_TC_HEAD(no_error, tc)
103 atf_tc_set_md_var(tc, "descr", "Checks that constructing a non-error "
106 ATF_TC_BODY(no_error, tc)
115 ATF_TC_HEAD(is_error, tc)
[all...]
H A Dtp_test.c34 ATF_TC_HEAD(getopt, tc)
36 atf_tc_set_md_var(tc, "descr", "Checks if getopt(3) global state is "
40 ATF_TC_BODY(getopt, tc)
/bind-9.11.3/unit/atf-src/tools/
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.11.3/unit/atf-src/bootstrap/
H A Dh_tp_basic_c.c31 ATF_TC_HEAD(pass, tc)
33 atf_tc_set_md_var(tc, "descr", "An empty test case that always passes");
35 ATF_TC_BODY(pass, tc)
41 ATF_TC_HEAD(fail, tc)
43 atf_tc_set_md_var(tc, "descr", "An empty test case that always fails");
45 ATF_TC_BODY(fail, tc)
51 ATF_TC_HEAD(skip, tc)
53 atf_tc_set_md_var(tc, "descr", "An empty test case that is always "
56 ATF_TC_BODY(skip, tc)
62 ATF_TC_HEAD(default, tc)
[all...]
/bind-9.11.3/unit/atf-src/test-programs/
H A Dc_helpers.c72 ATF_TC_HEAD(cleanup_pass, tc)
74 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_cleanup test "
77 ATF_TC_BODY(cleanup_pass, tc)
79 touch(atf_tc_get_config_var(tc, "tmpfile"));
81 ATF_TC_CLEANUP(cleanup_pass, tc)
83 if (atf_tc_get_config_var_as_bool(tc, "cleanup"))
84 safe_remove(atf_tc_get_config_var(tc, "tmpfile"));
88 ATF_TC_HEAD(cleanup_fail, tc)
90 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_cleanup test "
93 ATF_TC_BODY(cleanup_fail, tc)
[all...]
/bind-9.11.3/unit/atf-src/atf-c/detail/
H A Dtest_helpers.h37 #include <atf-c/tc.h>
47 ATF_TC_HEAD(name, tc) \
49 atf_tc_set_md_var(tc, "descr", "Tests that the " hdrname " file can " \
52 ATF_TC_BODY(name, tc) \
59 ATF_TC_HEAD(name, tc) \
61 atf_tc_set_md_var(tc, "descr", descr); \
63 ATF_TC_BODY(name, tc) \
65 if (!build_check_c_o_srcdir(tc, sfile)) \
H A Denv_test.c41 ATF_TC_HEAD(has, tc)
43 atf_tc_set_md_var(tc, "descr", "Tests the atf_env_has function");
45 ATF_TC_BODY(has, tc)
52 ATF_TC_HEAD(get, tc)
54 atf_tc_set_md_var(tc, "descr", "Tests the atf_env_get function");
56 ATF_TC_BODY(get, tc)
68 ATF_TC_HEAD(get_with_default, tc)
70 atf_tc_set_md_var(tc, "descr", "Tests the atf_env_get_with_default "
73 ATF_TC_BODY(get_with_default, tc)
87 ATF_TC_HEAD(set, tc)
[all...]
H A Duser_test.c44 ATF_TC_HEAD(euid, tc)
46 atf_tc_set_md_var(tc, "descr", "Tests the atf_user_euid function");
48 ATF_TC_BODY(euid, tc)
54 ATF_TC_HEAD(is_member_of_group, tc)
56 atf_tc_set_md_var(tc, "descr", "Tests the atf_user_is_member_of_group "
59 ATF_TC_BODY(is_member_of_group, tc)
108 ATF_TC_HEAD(is_root, tc)
110 atf_tc_set_md_var(tc, "descr", "Tests the atf_user_is_root function");
112 ATF_TC_BODY(is_root, tc)
121 ATF_TC_HEAD(is_unprivileged, tc)
[all...]
/bind-9.11.3/lib/isc/tests/
H A Dsafe_test.c24 ATF_TC_HEAD(isc_safe_memequal, tc) {
25 atf_tc_set_md_var(tc, "descr", "safe memequal()");
27 ATF_TC_BODY(isc_safe_memequal, tc) {
28 UNUSED(tc);
41 ATF_TC_HEAD(isc_safe_memcompare, tc) {
42 atf_tc_set_md_var(tc, "descr", "safe memcompare()");
44 ATF_TC_BODY(isc_safe_memcompare, tc) {
45 UNUSED(tc);
59 ATF_TC_HEAD(isc_safe_memwipe, tc) {
60 atf_tc_set_md_var(tc, "desc
[all...]
H A Dresult_test.c18 ATF_TC_HEAD(isc_result_toid, tc) {
19 atf_tc_set_md_var(tc, "descr", "convert result to identifier string");
21 ATF_TC_BODY(isc_result_toid, tc) {
32 ATF_TC_HEAD(isc_result_totext, tc) {
33 atf_tc_set_md_var(tc, "descr", "convert result to description string");
35 ATF_TC_BODY(isc_result_totext, tc) {
H A Dhash_test.c83 ATF_TC_HEAD(isc_sha1, tc) {
84 atf_tc_set_md_var(tc, "descr", "sha1 examples from RFC4634");
86 ATF_TC_BODY(isc_sha1, tc) {
90 UNUSED(tc);
212 ATF_TC_HEAD(isc_sha224, tc) {
213 atf_tc_set_md_var(tc, "descr", "sha224 examples from RFC4634");
215 ATF_TC_BODY(isc_sha224, tc) {
219 UNUSED(tc);
345 ATF_TC_HEAD(isc_sha256, tc) {
346 atf_tc_set_md_var(tc, "desc
[all...]
H A Daes_test.c78 ATF_TC_HEAD(isc_aes128, tc) {
79 atf_tc_set_md_var(tc, "descr", "AES 128 test vectors");
81 ATF_TC_BODY(isc_aes128, tc) {
82 UNUSED(tc);
140 ATF_TC_HEAD(isc_aes192, tc) {
141 atf_tc_set_md_var(tc, "descr", "AES 192 test vectors");
143 ATF_TC_BODY(isc_aes192, tc) {
144 UNUSED(tc);
202 ATF_TC_HEAD(isc_aes256, tc) {
203 atf_tc_set_md_var(tc, "desc
[all...]
/bind-9.11.3/lib/dns/tests/
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...]
H A Dupdate_test.c48 ATF_TC_HEAD(increment, tc) {
49 atf_tc_set_md_var(tc, "descr", "simple increment by 1");
51 ATF_TC_BODY(increment, tc) {
56 UNUSED(tc);
69 ATF_TC_HEAD(increment_past_zero, tc) {
70 atf_tc_set_md_var(tc, "descr", "increment past zero, ffffffff -> 1");
72 ATF_TC_BODY(increment_past_zero, tc) {
77 UNUSED(tc);
89 ATF_TC_HEAD(past_to_unix, tc) {
90 atf_tc_set_md_var(tc, "desc
[all...]
H A Ddbversion_test.c115 ATF_TC_HEAD(attachversion, tc) {
116 atf_tc_set_md_var(tc, "descr", "check dns_db_attachversion passes with matching db/verison");
118 ATF_TC_BODY(attachversion, tc) {
120 UNUSED(tc);
126 ATF_TC_HEAD(attachversion_bad, tc) {
127 atf_tc_set_md_var(tc, "descr", "check dns_db_attachversion aborts with mis-matching db/verison");
129 ATF_TC_BODY(attachversion_bad, tc) {
131 UNUSED(tc);
156 ATF_TC_HEAD(closeversion, tc) {
157 atf_tc_set_md_var(tc, "desc
[all...]
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 Dmaster_test.c144 ATF_TC_HEAD(load, tc) {
145 atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() loads a "
148 ATF_TC_BODY(load, tc) {
151 UNUSED(tc);
166 ATF_TC_HEAD(unexpected, tc) {
167 atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() returns "
171 ATF_TC_BODY(unexpected, tc) {
174 UNUSED(tc);
189 ATF_TC_HEAD(noowner, tc) {
190 atf_tc_set_md_var(tc, "desc
[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")) /

Completed in 121 milliseconds

12345