Skip to content

Commit

Permalink
src/test/objectstore/CMakeLists.txt: conditionaly build tests
Browse files Browse the repository at this point in the history
 - Honor WITH_AIO tests that depend on bluestore parts

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
  • Loading branch information
wjwithagen committed Sep 3, 2016
1 parent c8a1221 commit bfefa00
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions src/test/objectstore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ target_link_libraries(ceph_test_filestore_idempotent_sequence
install(TARGETS ceph_test_filestore_idempotent_sequence
DESTINATION ${CMAKE_INSTALL_BINDIR})

# unittest_chain_xattr
add_executable(unittest_chain_xattr
chain_xattr.cc
)
add_ceph_unittest(unittest_chain_xattr ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_chain_xattr)
target_link_libraries(unittest_chain_xattr os global)
if(WITH_AIO)
# unittest_chain_xattr
add_executable(unittest_chain_xattr
chain_xattr.cc
)
add_ceph_unittest(unittest_chain_xattr ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_chain_xattr)
target_link_libraries(unittest_chain_xattr os global)
endif(WITH_AIO)

# unittest_rocksdb_option
add_executable(unittest_rocksdb_option
Expand All @@ -102,32 +104,34 @@ add_executable(unittest_rocksdb_option
add_ceph_unittest(unittest_rocksdb_option ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_rocksdb_option)
target_link_libraries(unittest_rocksdb_option global os ${BLKID_LIBRARIES})

# unittest_bit_alloc
add_executable(unittest_bit_alloc
BitAllocator_test.cc
)
add_ceph_unittest(unittest_bit_alloc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bit_alloc)
target_link_libraries(unittest_bit_alloc os global)
if(WITH_AIO)
# unittest_bit_alloc
add_executable(unittest_bit_alloc
BitAllocator_test.cc
)
add_ceph_unittest(unittest_bit_alloc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bit_alloc)
target_link_libraries(unittest_bit_alloc os global)

add_executable(unittest_alloc
Allocator_test.cc
)
add_ceph_unittest(unittest_alloc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_alloc)
target_link_libraries(unittest_alloc os global)
add_executable(unittest_alloc
Allocator_test.cc
)
add_ceph_unittest(unittest_alloc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_alloc)
target_link_libraries(unittest_alloc os global)

# unittest_bluefs
add_executable(unittest_bluefs
test_bluefs.cc
)
add_ceph_unittest(unittest_bluefs ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bluefs)
target_link_libraries(unittest_bluefs os global)
# unittest_bluefs
add_executable(unittest_bluefs
test_bluefs.cc
)
add_ceph_unittest(unittest_bluefs ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bluefs)
target_link_libraries(unittest_bluefs os global)

# unittest_bluestore_types
add_executable(unittest_bluestore_types
test_bluestore_types.cc
)
add_ceph_unittest(unittest_bluestore_types ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bluestore_types)
target_link_libraries(unittest_bluestore_types os global)
# unittest_bluestore_types
add_executable(unittest_bluestore_types
test_bluestore_types.cc
)
add_ceph_unittest(unittest_bluestore_types ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bluestore_types)
target_link_libraries(unittest_bluestore_types os global)
endif(WITH_AIO)

# unittest_transaction
add_executable(unittest_transaction
Expand Down

0 comments on commit bfefa00

Please sign in to comment.