]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: disable unsupported tests on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 13 Sep 2022 14:18:55 +0000 (14:18 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 15 Feb 2023 14:12:38 +0000 (14:12 +0000)
ceph_test_c2c will run until being signaled. However, we have limited
signal support on Windows, which is why we're going to skip it for
now.

At the same time, "fork" is unavailable on Windows, so we'll have
to temporarily disable the libcephfs reclaim test.

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

index 61b4641c86642f29ecf2ad8ca3df4e885780f406..ddd5034344c8ef868d4d9fdf8da6e2f8be41bb33 100644 (file)
@@ -490,6 +490,8 @@ install(TARGETS
   ceph_test_stress_watch
   DESTINATION ${CMAKE_INSTALL_BINDIR})
 
+# limited Windows signal support, skipped for now
+if(NOT WIN32)
 add_executable(ceph_test_c2c
   test_c2c.cc
   )
@@ -503,6 +505,7 @@ target_link_libraries(ceph_test_c2c
 install(TARGETS
   ceph_test_c2c
   DESTINATION ${CMAKE_INSTALL_BINDIR})
+endif(NOT WIN32)
 
 if(WITH_FUSE)
   add_executable(ceph_test_cfuse_cache_invalidate
index cc627cfd76ea927f605ed0ee1c5d86212d561c31..b6cd08e601c01758e0764a62da2c8a8e08d07271 100644 (file)
@@ -36,17 +36,20 @@ if(WITH_LIBCEPHFS)
   install(TARGETS ceph_test_libcephfs_newops
     DESTINATION ${CMAKE_INSTALL_BINDIR})
 
-  add_executable(ceph_test_libcephfs_reclaim
-    reclaim.cc
-  )
-  target_link_libraries(ceph_test_libcephfs_reclaim
-    cephfs
-    ${UNITTEST_LIBS}
-    ${EXTRALIBS}
-    ${CMAKE_DL_LIBS}
+  # uses fork, not available on Windows
+  if(NOT WIN32)
+    add_executable(ceph_test_libcephfs_reclaim
+      reclaim.cc
     )
-  install(TARGETS ceph_test_libcephfs_reclaim
-    DESTINATION ${CMAKE_INSTALL_BINDIR})
+    target_link_libraries(ceph_test_libcephfs_reclaim
+      cephfs
+      ${UNITTEST_LIBS}
+      ${EXTRALIBS}
+      ${CMAKE_DL_LIBS}
+      )
+    install(TARGETS ceph_test_libcephfs_reclaim
+      DESTINATION ${CMAKE_INSTALL_BINDIR})
+  endif(NOT WIN32)
 
   add_executable(ceph_test_libcephfs_lazyio
     lazyio.cc