Lines Matching defs:path
106 std::auto_ptr< atf::fs::path > m_path;
114 const atf::fs::path file = atf::fs::path(
126 m_path.reset(new atf::fs::path(buf.get()));
139 const atf::fs::path&
360 cat_file(const atf::fs::path& path)
362 std::ifstream stream(path.c_str());
364 throw std::runtime_error("Failed to open " + path.str());
376 grep_file(const atf::fs::path& path, const std::string& regexp)
378 std::ifstream stream(path.c_str());
380 throw std::runtime_error("Failed to open " + path.str());
397 file_empty(const atf::fs::path& p)
405 compare_files(const atf::fs::path& p1, const atf::fs::path& p2)
444 print_diff(const atf::fs::path& p1, const atf::fs::path& p2)
447 atf::process::exec(atf::fs::path("diff"),
564 cat_file(atf::fs::path(cr.stdout_path()));
568 cat_file(atf::fs::path(cr.stderr_path()));
592 run_output_check(const output_check oc, const atf::fs::path& path,
598 const bool is_empty = file_empty(path);
601 print_diff(atf::fs::path("/dev/null"), path);
609 const bool equals = compare_files(path, atf::fs::path(oc.value));
613 print_diff(atf::fs::path(oc.value), path);
617 cat_file(atf::fs::path(oc.value));
628 const bool equals = compare_files(path, temp.get_path());
632 print_diff(temp.get_path(), path);
641 const bool matches = grep_file(path, oc.value);
645 cat_file(path);
650 cat_file(path);
656 std::ifstream ifs(path.c_str(), std::fstream::binary);
677 const atf::fs::path& path, const std::string& stdxxx)
683 ok &= run_output_check(*iter, path, stdxxx);
735 atf::fs::path(r.stdout_path()), "stdout");
738 atf::fs::path(r.stderr_path()), "stderr");
762 "one of: empty ignore file:<path> inline:<val> match:regexp "
763 "save:<path>"));
765 "one of: empty ignore file:<path> inline:<val> match:regexp "
766 "save:<path>"));