libcryfs/test/cryfs/CMakeLists.txt
Sebastian Messmer 2425ce4bc0 Make CryNode::rename() more resilient to corner cases, e.g.
- when trying to move a directory into a subdirectory of itself
- make it into its own ancestor
- allow replacing a directory with another directory, but only if the target directory is empty

Nothing here should have an effect on overall CryFS behavior because fuse already catches those corner cases.
But it's better to handle them correctly. Better safe than sorry.
2022-12-18 14:57:38 +01:00

34 lines
1.3 KiB
CMake

project (cryfs-test)
set(SOURCES
impl/config/crypto/CryConfigEncryptorFactoryTest.cpp
impl/config/crypto/outer/OuterConfigTest.cpp
impl/config/crypto/outer/OuterEncryptorTest.cpp
impl/config/crypto/inner/ConcreteInnerEncryptorTest.cpp
impl/config/crypto/inner/InnerConfigTest.cpp
impl/config/crypto/CryConfigEncryptorTest.cpp
impl/config/CompatibilityTest.cpp
impl/config/CryConfigCreatorTest.cpp
impl/config/CryConfigFileTest.cpp
impl/config/CryConfigTest.cpp
impl/config/CryCipherTest.cpp
impl/config/CryConfigLoaderTest.cpp
impl/config/CryConfigConsoleTest.cpp
impl/config/CryPasswordBasedKeyProviderTest.cpp
impl/config/CryPresetPasswordBasedKeyProviderTest.cpp
impl/filesystem/testutils/CryTestBase.cpp
impl/filesystem/CryFsTest.cpp
impl/filesystem/CryNodeTest_Rename.cpp
impl/filesystem/CryNodeTest_RenameNested.cpp
impl/filesystem/FileSystemTest.cpp
impl/localstate/LocalStateMetadataTest.cpp
impl/localstate/BasedirMetadataTest.cpp
)
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} my-gtest-main googletest cryfs)
add_test(${PROJECT_NAME} ${PROJECT_NAME})
target_enable_style_warnings(${PROJECT_NAME})
target_activate_cpp14(${PROJECT_NAME})