Lines Matching refs:atf

111     std::unique_ptr< atf::fs::path > m_path;
119 const atf::fs::path file = atf::fs::path( in temp_file()
120 atf::env::get("TMPDIR", "/tmp")) / pattern; in temp_file()
122 atf::auto_array< char > buf(new char[file.str().length() + 1]); in temp_file()
127 throw atf::system_error("atf_check::temp_file::temp_file(" + in temp_file()
131 m_path.reset(new atf::fs::path(buf.get())); in temp_file()
139 } catch (const atf::system_error&) { in ~temp_file()
144 const atf::fs::path&
154 throw atf::system_error("atf_check", "write(2) failed", errno); in write()
201 const int value = atf::text::to_type< int >(str); in parse_exit_code()
206 throw atf::application::usage_error("Invalid exit code for -s option; " in parse_exit_code()
250 return atf::text::to_type< int >(str); in parse_signal()
252 throw atf::application::usage_error("Invalid signal name or number " in parse_signal()
276 throw atf::application::usage_error("Cannot negate eq checker"); in parse_status_check_arg()
287 throw atf::application::usage_error("Cannot negate ignore checker"); in parse_status_check_arg()
294 throw atf::application::usage_error("Cannot negate ne checker"); in parse_status_check_arg()
304 throw atf::application::usage_error("Invalid status checker"); in parse_status_check_arg()
325 throw atf::application::usage_error("Cannot negate ignore checker"); in parse_output_check_arg()
333 throw atf::application::usage_error("Cannot negate save checker"); in parse_output_check_arg()
336 throw atf::application::usage_error("Invalid output checker"); in parse_output_check_arg()
357 throw atf::application::usage_error("Bogus timeout in seconds"); in parse_repeat_check_arg()
359 throw atf::application::usage_error("Timeout must be a number"); in parse_repeat_check_arg()
362 throw atf::application::usage_error("Timeout must be a number"); in parse_repeat_check_arg()
384 throw atf::application::usage_error( in parse_repeat_check_arg()
387 throw atf::application::usage_error( in parse_repeat_check_arg()
391 throw atf::application::usage_error( in parse_repeat_check_arg()
417 std::unique_ptr< atf::check::check_result >
428 atf::process::argv_array argva(argv); in execute()
429 return atf::check::exec(argva); in execute()
433 std::unique_ptr< atf::check::check_result >
437 const std::string shell = atf::env::get("ATF_SHELL", ATF_SHELL); in execute_with_shell()
449 cat_file(const atf::fs::path& path) in cat_file()
465 grep_file(const atf::fs::path& path, const std::string& regexp) in grep_file()
475 if (atf::text::match(line, regexp)) in grep_file()
486 file_empty(const atf::fs::path& p) in file_empty()
488 atf::fs::file_info f(p); in file_empty()
494 compare_files(const atf::fs::path& p1, const atf::fs::path& p2) in compare_files()
533 print_diff(const atf::fs::path& p1, const atf::fs::path& p2) in print_diff()
535 const atf::process::status s = in print_diff()
536 atf::process::exec(atf::fs::path("diff"), in print_diff()
537 atf::process::argv_array("diff", "-u", p1.c_str(), in print_diff()
539 atf::process::stream_connect(STDOUT_FILENO, in print_diff()
541 atf::process::stream_inherit()); in print_diff()
597 run_status_check(const status_check& sc, const atf::check::check_result& cr) in run_status_check()
653 cat_file(atf::fs::path(cr.stdout_path())); in run_status_check()
657 cat_file(atf::fs::path(cr.stderr_path())); in run_status_check()
667 const atf::check::check_result& result) in run_status_checks()
681 run_output_check(const output_check oc, const atf::fs::path& path, in run_output_check()
690 print_diff(atf::fs::path("/dev/null"), path); in run_output_check()
698 const bool equals = compare_files(path, atf::fs::path(oc.value)); in run_output_check()
702 print_diff(atf::fs::path(oc.value), path); in run_output_check()
706 cat_file(atf::fs::path(oc.value)); in run_output_check()
766 const atf::fs::path& path, const std::string& stdxxx) in run_output_checks()
784 class atf_check : public atf::application::app {
797 bool run_output_checks(const atf::check::check_result&,
823 atf_check::run_output_checks(const atf::check::check_result& r, in run_output_checks()
829 atf::fs::path(r.stdout_path()), "stdout"); in run_output_checks()
832 atf::fs::path(r.stderr_path()), "stderr"); in run_output_checks()
850 using atf::application::option; in specific_options()
902 throw atf::application::usage_error("No command specified"); in main()
910 throw atf::application::usage_error("Cannot specify -s more than once"); in main()
919 std::unique_ptr< atf::check::check_result > r = in main()