Lines Matching refs:atf

2 // Automated Testing Framework (atf)
107 bool condition = atf::text::to_bool(get_config_var("condition"));
121 long v1 = atf::text::to_type< long >(get_config_var("v1"));
122 long v2 = atf::text::to_type< long >(get_config_var("v2"));
295 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
296 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before")));
297 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after")));
309 ATF_REQUIRE(atf::utils::grep_file("^failed: Failed on purpose", "result"));
310 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before")));
311 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after")));
323 ATF_REQUIRE(atf::utils::grep_file("^skipped: Skipped on purpose",
325 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before")));
326 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after")));
345 const atf::fs::path before("before");
346 const atf::fs::path after("after");
349 atf::tests::vars_map config;
357 ATF_REQUIRE(atf::fs::exists(before));
359 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
360 ATF_REQUIRE(atf::fs::exists(after));
362 ATF_REQUIRE(atf::utils::grep_file(
364 ATF_REQUIRE(!atf::fs::exists(after));
367 atf::fs::remove(before);
369 atf::fs::remove(after);
392 const atf::fs::path before("before");
393 const atf::fs::path after("after");
396 atf::tests::vars_map config;
407 ATF_REQUIRE(atf::fs::exists(before));
409 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
410 ATF_REQUIRE(atf::fs::exists(after));
412 ATF_REQUIRE(atf::utils::grep_file("^failed: .*v1 != v2", "result"));
413 ATF_REQUIRE(!atf::fs::exists(after));
416 atf::fs::remove(before);
418 atf::fs::remove(after);
442 const atf::fs::path before("before");
443 const atf::fs::path after("after");
446 atf::tests::vars_map config;
452 ATF_REQUIRE(atf::fs::exists(before));
454 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
455 ATF_REQUIRE(atf::fs::exists(after));
457 ATF_REQUIRE(atf::utils::grep_file("^failed: ", "result"));
458 ATF_REQUIRE(!atf::fs::exists(after));
461 atf::fs::remove(before);
463 atf::fs::remove(after);
484 const atf::fs::path before("before");
485 const atf::fs::path after("after");
488 atf::tests::vars_map config;
499 ATF_REQUIRE(atf::fs::exists(before));
501 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
502 ATF_REQUIRE(atf::fs::exists(after));
504 ATF_REQUIRE(atf::utils::grep_file("^failed: ", "result"));
505 ATF_REQUIRE(!atf::fs::exists(after));
508 atf::fs::remove(before);
510 atf::fs::remove(after);
534 const atf::fs::path before("before");
535 const atf::fs::path after("after");
538 atf::tests::vars_map config;
544 ATF_REQUIRE(atf::fs::exists(before));
546 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
547 ATF_REQUIRE(atf::fs::exists(after));
549 ATF_REQUIRE(atf::utils::grep_file("^failed: ", "result"));
550 ATF_REQUIRE(!atf::fs::exists(after));
553 atf::fs::remove(before);
555 atf::fs::remove(after);
577 const atf::fs::path before("before");
578 const atf::fs::path after("after");
581 atf::tests::vars_map config;
590 ATF_REQUIRE(atf::fs::exists(before));
592 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
593 ATF_REQUIRE(atf::fs::exists(after));
598 ATF_REQUIRE(atf::utils::grep_file(exp_result.c_str(), "result"));
599 ATF_REQUIRE(!atf::fs::exists(after));
602 atf::fs::remove(before);
604 atf::fs::remove(after);
629 const atf::fs::path before("before");
630 const atf::fs::path after("after");
633 atf::tests::vars_map config;
642 ATF_REQUIRE(atf::fs::exists(before));
644 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
645 ATF_REQUIRE(atf::fs::exists(after));
650 ATF_REQUIRE(atf::utils::grep_file(exp_result.c_str(), "result"));
651 ATF_REQUIRE(!atf::fs::exists(after));
654 atf::fs::remove(before);
656 atf::fs::remove(after);
680 const atf::fs::path before("before");
681 const atf::fs::path after("after");
684 atf::tests::vars_map config;
690 ATF_REQUIRE(atf::fs::exists(before));
691 ATF_REQUIRE(atf::fs::exists(after));
694 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
696 ATF_REQUIRE(atf::utils::grep_file("^failed", "result"));
700 ATF_REQUIRE(atf::utils::grep_file(exp_result.c_str(), "stderr"));
703 atf::fs::remove(before);
704 atf::fs::remove(after);
728 const atf::fs::path before("before");
729 const atf::fs::path after("after");
732 atf::tests::vars_map config;
738 ATF_REQUIRE(atf::fs::exists(before));
740 ATF_REQUIRE(atf::utils::grep_file("^passed", "result"));
741 ATF_REQUIRE(atf::fs::exists(after));
745 ATF_REQUIRE(atf::utils::grep_file(exp_result.c_str(), "result"));
747 ATF_REQUIRE(!atf::fs::exists(after));
750 atf::fs::remove(before);
752 atf::fs::remove(after);
760 HEADER_TC(include, "atf-c++/macros.hpp");
762 "Tests that the macros provided by the atf-c++/macros.hpp file "
765 "atf-c++/macros.hpp are broken");