summaryrefslogtreecommitdiffstats
path: root/src/test/crimson/seastore/CMakeLists.txt
blob: 5c6c2771ce1aa6b534f75d61d1d64f8108bba506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
add_executable(unittest-transaction-manager
  test_block.cc
  test_transaction_manager.cc
  ../gtest_seastar.cc)
add_ceph_unittest(unittest-transaction-manager
  --memory 256M --smp 1)
target_link_libraries(
  unittest-transaction-manager
  ${CMAKE_DL_LIBS}
  crimson-seastore)

add_executable(unittest-btree-lba-manager
  test_btree_lba_manager.cc
  ../gtest_seastar.cc)
add_ceph_unittest(unittest-btree-lba-manager
  --memory 256M --smp 1)
target_link_libraries(
  unittest-btree-lba-manager
  ${CMAKE_DL_LIBS}
  crimson-seastore)

add_executable(unittest-seastore-journal
  test_seastore_journal.cc)
add_ceph_test(unittest-seastore-journal
  unittest-seastore-journal --memory 256M --smp 1)
target_link_libraries(
  unittest-seastore-journal
  crimson::gtest
  crimson-seastore)

add_executable(unittest-seastore-cache
  test_block.cc
  test_seastore_cache.cc)
add_ceph_test(unittest-seastore-cache
  unittest-seastore-cache --memory 256M --smp 1)
target_link_libraries(
  unittest-seastore-cache
  crimson::gtest
  crimson-seastore)

add_executable(unittest-object-data-handler
  test_object_data_handler.cc
  ../gtest_seastar.cc
  ${PROJECT_SOURCE_DIR}/src/crimson/osd/lsan_suppressions.cc)
add_ceph_unittest(unittest-object-data-handler
  --memory 256M --smp 1)
target_link_libraries(
  unittest-object-data-handler
  crimson::gtest
  crimson-seastore
  crimson-os
  crimson-common)

add_executable(unittest-collection-manager
  test_collection_manager.cc
  ../gtest_seastar.cc
  ${PROJECT_SOURCE_DIR}/src/crimson/osd/lsan_suppressions.cc)
add_ceph_test(unittest-collection-manager
  unittest-collection-manager --memory 256M --smp 1)
target_link_libraries(
  unittest-collection-manager
  crimson::gtest
  crimson-seastore
  crimson-os
  crimson-common)

add_executable(unittest-omap-manager
  test_omap_manager.cc
  ../gtest_seastar.cc)
add_ceph_unittest(unittest-omap-manager
  --memory 256M --smp 1)
target_link_libraries(
  unittest-omap-manager
  ${CMAKE_DL_LIBS}
  crimson-seastore)

add_executable(unittest-seastore
  test_seastore.cc
  ../gtest_seastar.cc)
add_ceph_unittest(unittest-seastore
  --memory 256M --smp 1)
target_link_libraries(
  unittest-seastore
  ${CMAKE_DL_LIBS}
  crimson-seastore
  crimson-common)

add_executable(unittest-seastore-randomblock-manager
  test_randomblock_manager.cc)
add_ceph_test(unittest-seastore-randomblock-manager
  unittest-seastore-randomblock-manager --memory 256M --smp 1)
target_link_libraries(
  unittest-seastore-randomblock-manager
  crimson::gtest
  ${CMAKE_DL_LIBS}
  crimson-seastore)

add_executable(unittest-seastore-nvmedevice
  nvmedevice/test_nvmedevice.cc)
add_ceph_test(unittest-seastore-nvmedevice
  unittest-seastore-nvmedevice --memory 256M --smp 1)
target_link_libraries(
  unittest-seastore-nvmedevice
  crimson::gtest
  crimson-seastore
  aio)

add_executable(unittest-seastore-cbjournal
  test_cbjournal.cc)
add_ceph_test(unittest-seastore-cbjournal
  unittest-seastore-cbjournal --memory 256M --smp 1)
target_link_libraries(
  unittest-seastore-cbjournal
  crimson::gtest
  crimson-seastore
  aio)

add_executable(unittest-seastore-extent-allocator
  test_extent_allocator.cc)
add_ceph_test(unittest-seastore-extent-allocator
  unittest-seastore-extent-allocator --memory 256M --smp 1)
target_link_libraries(
  unittest-seastore-extent-allocator
  crimson::gtest
  crimson-seastore
  aio)

add_subdirectory(onode_tree)