Lines Matching refs:atf

26 #include "atf-c++/check.hpp"
42 #include <atf-c++.hpp>
44 #include "atf-c++/detail/fs.hpp"
45 #include "atf-c++/detail/process.hpp"
46 #include "atf-c++/detail/test_helpers.hpp"
47 #include "atf-c++/detail/text.hpp"
48 #include "atf-c++/utils.hpp"
55 std::auto_ptr< atf::check::check_result >
56 do_exec(const atf::tests::tc* tc, const char* helper_name)
63 atf::process::argv_array argva(argv);
64 return atf::check::exec(argva);
68 std::auto_ptr< atf::check::check_result >
69 do_exec(const atf::tests::tc* tc, const char* helper_name, const char *carg2)
78 atf::process::argv_array argva(argv);
79 return atf::check::exec(argva);
97 ATF_REQUIRE(atf::check::build_c_o("test.c", "test.o",
98 atf::process::argv_array()));
112 ATF_REQUIRE(!atf::check::build_c_o("test.c", "test.o",
113 atf::process::argv_array()));
129 ATF_REQUIRE(atf::check::build_cpp("test.c", "test.p",
130 atf::process::argv_array()));
144 ATF_REQUIRE(!atf::check::build_cpp("test.c", "test.p",
145 atf::process::argv_array()));
159 ATF_REQUIRE(atf::check::build_cxx_o("test.cpp", "test.o",
160 atf::process::argv_array()));
174 ATF_REQUIRE(!atf::check::build_cxx_o("test.cpp", "test.o",
175 atf::process::argv_array()));
191 ATF_REQUIRE(atf::utils::grep_file("-o test.o", "stdout"));
192 ATF_REQUIRE(atf::utils::grep_file("-c test.c", "stdout"));
196 ATF_REQUIRE(atf::utils::grep_file("-o test.o", "stdout"));
197 ATF_REQUIRE(atf::utils::grep_file("-c test.c", "stdout"));
198 ATF_REQUIRE(atf::utils::grep_file("test.c", "stderr"));
199 ATF_REQUIRE(atf::utils::grep_file("UNDEFINED_SYMBOL", "stderr"));
211 ATF_REQUIRE(atf::utils::grep_file("-o.*test.p", "stdout"));
212 ATF_REQUIRE(atf::utils::grep_file("test.c", "stdout"));
213 ATF_REQUIRE(atf::utils::grep_file("foo bar", "test.p"));
217 ATF_REQUIRE(atf::utils::grep_file("-o test.p", "stdout"));
218 ATF_REQUIRE(atf::utils::grep_file("test.c", "stdout"));
219 ATF_REQUIRE(atf::utils::grep_file("test.c", "stderr"));
220 ATF_REQUIRE(atf::utils::grep_file("non-existent.h", "stderr"));
232 ATF_REQUIRE(atf::utils::grep_file("-o test.o", "stdout"));
233 ATF_REQUIRE(atf::utils::grep_file("-c test.cpp", "stdout"));
237 ATF_REQUIRE(atf::utils::grep_file("-o test.o", "stdout"));
238 ATF_REQUIRE(atf::utils::grep_file("-c test.cpp", "stdout"));
239 ATF_REQUIRE(atf::utils::grep_file("test.cpp", "stderr"));
240 ATF_REQUIRE(atf::utils::grep_file("UNDEFINED_SYMBOL", "stderr"));
251 std::auto_ptr< atf::fs::path > out;
252 std::auto_ptr< atf::fs::path > err;
255 std::auto_ptr< atf::check::check_result > r =
257 out.reset(new atf::fs::path(r->stdout_path()));
258 err.reset(new atf::fs::path(r->stderr_path()));
259 ATF_REQUIRE(atf::fs::exists(*out.get()));
260 ATF_REQUIRE(atf::fs::exists(*err.get()));
262 ATF_REQUIRE(!atf::fs::exists(*out.get()));
263 ATF_REQUIRE(!atf::fs::exists(*err.get()));
275 std::auto_ptr< atf::check::check_result > r =
283 std::auto_ptr< atf::check::check_result > r =
291 std::auto_ptr< atf::check::check_result > r =
324 std::auto_ptr< atf::check::check_result > r1 =
329 std::auto_ptr< atf::check::check_result > r2 =
374 atf::process::argv_array argva(argv);
375 std::auto_ptr< atf::check::check_result > r = atf::check::exec(argva);