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 5, 2016
1 parent c8a1221 commit 6eb9f7b
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions src/test/objectstore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,32 +102,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 6eb9f7b

Please sign in to comment.