From 246c9fade05e5444d4e53844377a74e55fd591a3 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Fri, 2 Sep 2022 12:53:33 +0000 Subject: [PATCH] test/libcephfs: enable the tests on Windows This patch series enables the libcephfs tests to run on Windows, addressing all the incompatibilities that we have encountered. Signed-off-by: Lucian Petrut --- src/test/CMakeLists.txt | 2 +- src/test/libcephfs/CMakeLists.txt | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 0c16d6a9eb4..d482090068a 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -32,6 +32,7 @@ if (WITH_CEPHFS) endif() add_subdirectory(pybind) add_subdirectory(dokan) +add_subdirectory(libcephfs) # Not available on Windows for the time being. if(NOT WIN32) @@ -61,7 +62,6 @@ if(NOT WIN32) add_subdirectory(erasure-code) add_subdirectory(filestore) add_subdirectory(fs) - add_subdirectory(libcephfs) add_subdirectory(libcephsqlite) add_subdirectory(client) add_subdirectory(mon) diff --git a/src/test/libcephfs/CMakeLists.txt b/src/test/libcephfs/CMakeLists.txt index dc4c27905a5..cc627cfd76e 100644 --- a/src/test/libcephfs/CMakeLists.txt +++ b/src/test/libcephfs/CMakeLists.txt @@ -1,4 +1,4 @@ -if(${WITH_CEPHFS}) +if(WITH_LIBCEPHFS) add_executable(ceph_test_libcephfs test.cc readdir_r_cb.cc @@ -75,5 +75,4 @@ if(${WITH_CEPHFS}) ) install(TARGETS ceph_test_libcephfs_access DESTINATION ${CMAKE_INSTALL_BINDIR}) -endif(${WITH_CEPHFS}) - +endif(WITH_LIBCEPHFS) -- 2.39.5