Lines Matching defs:atf
26 #include "atf-c++/tests.hpp"
55 #include "atf-c/error.h"
56 #include "atf-c/tc.h"
57 #include "atf-c/utils.h"
60 #include "atf-c++/detail/application.hpp"
61 #include "atf-c++/detail/auto_array.hpp"
62 #include "atf-c++/detail/env.hpp"
63 #include "atf-c++/detail/exceptions.hpp"
64 #include "atf-c++/detail/fs.hpp"
65 #include "atf-c++/detail/sanity.hpp"
66 #include "atf-c++/detail/text.hpp"
74 namespace impl = atf::tests;
75 namespace detail = atf::tests::detail;
76 #define IMPL_NAME "atf::tests"
78 using atf::application::usage_error;
88 m_os << "Content-Type: application/X-atf-tp; version=\"1\"\n\n";
125 const std::string program_name = atf::fs::path(argv0).leaf_name();
138 return atf::text::match(str, regexp);
413 parse_vflag(const std::string& str, atf::tests::vars_map& vars)
418 std::vector< std::string > ws = atf::text::split(str, "=");
430 static atf::fs::path
433 atf::fs::path srcdir(".");
436 srcdir = atf::fs::path(argv0).branch_path();
440 srcdir = atf::fs::path(srcdir_arg);
442 if (!atf::fs::exists(srcdir / Program_Name))
454 const atf::tests::vars_map& vars)
527 run_tc(tc_vector& tcs, const std::string& tcarg, const atf::fs::path& resfile)
533 if (!atf::env::has("__RUNNING_INSIDE_ATF_RUN") || atf::env::get(
540 "atf-test-case(4)\n";
562 atf::fs::path resfile("/dev/stdout");
564 atf::tests::vars_map vars;
578 resfile = atf::fs::path(::optarg);
640 namespace atf {
655 << Program_Name << ": See atf-test-program(1) for usage details.\n";