| 97 | } |
| 98 | |
| 99 | void test_copy_file_default(fs::path const& root_dir) |
| 100 | { |
| 101 | std::cout << "test_copy_file_default" << std::endl; |
| 102 | |
| 103 | fs::path target_dir = fs::unique_path(); |
| 104 | fs::create_directory(target_dir); |
| 105 | |
| 106 | fs::copy(root_dir / "f1", target_dir); |
| 107 | fs::copy(root_dir / "f2", target_dir / "f3"); |
| 108 | |
| 109 | directory_tree tree = collect_directory_tree(target_dir); |
| 110 | |
| 111 | BOOST_TEST_EQ(tree.size(), 2u); |
| 112 | BOOST_TEST(tree.find("f1") != tree.end()); |
| 113 | BOOST_TEST(tree.find("f3") != tree.end()); |
| 114 | |
| 115 | verify_file(target_dir / "f1", "f1"); |
| 116 | verify_file(target_dir / "f3", "f2"); |
| 117 | |
| 118 | fs::remove_all(target_dir); |
| 119 | } |
| 120 | |
| 121 | void test_copy_dir_default(fs::path const& root_dir, bool with_symlinks) |
| 122 | { |
no test coverage detected