Lines Matching refs:tools
85 using tools::fs::path; in ATF_TEST_CASE_BODY()
110 using tools::fs::path; in ATF_TEST_CASE_BODY()
127 using tools::fs::path; in ATF_TEST_CASE_BODY()
144 using tools::fs::path; in ATF_TEST_CASE_BODY()
160 using tools::fs::path; in ATF_TEST_CASE_BODY()
176 using tools::fs::path; in ATF_TEST_CASE_BODY()
193 using tools::fs::path; in ATF_TEST_CASE_BODY()
211 using tools::fs::path; in ATF_TEST_CASE_BODY()
227 using tools::fs::file_info; in ATF_TEST_CASE_BODY()
228 using tools::fs::path; in ATF_TEST_CASE_BODY()
262 using tools::fs::path; in ATF_TEST_CASE_BODY()
284 using tools::fs::directory; in ATF_TEST_CASE_BODY()
285 using tools::fs::path; in ATF_TEST_CASE_BODY()
305 using tools::fs::directory; in ATF_TEST_CASE_BODY()
306 using tools::fs::file_info; in ATF_TEST_CASE_BODY()
307 using tools::fs::path; in ATF_TEST_CASE_BODY()
335 using tools::fs::directory; in ATF_TEST_CASE_BODY()
336 using tools::fs::path; in ATF_TEST_CASE_BODY()
360 using tools::fs::file_info; in ATF_TEST_CASE_BODY()
361 using tools::fs::path; in ATF_TEST_CASE_BODY()
386 using tools::fs::file_info; in ATF_TEST_CASE_BODY()
387 using tools::fs::path; in ATF_TEST_CASE_BODY()
461 tools::fs::path t1("non-existent"); in ATF_TEST_CASE_BODY()
462 tools::fs::path t2("non-existent"); in ATF_TEST_CASE_BODY()
465 tools::fs::path tmpl("testdir.XXXXXX"); in ATF_TEST_CASE_BODY()
466 tools::fs::temp_dir td1(tmpl); in ATF_TEST_CASE_BODY()
467 tools::fs::temp_dir td2(tmpl); in ATF_TEST_CASE_BODY()
473 ATF_REQUIRE(!tools::fs::exists(tmpl)); in ATF_TEST_CASE_BODY()
474 ATF_REQUIRE( tools::fs::exists(t1)); in ATF_TEST_CASE_BODY()
475 ATF_REQUIRE( tools::fs::exists(t2)); in ATF_TEST_CASE_BODY()
477 tools::fs::file_info fi1(t1); in ATF_TEST_CASE_BODY()
488 tools::fs::file_info fi2(t2); in ATF_TEST_CASE_BODY()
501 ATF_REQUIRE(!tools::fs::exists(t1)); in ATF_TEST_CASE_BODY()
503 ATF_REQUIRE(!tools::fs::exists(t2)); in ATF_TEST_CASE_BODY()
518 using tools::fs::exists; in ATF_TEST_CASE_BODY()
519 using tools::fs::path; in ATF_TEST_CASE_BODY()
541 using tools::fs::is_executable; in ATF_TEST_CASE_BODY()
542 using tools::fs::path; in ATF_TEST_CASE_BODY()
565 using tools::fs::exists; in ATF_TEST_CASE_BODY()
566 using tools::fs::path; in ATF_TEST_CASE_BODY()
567 using tools::fs::remove; in ATF_TEST_CASE_BODY()
576 ATF_REQUIRE_THROW(tools::system_error, remove(path("files/dir"))); in ATF_TEST_CASE_BODY()
587 using tools::fs::cleanup; in ATF_TEST_CASE_BODY()
595 tools::fs::path p("root"); in ATF_TEST_CASE_BODY()
596 ATF_REQUIRE(tools::fs::exists(p)); in ATF_TEST_CASE_BODY()
597 ATF_REQUIRE(tools::fs::exists(p / "dir")); in ATF_TEST_CASE_BODY()
598 ATF_REQUIRE(tools::fs::exists(p / "dir/1")); in ATF_TEST_CASE_BODY()
599 ATF_REQUIRE(tools::fs::exists(p / "dir/2")); in ATF_TEST_CASE_BODY()
600 ATF_REQUIRE(tools::fs::exists(p / "reg")); in ATF_TEST_CASE_BODY()
602 ATF_REQUIRE(!tools::fs::exists(p)); in ATF_TEST_CASE_BODY()
612 using tools::fs::cleanup; in ATF_TEST_CASE_BODY()
619 cleanup(tools::fs::path("aux/root")); in ATF_TEST_CASE_BODY()
620 ATF_REQUIRE(tools::user::is_root()); in ATF_TEST_CASE_BODY()
621 } catch (const tools::system_error& e) { in ATF_TEST_CASE_BODY()
622 ATF_REQUIRE(!tools::user::is_root()); in ATF_TEST_CASE_BODY()
634 using tools::fs::cleanup; in ATF_TEST_CASE_BODY()
643 const tools::fs::path p("root"); in ATF_TEST_CASE_BODY()
645 ATF_REQUIRE(!tools::fs::exists(p)); in ATF_TEST_CASE_BODY()
655 using tools::fs::change_directory; in ATF_TEST_CASE_BODY()
656 using tools::fs::get_current_dir; in ATF_TEST_CASE_BODY()
662 const tools::fs::path old = get_current_dir(); in ATF_TEST_CASE_BODY()
664 ATF_REQUIRE_THROW(tools::system_error, in ATF_TEST_CASE_BODY()
665 change_directory(tools::fs::path("files/reg"))); in ATF_TEST_CASE_BODY()
668 tools::fs::path old2 = change_directory(tools::fs::path("files")); in ATF_TEST_CASE_BODY()
670 tools::fs::path old3 = change_directory(tools::fs::path("dir")); in ATF_TEST_CASE_BODY()
672 tools::fs::path old4 = change_directory(tools::fs::path("../..")); in ATF_TEST_CASE_BODY()
684 using tools::fs::change_directory; in ATF_TEST_CASE_BODY()
685 using tools::fs::get_current_dir; in ATF_TEST_CASE_BODY()
691 tools::fs::path curdir = get_current_dir(); in ATF_TEST_CASE_BODY()
692 change_directory(tools::fs::path(".")); in ATF_TEST_CASE_BODY()
694 change_directory(tools::fs::path("files")); in ATF_TEST_CASE_BODY()
696 change_directory(tools::fs::path("dir")); in ATF_TEST_CASE_BODY()
698 change_directory(tools::fs::path("..")); in ATF_TEST_CASE_BODY()
700 change_directory(tools::fs::path("..")); in ATF_TEST_CASE_BODY()