Lines Matching refs:path
111 std::auto_ptr< atf::fs::path > m_path;
115 temp_file(const atf::fs::path& p) :
128 m_path.reset(new atf::fs::path(buf.get()));
141 const atf::fs::path&
359 cat_file(const atf::fs::path& path)
361 std::ifstream stream(path.c_str());
363 throw std::runtime_error("Failed to open " + path.str());
375 grep_file(const atf::fs::path& path, const std::string& regexp)
377 std::ifstream stream(path.c_str());
379 throw std::runtime_error("Failed to open " + path.str());
396 file_empty(const atf::fs::path& p)
404 compare_files(const atf::fs::path& p1, const atf::fs::path& p2)
443 print_diff(const atf::fs::path& p1, const atf::fs::path& p2)
446 atf::process::exec(atf::fs::path("diff"),
563 cat_file(atf::fs::path(cr.stdout_path()));
567 cat_file(atf::fs::path(cr.stderr_path()));
591 run_output_check(const output_check oc, const atf::fs::path& path,
597 const bool is_empty = file_empty(path);
600 print_diff(atf::fs::path("/dev/null"), path);
608 const bool equals = compare_files(path, atf::fs::path(oc.value));
612 print_diff(atf::fs::path(oc.value), path);
616 cat_file(atf::fs::path(oc.value));
623 atf::fs::path path2 = atf::fs::path(atf::config::get("atf_workdir"))
629 const bool equals = compare_files(path, temp.get_path());
633 print_diff(temp.get_path(), path);
642 const bool matches = grep_file(path, oc.value);
646 cat_file(path);
651 cat_file(path);
657 std::ifstream ifs(path.c_str(), std::fstream::binary);
678 const atf::fs::path& path, const std::string& stdxxx)
684 ok &= run_output_check(*iter, path, stdxxx);
736 atf::fs::path(r.stdout_path()), "stdout");
739 atf::fs::path(r.stderr_path()), "stderr");
763 "one of: empty ignore file:<path> inline:<val> match:regexp "
764 "save:<path>"));
766 "one of: empty ignore file:<path> inline:<val> match:regexp "
767 "save:<path>"));