mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-24 05:44:26 +08:00
Work on CI integration.
This commit is contained in:
parent
8b222fc06f
commit
9085725056
@ -1246,7 +1246,7 @@ TEST_CASE("30.10.15.3 copy", "[filesystem][operations][fs.op.copy]")
|
|||||||
CHECK(fs::exists("dir4/file2"));
|
CHECK(fs::exists("dir4/file2"));
|
||||||
CHECK(fs::exists("dir4/dir2/file3"));
|
CHECK(fs::exists("dir4/dir2/file3"));
|
||||||
}
|
}
|
||||||
{
|
if(is_symlink_creation_supported()) {
|
||||||
TemporaryDirectory t(TempOpt::change_path);
|
TemporaryDirectory t(TempOpt::change_path);
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
fs::create_directory("dir1");
|
fs::create_directory("dir1");
|
||||||
@ -1427,7 +1427,7 @@ TEST_CASE("30.10.15.7 create_directory", "[filesystem][operations][fs.op.create_
|
|||||||
|
|
||||||
TEST_CASE("30.10.15.8 create_directory_symlink", "[filesystem][operations][fs.op.create_directory_symlink]")
|
TEST_CASE("30.10.15.8 create_directory_symlink", "[filesystem][operations][fs.op.create_directory_symlink]")
|
||||||
{
|
{
|
||||||
REQUIRE(is_symlink_creation_supported());
|
if(is_symlink_creation_supported()) {
|
||||||
TemporaryDirectory t;
|
TemporaryDirectory t;
|
||||||
fs::create_directory(t.path() / "dir1");
|
fs::create_directory(t.path() / "dir1");
|
||||||
generateFile(t.path() / "dir1/test1");
|
generateFile(t.path() / "dir1/test1");
|
||||||
@ -1442,6 +1442,7 @@ TEST_CASE("30.10.15.8 create_directory_symlink", "[filesystem][operations][fs.op
|
|||||||
CHECK_NOTHROW(fs::create_directory_symlink(t.path() / "dir1", t.path() / "dir2/dirSym", ec));
|
CHECK_NOTHROW(fs::create_directory_symlink(t.path() / "dir1", t.path() / "dir2/dirSym", ec));
|
||||||
CHECK(ec);
|
CHECK(ec);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TEST_CASE("30.10.15.9 create_hard_link", "[filesystem][operations][fs.op.create_hard_link]")
|
TEST_CASE("30.10.15.9 create_hard_link", "[filesystem][operations][fs.op.create_hard_link]")
|
||||||
{
|
{
|
||||||
@ -1462,7 +1463,7 @@ TEST_CASE("30.10.15.9 create_hard_link", "[filesystem][operations][fs.op.create_
|
|||||||
|
|
||||||
TEST_CASE("30.10.15.10 create_symlink", "[filesystem][operations][fs.op.create_symlink]")
|
TEST_CASE("30.10.15.10 create_symlink", "[filesystem][operations][fs.op.create_symlink]")
|
||||||
{
|
{
|
||||||
REQUIRE(is_symlink_creation_supported());
|
if(is_symlink_creation_supported()) {
|
||||||
TemporaryDirectory t;
|
TemporaryDirectory t;
|
||||||
fs::create_directory(t.path() / "dir1");
|
fs::create_directory(t.path() / "dir1");
|
||||||
generateFile(t.path() / "dir1/test1");
|
generateFile(t.path() / "dir1/test1");
|
||||||
@ -1477,6 +1478,7 @@ TEST_CASE("30.10.15.10 create_symlink", "[filesystem][operations][fs.op.create_s
|
|||||||
CHECK_NOTHROW(fs::create_symlink(t.path() / "dir1", t.path() / "dir2/fileSym", ec));
|
CHECK_NOTHROW(fs::create_symlink(t.path() / "dir1", t.path() / "dir2/fileSym", ec));
|
||||||
CHECK(ec);
|
CHECK(ec);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TEST_CASE("30.10.15.11 current_path", "[filesystem][operations][fs.op.current_path]")
|
TEST_CASE("30.10.15.11 current_path", "[filesystem][operations][fs.op.current_path]")
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user