Lines Matching defs:const
78 status_check(const status_check_t& p_type, const bool p_negated,
79 const int p_value) :
101 output_check(const output_check_t& p_type, const bool p_negated,
102 const std::string& p_value) :
115 temp_file(const atf::fs::path& p) :
136 } catch (const atf::system_error&) {
141 const atf::fs::path&
142 get_path(void) const
148 write(const std::string& text)
168 parse_exit_code(const std::string& str)
171 const int value = atf::text::to_type< int >(str);
175 } catch (const std::runtime_error&) {
182 const char *name;
201 signal_name_to_number(const std::string& str)
215 parse_signal(const std::string& str)
217 const int signo = signal_name_to_number(str);
231 parse_status_check_arg(const std::string& arg)
233 const std::string::size_type delimiter = arg.find(':');
235 const std::string action_str = arg.substr(0, delimiter);
236 const std::string action = negated ? action_str.substr(4) : action_str;
237 const std::string value_str = (
281 parse_output_check_arg(const std::string& arg)
283 const std::string::size_type delimiter = arg.find(':');
284 const bool negated = (arg.compare(0, 4, "not-") == 0);
285 const std::string action_str = arg.substr(0, delimiter);
286 const std::string action = negated ? action_str.substr(4) : action_str;
313 flatten_argv(char* const* argv)
317 char* const* arg = &argv[0];
332 execute(const char* const* argv)
345 execute_with_shell(char* const* argv)
347 const std::string cmd = flatten_argv(argv);
349 const char* sh_argv[4];
359 cat_file(const atf::fs::path& path)
375 grep_file(const atf::fs::path& path, const std::string& regexp)
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)
445 const atf::process::status s =
462 decode(const std::string& s)
507 run_status_check(const status_check& sc, const atf::check::check_result& cr)
513 const int status = cr.exitcode();
537 const int status = cr.termsig();
576 run_status_checks(const std::vector< status_check >& checks,
577 const atf::check::check_result& result)
591 run_output_check(const output_check oc, const atf::fs::path& path,
592 const std::string& stdxxx)
597 const bool is_empty = file_empty(path);
608 const bool equals = compare_files(path, atf::fs::path(oc.value));
629 const bool equals = compare_files(path, temp.get_path());
642 const bool matches = grep_file(path, oc.value);
677 run_output_checks(const std::vector< output_check >& checks,
678 const atf::fs::path& path, const std::string& stdxxx)
703 static const char* m_description;
705 bool run_output_checks(const atf::check::check_result&,
706 const std::string&) const;
708 std::string specific_args(void) const;
709 options_set specific_options(void) const;
710 void process_option(int, const char*);
711 void process_option_s(const std::string&);
720 const char* atf_check::m_description =
730 atf_check::run_output_checks(const atf::check::check_result& r,
731 const std::string& stdxxx)
732 const
748 const
755 const
774 atf_check::process_option(int ch, const char* arg)
832 main(int argc, char* const* argv)