Lines Matching refs:oc

681 run_output_check(const output_check oc, const atf::fs::path& path,  in run_output_check()  argument
686 if (oc.type == oc_empty) { in run_output_check()
688 if (!oc.negated && !is_empty) { in run_output_check()
692 } else if (oc.negated && is_empty) { in run_output_check()
697 } else if (oc.type == oc_file) { in run_output_check()
698 const bool equals = compare_files(path, atf::fs::path(oc.value)); in run_output_check()
699 if (!oc.negated && !equals) { in run_output_check()
702 print_diff(atf::fs::path(oc.value), path); in run_output_check()
704 } else if (oc.negated && equals) { in run_output_check()
706 cat_file(atf::fs::path(oc.value)); in run_output_check()
710 } else if (oc.type == oc_ignore) { in run_output_check()
712 } else if (oc.type == oc_inline) { in run_output_check()
714 temp.write(decode(oc.value)); in run_output_check()
718 if (!oc.negated && !equals) { in run_output_check()
723 } else if (oc.negated && equals) { in run_output_check()
729 } else if (oc.type == oc_match) { in run_output_check()
730 const bool matches = grep_file(path, oc.value); in run_output_check()
731 if (!oc.negated && !matches) { in run_output_check()
732 std::cerr << "Fail: regexp " + oc.value + " not in " << stdxxx in run_output_check()
736 } else if (oc.negated && matches) { in run_output_check()
737 std::cerr << "Fail: regexp " + oc.value + " is in " << stdxxx in run_output_check()
743 } else if (oc.type == oc_save) { in run_output_check()
744 INV(!oc.negated); in run_output_check()
749 std::ofstream ofs(oc.value.c_str(), std::fstream::binary in run_output_check()