| 206 | } |
| 207 | |
| 208 | void test_copy_dir_recursive_tree(fs::path const& root_dir) |
| 209 | { |
| 210 | std::cout << "test_copy_dir_recursive_tree" << std::endl; |
| 211 | |
| 212 | fs::path target_dir = fs::unique_path(); |
| 213 | |
| 214 | fs::copy(root_dir, target_dir, fs::copy_options::recursive | fs::copy_options::directories_only); |
| 215 | |
| 216 | directory_tree tree = collect_directory_tree(target_dir); |
| 217 | |
| 218 | BOOST_TEST_EQ(tree.size(), 4u); |
| 219 | BOOST_TEST(tree.find("d1") != tree.end()); |
| 220 | BOOST_TEST(tree.find(fs::path("d1") / "d1") != tree.end()); |
| 221 | BOOST_TEST(tree.find(fs::path("d1") / "d2") != tree.end()); |
| 222 | BOOST_TEST(tree.find("d2") != tree.end()); |
| 223 | |
| 224 | fs::remove_all(target_dir); |
| 225 | } |
| 226 | |
| 227 | void test_copy_file_symlinks(fs::path const& root_dir) |
| 228 | { |
no test coverage detected