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

1234567891011>>

/freebsd-head/contrib/atf/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...]
/freebsd-head/tools/tools/termcap/
H A Dtermcap.pl38 the size of two similar termcap entries with the "tc" option.
63 my $tc = "";
68 $tc .= $l;
71 $tc =~ s/:\\\s+:/:/g;
73 my @a = split(/:/, $tc);
77 $tcs{$b[0]} = $tc;
79 $tcs{$a[0]} = $tc;
81 if (length($tc) - length($a[0]) > 1023) {
82 print "$a[0] has a length of ", length($tc) - length($a[0]), "\n";
85 $tc
[all...]
/freebsd-head/usr.bin/indent/tests/
H A Dfunctional_test.sh33 local tc=${1}; shift
39 atf_check cp ${SRCDIR}/${tc}* .
43 local out_file="${tc}.stdout"
48 ${tc}.stdout
51 local profile_file="${tc}.pro"
59 sed -e '/\$FreeBSD.*\$/d' ${tc} > input_file.parsed
60 atf_check -s exit:${tc##*.} ${out_flag} ${indent} ${profile_flag} < input_file.parsed
65 local tc=${1}
68 case "${tc%.*}" in
71 for word in ${tc
[all...]
/freebsd-head/contrib/atf/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...]
/freebsd-head/contrib/netbsd-tests/lib/libc/gen/
H A Dt_syslog.c37 ATF_TC_HEAD(syslog_pthread, tc)
40 atf_tc_set_md_var(tc, "descr", "Test that syslog(3) "
42 atf_tc_set_md_var(tc, "timeout", "2");
45 ATF_TC_BODY(syslog_pthread, tc)
/freebsd-head/contrib/netbsd-tests/lib/libm/
H A Dt_ceil.c49 ATF_TC_HEAD(ceil_basic, tc)
51 atf_tc_set_md_var(tc, "descr", "A basic test of ceil(3)");
54 ATF_TC_BODY(ceil_basic, tc)
64 ATF_TC_HEAD(ceil_nan, tc)
66 atf_tc_set_md_var(tc, "descr", "Test ceil(NaN) == NaN");
69 ATF_TC_BODY(ceil_nan, tc)
77 ATF_TC_HEAD(ceil_inf_neg, tc)
79 atf_tc_set_md_var(tc, "descr", "Test ceil(-Inf) == -Inf");
82 ATF_TC_BODY(ceil_inf_neg, tc)
92 ATF_TC_HEAD(ceil_inf_pos, tc)
[all...]
H A Dt_log.c44 ATF_TC_HEAD(log10_base, tc)
46 atf_tc_set_md_var(tc, "descr", "Test log10(10) == 1");
49 ATF_TC_BODY(log10_base, tc)
55 ATF_TC_HEAD(log10_nan, tc)
57 atf_tc_set_md_var(tc, "descr", "Test log10(NaN) == NaN");
60 ATF_TC_BODY(log10_nan, tc)
69 ATF_TC_HEAD(log10_inf_neg, tc)
71 atf_tc_set_md_var(tc, "descr", "Test log10(-Inf) == NaN");
74 ATF_TC_BODY(log10_inf_neg, tc)
83 ATF_TC_HEAD(log10_inf_pos, tc)
[all...]
H A Dt_cos.c61 ATF_TC_HEAD(cos_angles, tc)
63 atf_tc_set_md_var(tc, "descr", "Test some selected angles");
66 ATF_TC_BODY(cos_angles, tc)
80 ATF_TC_HEAD(cos_nan, tc)
82 atf_tc_set_md_var(tc, "descr", "Test cos(NaN) == NaN");
85 ATF_TC_BODY(cos_nan, tc)
94 ATF_TC_HEAD(cos_inf_neg, tc)
96 atf_tc_set_md_var(tc, "descr", "Test cos(-Inf) == NaN");
99 ATF_TC_BODY(cos_inf_neg, tc)
107 ATF_TC_HEAD(cos_inf_pos, tc)
[all...]
H A Dt_cosh.c60 ATF_TC_HEAD(cosh_inrange, tc)
62 atf_tc_set_md_var(tc, "descr", "cosh(x) for some values");
65 ATF_TC_BODY(cosh_inrange, tc)
83 ATF_TC_HEAD(cosh_nan, tc)
85 atf_tc_set_md_var(tc, "descr", "Test cosh(NaN) == NaN");
88 ATF_TC_BODY(cosh_nan, tc)
97 ATF_TC_HEAD(cosh_inf_neg, tc)
99 atf_tc_set_md_var(tc, "descr", "Test cosh(-Inf) == +Inf");
102 ATF_TC_BODY(cosh_inf_neg, tc)
112 ATF_TC_HEAD(cosh_inf_pos, tc)
[all...]
H A Dt_sin.c61 ATF_TC_HEAD(sin_angles, tc)
63 atf_tc_set_md_var(tc, "descr", "Test some selected angles");
66 ATF_TC_BODY(sin_angles, tc)
80 ATF_TC_HEAD(sin_nan, tc)
82 atf_tc_set_md_var(tc, "descr", "Test sin(NaN) == NaN");
85 ATF_TC_BODY(sin_nan, tc)
94 ATF_TC_HEAD(sin_inf_neg, tc)
96 atf_tc_set_md_var(tc, "descr", "Test sin(-Inf) == NaN");
99 ATF_TC_BODY(sin_inf_neg, tc)
107 ATF_TC_HEAD(sin_inf_pos, tc)
[all...]
H A Dt_tan.c58 ATF_TC_HEAD(tan_angles, tc)
60 atf_tc_set_md_var(tc, "descr", "Test some selected angles");
63 ATF_TC_BODY(tan_angles, tc)
77 ATF_TC_HEAD(tan_nan, tc)
79 atf_tc_set_md_var(tc, "descr", "Test tan(NaN) == NaN");
82 ATF_TC_BODY(tan_nan, tc)
91 ATF_TC_HEAD(tan_inf_neg, tc)
93 atf_tc_set_md_var(tc, "descr", "Test tan(-Inf) == NaN");
96 ATF_TC_BODY(tan_inf_neg, tc)
104 ATF_TC_HEAD(tan_inf_pos, tc)
[all...]
H A Dt_hypot.c33 ATF_TC_HEAD(hypot_integer, tc)
35 atf_tc_set_md_var(tc, "descr", "Test hypot with integer args");
38 ATF_TC_BODY(hypot_integer, tc)
47 ATF_TC_HEAD(hypotf_integer, tc)
49 atf_tc_set_md_var(tc, "descr", "Test hypotf with integer args");
52 ATF_TC_BODY(hypotf_integer, tc)
60 ATF_TC_HEAD(pr50698, tc)
62 atf_tc_set_md_var(tc, "descr", "Check for the bug of PR 50698");
65 ATF_TC_BODY(pr50698, tc)
H A Dt_sqrt.c43 ATF_TC_HEAD(sqrt_nan, tc)
45 atf_tc_set_md_var(tc, "descr", "Test sqrt(NaN) == NaN");
48 ATF_TC_BODY(sqrt_nan, tc)
57 ATF_TC_HEAD(sqrt_pow, tc)
59 atf_tc_set_md_var(tc, "descr", "Test sqrt(3) vs. pow(3)");
62 ATF_TC_BODY(sqrt_pow, tc)
85 ATF_TC_HEAD(sqrt_inf_neg, tc)
87 atf_tc_set_md_var(tc, "descr", "Test sqrt(-Inf) == NaN");
90 ATF_TC_BODY(sqrt_inf_neg, tc)
99 ATF_TC_HEAD(sqrt_inf_pos, tc)
[all...]
/freebsd-head/contrib/expat/tests/
H A Dminicheck.c57 TCase *tc = (TCase *)calloc(1, sizeof(TCase)); local
58 if (tc != NULL) {
59 tc->name = name;
61 return tc;
65 suite_add_tcase(Suite *suite, TCase *tc) { argument
67 assert(tc != NULL);
68 assert(tc->next_tcase == NULL);
70 tc->next_tcase = suite->tests;
71 suite->tests = tc;
75 tcase_add_checked_fixture(TCase *tc, tcase_setup_functio argument
83 tcase_add_test(TCase *tc, tcase_test_function test) argument
98 tcase_free(TCase *tc) argument
155 TCase *volatile tc; local
[all...]
/freebsd-head/sys/arm64/include/
H A Dbus_dma.h17 struct bus_dma_tag_common *tc; local
19 tc = (struct bus_dma_tag_common *)dmat;
20 return (tc->impl->id_mapped(dmat, buf, buflen));
30 struct bus_dma_tag_common *tc; local
32 tc = (struct bus_dma_tag_common *)dmat;
33 return (tc->impl->map_create(dmat, flags, mapp));
43 struct bus_dma_tag_common *tc; local
45 tc = (struct bus_dma_tag_common *)dmat;
46 return (tc->impl->map_destroy(dmat, map));
58 struct bus_dma_tag_common *tc; local
71 struct bus_dma_tag_common *tc; local
83 struct bus_dma_tag_common *tc; local
92 struct bus_dma_tag_common *tc; local
102 struct bus_dma_tag_common *tc; local
114 struct bus_dma_tag_common *tc; local
126 struct bus_dma_tag_common *tc; local
137 struct bus_dma_tag_common *tc; local
147 struct bus_dma_tag_common *tc; local
[all...]
/freebsd-head/sys/x86/include/
H A Dbus_dma.h44 struct bus_dma_tag_common *tc; local
46 tc = (struct bus_dma_tag_common *)dmat;
47 return (tc->impl->id_mapped(dmat, buf, buflen));
57 struct bus_dma_tag_common *tc; local
59 tc = (struct bus_dma_tag_common *)dmat;
60 return (tc->impl->map_create(dmat, flags, mapp));
70 struct bus_dma_tag_common *tc; local
72 tc = (struct bus_dma_tag_common *)dmat;
73 return (tc->impl->map_destroy(dmat, map));
85 struct bus_dma_tag_common *tc; local
98 struct bus_dma_tag_common *tc; local
110 struct bus_dma_tag_common *tc; local
121 struct bus_dma_tag_common *tc; local
137 struct bus_dma_tag_common *tc; local
149 struct bus_dma_tag_common *tc; local
165 struct bus_dma_tag_common *tc; local
176 struct bus_dma_tag_common *tc; local
188 struct bus_dma_tag_common *tc; local
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_fputc.c88 ATF_TC_HEAD(fputc_basic, tc)
90 atf_tc_set_md_var(tc, "descr", "A basic test of fputc(3)");
93 ATF_TC_BODY(fputc_basic, tc)
98 ATF_TC_CLEANUP(fputc_basic, tc)
104 ATF_TC_HEAD(fputc_err, tc)
106 atf_tc_set_md_var(tc, "descr", "Test errors from fputc(3)");
109 ATF_TC_BODY(fputc_err, tc)
114 ATF_TC_CLEANUP(fputc_err, tc)
120 ATF_TC_HEAD(putc_basic, tc)
122 atf_tc_set_md_var(tc, "desc
[all...]
/freebsd-head/contrib/netbsd-tests/rump/rumpkern/
H A Dt_threads.c42 ATF_TC_HEAD(threadjoin, tc)
45 atf_tc_set_md_var(tc, "descr", "Checks joinable threads work");
48 ATF_TC_BODY(threadjoin, tc)
59 ATF_TC_HEAD(kthread, tc)
62 atf_tc_set_md_var(tc, "descr", "Checks kthread_create/exit works");
65 ATF_TC_BODY(kthread, tc)
/freebsd-head/tests/sys/audit/
H A Dfile-create.c49 ATF_TC_HEAD(mkdir_success, tc)
51 atf_tc_set_md_var(tc, "descr", "Tests the audit of a successful "
55 ATF_TC_BODY(mkdir_success, tc)
62 ATF_TC_CLEANUP(mkdir_success, tc)
69 ATF_TC_HEAD(mkdir_failure, tc)
71 atf_tc_set_md_var(tc, "descr", "Tests the audit of an unsuccessful "
75 ATF_TC_BODY(mkdir_failure, tc)
84 ATF_TC_CLEANUP(mkdir_failure, tc)
91 ATF_TC_HEAD(mkdirat_success, tc)
93 atf_tc_set_md_var(tc, "desc
[all...]
H A Dfile-attribute-modify.c59 ATF_TC_HEAD(flock_success, tc)
61 atf_tc_set_md_var(tc, "descr", "Tests the audit of a successful "
65 ATF_TC_BODY(flock_success, tc)
78 ATF_TC_CLEANUP(flock_success, tc)
85 ATF_TC_HEAD(flock_failure, tc)
87 atf_tc_set_md_var(tc, "descr", "Tests the audit of an unsuccessful "
91 ATF_TC_BODY(flock_failure, tc)
99 ATF_TC_CLEANUP(flock_failure, tc)
106 ATF_TC_HEAD(fcntl_success, tc)
108 atf_tc_set_md_var(tc, "desc
[all...]
/freebsd-head/contrib/apr-util/test/
H A Dtestdbd.c24 static void test_dbd_init(abts_case *tc, void *data) argument
30 ABTS_ASSERT(tc, "failed to init apr_dbd", rv == APR_SUCCESS);
34 static void test_statement(abts_case *tc, apr_dbd_t* handle, argument
42 ABTS_ASSERT(tc, sql, rv == APR_SUCCESS);
45 static void create_table(abts_case *tc, apr_dbd_t* handle, argument
53 test_statement(tc, handle, driver, sql);
56 static void drop_table(abts_case *tc, apr_dbd_t* handle, argument
60 test_statement(tc, handle, driver, sql);
63 static void delete_rows(abts_case *tc, apr_dbd_t* handle, argument
67 test_statement(tc, handl
71 insert_data(abts_case *tc, apr_dbd_t* handle, const apr_dbd_driver_t* driver, int count) argument
89 select_rows(abts_case *tc, apr_dbd_t* handle, const apr_dbd_driver_t* driver, int count) argument
139 test_escape(abts_case *tc, apr_dbd_t *handle, const apr_dbd_driver_t *driver) argument
147 test_dbd_generic(abts_case *tc, apr_dbd_t* handle, const apr_dbd_driver_t* driver) argument
175 test_dbd_sqlite2(abts_case *tc, void *data) argument
203 test_dbd_sqlite3(abts_case *tc, void *data) argument
[all...]
/freebsd-head/sys/riscv/include/
H A Dbus_dma.h18 struct bus_dma_tag_common *tc; local
20 tc = (struct bus_dma_tag_common *)dmat;
21 return (tc->impl->map_create(dmat, flags, mapp));
31 struct bus_dma_tag_common *tc; local
33 tc = (struct bus_dma_tag_common *)dmat;
34 return (tc->impl->map_destroy(dmat, map));
46 struct bus_dma_tag_common *tc; local
48 tc = (struct bus_dma_tag_common *)dmat;
49 return (tc->impl->mem_alloc(dmat, vaddr, flags, mapp));
59 struct bus_dma_tag_common *tc; local
71 struct bus_dma_tag_common *tc; local
80 struct bus_dma_tag_common *tc; local
90 struct bus_dma_tag_common *tc; local
102 struct bus_dma_tag_common *tc; local
114 struct bus_dma_tag_common *tc; local
125 struct bus_dma_tag_common *tc; local
135 struct bus_dma_tag_common *tc; local
[all...]
/freebsd-head/contrib/atf/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)) \
/freebsd-head/bin/sh/tests/
H A Dfunctional_test.sh33 local tc=${1}; shift
37 local err_file="${SRCDIR}/${tc}.stderr"
39 local out_file="${SRCDIR}/${tc}.stdout"
42 atf_check -s exit:${tc##*.} ${err_flag} ${out_flag} ${SH} "${SRCDIR}/${tc}"
47 local tc=${1}
50 case "${tc%.*}" in
53 for word in ${tc%.*}; do
58 tc_escaped=${tc%.*}
63 eval "${tc_escaped}_body() { check ${tc}; }"
[all...]

Completed in 117 milliseconds

1234567891011>>