Lines Matching refs:atf
99 atf::utils::copy_file(_binary.str(), _copy_name.str()); in operator ()()
158 generate_core(const atf::tests::tc* test_case, const char* base_name) in generate_core()
191 generate_core(const atf::tests::tc* test_case, const char* base_name, in generate_core()
221 atf::utils::create_file(script, "#! /bin/sh\n\n" + contents); in create_script()
289 atf::utils::create_file("custom-name", ""); in ATF_TEST_CASE_BODY()
381 ATF_REQUIRE(!atf::utils::grep_file("#0", exit_handle.stdout_file().str())); in ATF_TEST_CASE_BODY()
382 ATF_REQUIRE( atf::utils::grep_file("#0", exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
383 ATF_REQUIRE(!atf::utils::grep_file("#1", exit_handle.stdout_file().str())); in ATF_TEST_CASE_BODY()
384 ATF_REQUIRE( atf::utils::grep_file("#1", exit_handle.stderr_file().str())); in ATF_TEST_CASE_BODY()
408 ATF_REQUIRE(atf::utils::grep_file("exited with signal [0-9]* and dumped", in ATF_TEST_CASE_BODY()
410 ATF_REQUIRE(atf::utils::grep_file("^frame 1$", in ATF_TEST_CASE_BODY()
412 ATF_REQUIRE(atf::utils::grep_file("^frame 2$", in ATF_TEST_CASE_BODY()
414 ATF_REQUIRE(atf::utils::grep_file("^some warning$", in ATF_TEST_CASE_BODY()
416 ATF_REQUIRE(atf::utils::grep_file("GDB exited successfully", in ATF_TEST_CASE_BODY()
431 atf::utils::create_file("fake-gdb", "unused"); in ATF_TEST_CASE_BODY()
450 atf::utils::cat_file(exit_handle.stdout_file().str(), "stdout: "); in ATF_TEST_CASE_BODY()
451 atf::utils::cat_file(exit_handle.stderr_file().str(), "stderr: "); in ATF_TEST_CASE_BODY()
452 ATF_REQUIRE(atf::utils::grep_file("Cannot find any core file", in ATF_TEST_CASE_BODY()
471 ATF_REQUIRE(atf::utils::grep_file( in ATF_TEST_CASE_BODY()
491 atf::utils::create_file((exit_handle.work_directory() / "fake.core").str(), in ATF_TEST_CASE_BODY()
495 ATF_REQUIRE(atf::utils::grep_file("^foo$", in ATF_TEST_CASE_BODY()
497 ATF_REQUIRE(atf::utils::grep_file("^bar$", in ATF_TEST_CASE_BODY()
499 ATF_REQUIRE(atf::utils::grep_file("GDB failed; see output above", in ATF_TEST_CASE_BODY()
519 atf::utils::create_file((exit_handle.work_directory() / "fake.core").str(), in ATF_TEST_CASE_BODY()
523 ATF_REQUIRE(atf::utils::grep_file("GDB timed out", in ATF_TEST_CASE_BODY()
541 atf::utils::create_file(exit_handle.stdout_file().str(), "Pre-stdout"); in ATF_TEST_CASE_BODY()
542 atf::utils::create_file(exit_handle.stderr_file().str(), "Pre-stderr"); in ATF_TEST_CASE_BODY()
546 ATF_REQUIRE(atf::utils::grep_file("Pre-stdout", in ATF_TEST_CASE_BODY()
548 ATF_REQUIRE(atf::utils::grep_file("Pre-stderr", in ATF_TEST_CASE_BODY()
550 ATF_REQUIRE(atf::utils::grep_file("frame 1", in ATF_TEST_CASE_BODY()
568 ATF_REQUIRE(atf::utils::compare_file(exit_handle.stdout_file().str(), "")); in ATF_TEST_CASE_BODY()
569 ATF_REQUIRE(atf::utils::compare_file(exit_handle.stderr_file().str(), "")); in ATF_TEST_CASE_BODY()
588 ATF_REQUIRE(atf::utils::compare_file(exit_handle.stdout_file().str(), "")); in ATF_TEST_CASE_BODY()
589 ATF_REQUIRE(atf::utils::compare_file(exit_handle.stderr_file().str(), "")); in ATF_TEST_CASE_BODY()