Lines Matching refs:tc

77 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)
100 touch(atf_tc_get_config_var(tc, "tmpfile"));
103 ATF_TC_CLEANUP(cleanup_fail, tc)
105 if (atf_tc_get_config_var_as_bool(tc, "cleanup"))
106 safe_remove(atf_tc_get_config_var(tc, "tmpfile"));
110 ATF_TC_HEAD(cleanup_skip, tc)
112 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_cleanup test "
115 ATF_TC_BODY(cleanup_skip, tc)
117 touch(atf_tc_get_config_var(tc, "tmpfile"));
120 ATF_TC_CLEANUP(cleanup_skip, tc)
122 if (atf_tc_get_config_var_as_bool(tc, "cleanup"))
123 safe_remove(atf_tc_get_config_var(tc, "tmpfile"));
127 ATF_TC_HEAD(cleanup_curdir, tc)
129 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_cleanup test "
132 ATF_TC_BODY(cleanup_curdir, tc)
142 ATF_TC_CLEANUP(cleanup_curdir, tc)
158 ATF_TC_HEAD(cleanup_sigterm, tc)
160 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_cleanup test "
163 ATF_TC_BODY(cleanup_sigterm, tc)
167 touch(atf_tc_get_config_var(tc, "tmpfile"));
171 atf_tc_get_config_var(tc, "tmpfile")));
175 ATF_TC_CLEANUP(cleanup_sigterm, tc)
177 safe_remove(atf_tc_get_config_var(tc, "tmpfile"));
185 ATF_TC_HEAD(config_unset, tc)
187 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_config test "
190 ATF_TC_BODY(config_unset, tc)
192 ATF_REQUIRE(!atf_tc_has_config_var(tc, "test"));
196 ATF_TC_HEAD(config_empty, tc)
198 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_config test "
201 ATF_TC_BODY(config_empty, tc)
203 ATF_REQUIRE(atf_tc_has_config_var(tc, "test"));
204 ATF_REQUIRE(strlen(atf_tc_get_config_var(tc, "test")) == 0);
208 ATF_TC_HEAD(config_value, tc)
210 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_config test "
213 ATF_TC_BODY(config_value, tc)
215 ATF_REQUIRE(atf_tc_has_config_var(tc, "test"));
216 ATF_REQUIRE(strcmp(atf_tc_get_config_var(tc, "test"), "foo") == 0);
220 ATF_TC_HEAD(config_multi_value, tc)
222 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_config test "
225 ATF_TC_BODY(config_multi_value, tc)
227 ATF_REQUIRE(atf_tc_has_config_var(tc, "test"));
228 ATF_REQUIRE(strcmp(atf_tc_get_config_var(tc, "test"), "foo bar") == 0);
236 ATF_TC_BODY(expect_pass_and_pass, tc)
243 ATF_TC_BODY(expect_pass_but_fail_requirement, tc)
250 ATF_TC_BODY(expect_pass_but_fail_check, tc)
257 ATF_TC_BODY(expect_fail_and_fail_requirement, tc)
265 ATF_TC_BODY(expect_fail_and_fail_check, tc)
277 ATF_TC_BODY(expect_fail_but_pass, tc)
292 ATF_TC_BODY(expect_exit_any_and_exit, tc)
299 ATF_TC_BODY(expect_exit_code_and_exit, tc)
306 ATF_TC_BODY(expect_exit_but_pass, tc)
312 ATF_TC_BODY(expect_signal_any_and_signal, tc)
319 ATF_TC_BODY(expect_signal_no_and_signal, tc)
326 ATF_TC_BODY(expect_signal_but_pass, tc)
332 ATF_TC_BODY(expect_death_and_exit, tc)
339 ATF_TC_BODY(expect_death_and_signal, tc)
346 ATF_TC_BODY(expect_death_but_pass, tc)
352 ATF_TC_HEAD(expect_timeout_and_hang, tc)
354 atf_tc_set_md_var(tc, "timeout", "1");
356 ATF_TC_BODY(expect_timeout_and_hang, tc)
363 ATF_TC_HEAD(expect_timeout_but_pass, tc)
365 atf_tc_set_md_var(tc, "timeout", "1");
367 ATF_TC_BODY(expect_timeout_but_pass, tc)
377 ATF_TC_BODY(metadata_no_descr, tc)
382 ATF_TC_BODY(metadata_no_head, tc)
391 ATF_TC_HEAD(srcdir_exists, tc)
393 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_srcdir test "
396 ATF_TC_BODY(srcdir_exists, tc)
402 atf_tc_get_config_var(tc, "srcdir")));
414 ATF_TC_BODY(result_pass, tc)
420 ATF_TC_BODY(result_fail, tc)
427 ATF_TC_BODY(result_skip, tc)
434 ATF_TC_HEAD(result_newlines_fail, tc)
436 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_result test "
439 ATF_TC_BODY(result_newlines_fail, tc)
445 ATF_TC_HEAD(result_newlines_skip, tc)
447 atf_tc_set_md_var(tc, "descr", "Helper test case for the t_result test "
450 ATF_TC_BODY(result_newlines_skip, tc)