Right now, the librbd tests are skipped on Windows.
This change enables the functional tests, which can run with
just a few modifications.
We'll continue skipping the unit tests however, which require
too much OSD code that hasn't been ported (e.g. cls, libosd, etc).
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
if(WITH_LIBRADOSSTRIPER)
add_subdirectory(libradosstriper)
endif()
-if(WITH_RBD AND NOT WIN32)
- # librbd tests require libcls*, which in turn require libos and libosd, which
- # haven't been ported to Windows yet.
+if(WITH_RBD)
add_subdirectory(librbd)
-endif(WITH_RBD AND NOT WIN32)
+endif()
if (WITH_CEPHFS)
add_subdirectory(mds)
endif()
crypto/luks/test_mock_LoadRequest.cc)
endif()
+# On Windows, we'll skip librbd unit tests for the time being, running just the
+# functional tests. The reason is that the unit tests require libcls*, which in
+# turn requires libos and libosd, however those libraries haven't been ported to
+# Windows.
+if(NOT WIN32)
add_executable(unittest_librbd
${unittest_librbd_srcs}
$<TARGET_OBJECTS:common_texttable_obj>)
target_link_libraries(unittest_librbd
librbd_plugin_pwl_cache)
endif()
+endif(NOT WIN32)
add_executable(ceph_test_librbd
test_main.cc