]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/libcephfs: enable the tests on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 2 Sep 2022 12:53:33 +0000 (12:53 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 10 Nov 2022 07:38:00 +0000 (09:38 +0200)
This patch series enables the libcephfs tests to run on Windows,
addressing all the incompatibilities that we have encountered.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/test/CMakeLists.txt
src/test/libcephfs/CMakeLists.txt

index 0c16d6a9eb4a6bf892958dc42bc2200f84fc692e..d482090068a388169488547ec9b0e1224b15ed0e 100644 (file)
@@ -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)
index dc4c27905a542f07988f184481d8a8430d04c386..cc627cfd76ea927f605ed0ee1c5d86212d561c31 100644 (file)
@@ -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)