TARGETS 51.9 KB
Newer Older
1
# This file @generated by `python3 buckifier/buckify_rocksdb.py`
2 3 4 5
# --> DO NOT EDIT MANUALLY <--
# This file is a Facebook-specific integration for buck builds, so can
# only be validated by Facebook employees.
#
6
load("@fbcode_macros//build_defs:auto_headers.bzl", "AutoHeaders")
7
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library")
8
load(":defs.bzl", "test_binary")
9

A
Andres Suarez 已提交
10
REPO_PATH = package_name() + "/"
Y
Yi Wu 已提交
11

12
ROCKSDB_COMPILER_FLAGS = [
Y
Yi Wu 已提交
13 14 15
    "-fno-builtin-memcmp",
    # Needed to compile in fbcode
    "-Wno-expansion-to-defined",
F
Fosco Marotto 已提交
16
    # Added missing flags from output of build_detect_platform
Y
Yi Wu 已提交
17
    "-Wnarrowing",
18
    "-DROCKSDB_NO_DYNAMIC_EXTENSION",
19 20
]

21
ROCKSDB_EXTERNAL_DEPS = [
Y
Yi Wu 已提交
22 23 24 25 26 27
    ("bzip2", None, "bz2"),
    ("snappy", None, "snappy"),
    ("zlib", None, "z"),
    ("gflags", None, "gflags"),
    ("lz4", None, "lz4"),
    ("zstd", None),
28 29
]

C
Chad Austin 已提交
30 31 32
ROCKSDB_OS_DEPS = [
    (
        "linux",
33 34 35 36 37
        ["third-party//numa:numa", "third-party//liburing:uring", "third-party//tbb:tbb"],
    ),
    (
        "macos",
        ["third-party//tbb:tbb"],
C
Chad Austin 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50
    ),
]

ROCKSDB_OS_PREPROCESSOR_FLAGS = [
    (
        "linux",
        [
            "-DOS_LINUX",
            "-DROCKSDB_FALLOCATE_PRESENT",
            "-DROCKSDB_MALLOC_USABLE_SIZE",
            "-DROCKSDB_PTHREAD_ADAPTIVE_MUTEX",
            "-DROCKSDB_RANGESYNC_PRESENT",
            "-DROCKSDB_SCHED_GETCPU_PRESENT",
51
            "-DROCKSDB_IOURING_PRESENT",
C
Chad Austin 已提交
52
            "-DHAVE_SSE42",
53
            "-DLIBURING",
C
Chad Austin 已提交
54
            "-DNUMA",
55 56 57
            "-DROCKSDB_PLATFORM_POSIX",
            "-DROCKSDB_LIB_IO_POSIX",
            "-DTBB",
C
Chad Austin 已提交
58 59 60 61
        ],
    ),
    (
        "macos",
62 63 64 65 66 67 68 69 70 71
        [
            "-DOS_MACOSX",
            "-DROCKSDB_PLATFORM_POSIX",
            "-DROCKSDB_LIB_IO_POSIX",
            "-DTBB",
        ],
    ),
    (
        "windows",
        [ "-DOS_WIN", "-DWIN32", "-D_MBCS", "-DWIN64", "-DNOMINMAX" ]
C
Chad Austin 已提交
72 73 74
    ),
]

75
ROCKSDB_PREPROCESSOR_FLAGS = [
C
Chad Austin 已提交
76 77 78 79 80 81 82 83 84 85 86 87 88 89
    "-DROCKSDB_SUPPORT_THREAD_LOCAL",

    # Flags to enable libs we include
    "-DSNAPPY",
    "-DZLIB",
    "-DBZIP2",
    "-DLZ4",
    "-DZSTD",
    "-DZSTD_STATIC_LINKING_ONLY",
    "-DGFLAGS=gflags",

    # Added missing flags from output of build_detect_platform
    "-DROCKSDB_BACKTRACE",

Y
Yi Wu 已提交
90 91 92
    # Directories with files for #include
    "-I" + REPO_PATH + "include/",
    "-I" + REPO_PATH,
93 94
]

95
ROCKSDB_ARCH_PREPROCESSOR_FLAGS = {
S
Siying Dong 已提交
96 97 98
    "x86_64": [
        "-DHAVE_PCLMUL",
    ],
99 100
}

Y
Yi Wu 已提交
101 102 103 104 105 106
build_mode = read_config("fbcode", "build_mode")

is_opt_mode = build_mode.startswith("opt")

# -DNDEBUG is added by default in opt mode in fbcode. But adding it twice
# doesn't harm and avoid forgetting to add it.
107
ROCKSDB_COMPILER_FLAGS += (["-DNDEBUG"] if is_opt_mode else [])
Y
Yi Wu 已提交
108

109 110
sanitizer = read_config("fbcode", "sanitizer")

111 112
# Do not enable jemalloc if sanitizer presents. RocksDB will further detect
# whether the binary is linked with jemalloc at runtime.
C
Chad Austin 已提交
113 114 115 116
ROCKSDB_OS_PREPROCESSOR_FLAGS += ([(
    "linux",
    ["-DROCKSDB_JEMALLOC"],
)] if sanitizer == "" else [])
117

C
Chad Austin 已提交
118 119 120 121
ROCKSDB_OS_DEPS += ([(
    "linux",
    ["third-party//jemalloc:headers"],
)] if sanitizer == "" else [])
122

123 124 125 126 127
ROCKSDB_LIB_DEPS = [
    ":rocksdb_lib",
    ":rocksdb_test_lib",
] if not is_opt_mode else [":rocksdb_lib"]

128 129 130
cpp_library(
    name = "rocksdb_lib",
    srcs = [
131
        "cache/cache.cc",
Y
Yi Wu 已提交
132 133 134
        "cache/clock_cache.cc",
        "cache/lru_cache.cc",
        "cache/sharded_cache.cc",
135
        "db/arena_wrapped_db_iter.cc",
136
        "db/blob/blob_file_addition.cc",
137
        "db/blob/blob_file_builder.cc",
138
        "db/blob/blob_file_garbage.cc",
139
        "db/blob/blob_file_meta.cc",
140
        "db/blob/blob_file_reader.cc",
141 142 143
        "db/blob/blob_log_format.cc",
        "db/blob/blob_log_reader.cc",
        "db/blob/blob_log_writer.cc",
Y
Yi Wu 已提交
144 145 146 147
        "db/builder.cc",
        "db/c.cc",
        "db/column_family.cc",
        "db/compacted_db_impl.cc",
148 149 150 151 152 153 154
        "db/compaction/compaction.cc",
        "db/compaction/compaction_iterator.cc",
        "db/compaction/compaction_job.cc",
        "db/compaction/compaction_picker.cc",
        "db/compaction/compaction_picker_fifo.cc",
        "db/compaction/compaction_picker_level.cc",
        "db/compaction/compaction_picker_universal.cc",
155
        "db/compaction/sst_partitioner.cc",
Y
Yi Wu 已提交
156 157
        "db/convenience.cc",
        "db/db_filesnapshot.cc",
158 159 160 161 162 163 164 165 166
        "db/db_impl/db_impl.cc",
        "db/db_impl/db_impl_compaction_flush.cc",
        "db/db_impl/db_impl_debug.cc",
        "db/db_impl/db_impl_experimental.cc",
        "db/db_impl/db_impl_files.cc",
        "db/db_impl/db_impl_open.cc",
        "db/db_impl/db_impl_readonly.cc",
        "db/db_impl/db_impl_secondary.cc",
        "db/db_impl/db_impl_write.cc",
Y
Yi Wu 已提交
167 168 169
        "db/db_info_dumper.cc",
        "db/db_iter.cc",
        "db/dbformat.cc",
170
        "db/error_handler.cc",
Y
Yi Wu 已提交
171 172 173 174 175 176 177
        "db/event_helpers.cc",
        "db/experimental.cc",
        "db/external_sst_file_ingestion_job.cc",
        "db/file_indexer.cc",
        "db/flush_job.cc",
        "db/flush_scheduler.cc",
        "db/forward_iterator.cc",
178
        "db/import_column_family_job.cc",
Y
Yi Wu 已提交
179 180 181
        "db/internal_stats.cc",
        "db/log_reader.cc",
        "db/log_writer.cc",
S
Siying Dong 已提交
182
        "db/logs_with_prep_tracker.cc",
Y
Yi Wu 已提交
183 184 185 186 187
        "db/malloc_stats.cc",
        "db/memtable.cc",
        "db/memtable_list.cc",
        "db/merge_helper.cc",
        "db/merge_operator.cc",
188
        "db/output_validator.cc",
189
        "db/periodic_work_scheduler.cc",
Y
Yi Wu 已提交
190
        "db/range_del_aggregator.cc",
191
        "db/range_tombstone_fragmenter.cc",
Y
Yi Wu 已提交
192 193 194 195 196
        "db/repair.cc",
        "db/snapshot_impl.cc",
        "db/table_cache.cc",
        "db/table_properties_collector.cc",
        "db/transaction_log_impl.cc",
197
        "db/trim_history_scheduler.cc",
Y
Yi Wu 已提交
198 199
        "db/version_builder.cc",
        "db/version_edit.cc",
200
        "db/version_edit_handler.cc",
Y
Yi Wu 已提交
201
        "db/version_set.cc",
202
        "db/wal_edit.cc",
Y
Yi Wu 已提交
203 204 205 206 207 208 209 210 211 212
        "db/wal_manager.cc",
        "db/write_batch.cc",
        "db/write_batch_base.cc",
        "db/write_controller.cc",
        "db/write_thread.cc",
        "env/env.cc",
        "env/env_chroot.cc",
        "env/env_encryption.cc",
        "env/env_hdfs.cc",
        "env/env_posix.cc",
213
        "env/file_system.cc",
214
        "env/file_system_tracer.cc",
215
        "env/fs_posix.cc",
Y
Yi Wu 已提交
216 217
        "env/io_posix.cc",
        "env/mock_env.cc",
218
        "file/delete_scheduler.cc",
219
        "file/file_prefetch_buffer.cc",
220 221
        "file/file_util.cc",
        "file/filename.cc",
222 223 224 225
        "file/random_access_file_reader.cc",
        "file/read_write_util.cc",
        "file/readahead_raf.cc",
        "file/sequence_file_reader.cc",
226
        "file/sst_file_manager_impl.cc",
227
        "file/writable_file_writer.cc",
228 229 230
        "logging/auto_roll_logger.cc",
        "logging/event_logger.cc",
        "logging/log_buffer.cc",
231 232 233
        "memory/arena.cc",
        "memory/concurrent_arena.cc",
        "memory/jemalloc_nodump_allocator.cc",
234
        "memory/memkind_kmem_allocator.cc",
Y
Yi Wu 已提交
235 236 237 238 239 240 241 242
        "memtable/alloc_tracker.cc",
        "memtable/hash_linklist_rep.cc",
        "memtable/hash_skiplist_rep.cc",
        "memtable/skiplistrep.cc",
        "memtable/vectorrep.cc",
        "memtable/write_buffer_manager.cc",
        "monitoring/histogram.cc",
        "monitoring/histogram_windowing.cc",
243
        "monitoring/in_memory_stats_history.cc",
Y
Yi Wu 已提交
244 245 246 247
        "monitoring/instrumented_mutex.cc",
        "monitoring/iostats_context.cc",
        "monitoring/perf_context.cc",
        "monitoring/perf_level.cc",
248
        "monitoring/persistent_stats_history.cc",
Y
Yi Wu 已提交
249 250 251 252 253 254 255
        "monitoring/statistics.cc",
        "monitoring/thread_status_impl.cc",
        "monitoring/thread_status_updater.cc",
        "monitoring/thread_status_updater_debug.cc",
        "monitoring/thread_status_util.cc",
        "monitoring/thread_status_util_debug.cc",
        "options/cf_options.cc",
256
        "options/configurable.cc",
Y
Yi Wu 已提交
257 258 259 260 261 262
        "options/db_options.cc",
        "options/options.cc",
        "options/options_helper.cc",
        "options/options_parser.cc",
        "port/port_posix.cc",
        "port/stack_trace.cc",
263 264 265 266 267 268
        "port/win/env_default.cc",
        "port/win/env_win.cc",
        "port/win/io_win.cc",
        "port/win/port_win.cc",
        "port/win/win_logger.cc",
        "port/win/win_thread.cc",
269
        "table/adaptive/adaptive_table_factory.cc",
270
        "table/block_based/binary_search_index_reader.cc",
271 272 273 274
        "table/block_based/block.cc",
        "table/block_based/block_based_filter_block.cc",
        "table/block_based/block_based_table_builder.cc",
        "table/block_based/block_based_table_factory.cc",
275
        "table/block_based/block_based_table_iterator.cc",
276 277
        "table/block_based/block_based_table_reader.cc",
        "table/block_based/block_builder.cc",
278
        "table/block_based/block_prefetcher.cc",
279 280
        "table/block_based/block_prefix_index.cc",
        "table/block_based/data_block_footer.cc",
281
        "table/block_based/data_block_hash_index.cc",
282
        "table/block_based/filter_block_reader_common.cc",
283
        "table/block_based/filter_policy.cc",
284 285
        "table/block_based/flush_block_policy.cc",
        "table/block_based/full_filter_block.cc",
286
        "table/block_based/hash_index_reader.cc",
287
        "table/block_based/index_builder.cc",
288
        "table/block_based/index_reader_common.cc",
289
        "table/block_based/parsed_full_filter_block.cc",
290
        "table/block_based/partitioned_filter_block.cc",
291
        "table/block_based/partitioned_index_iterator.cc",
292 293
        "table/block_based/partitioned_index_reader.cc",
        "table/block_based/reader_common.cc",
294
        "table/block_based/uncompression_dict_reader.cc",
S
Siying Dong 已提交
295
        "table/block_fetcher.cc",
296 297 298
        "table/cuckoo/cuckoo_table_builder.cc",
        "table/cuckoo/cuckoo_table_factory.cc",
        "table/cuckoo/cuckoo_table_reader.cc",
Y
Yi Wu 已提交
299 300 301 302 303 304
        "table/format.cc",
        "table/get_context.cc",
        "table/iterator.cc",
        "table/merging_iterator.cc",
        "table/meta_blocks.cc",
        "table/persistent_cache_helper.cc",
305
        "table/plain/plain_table_bloom.cc",
306 307 308 309 310
        "table/plain/plain_table_builder.cc",
        "table/plain/plain_table_factory.cc",
        "table/plain/plain_table_index.cc",
        "table/plain/plain_table_key_coding.cc",
        "table/plain/plain_table_reader.cc",
311
        "table/sst_file_dumper.cc",
312
        "table/sst_file_reader.cc",
Y
Yi Wu 已提交
313
        "table/sst_file_writer.cc",
314
        "table/table_factory.cc",
Y
Yi Wu 已提交
315 316
        "table/table_properties.cc",
        "table/two_level_iterator.cc",
317 318 319
        "test_util/sync_point.cc",
        "test_util/sync_point_impl.cc",
        "test_util/transaction_test_util.cc",
Y
Yi Wu 已提交
320
        "tools/dump/db_dump_tool.cc",
A
Akanksha Mahajan 已提交
321
        "tools/io_tracer_parser_tool.cc",
Y
Yi Wu 已提交
322 323 324
        "tools/ldb_cmd.cc",
        "tools/ldb_tool.cc",
        "tools/sst_dump_tool.cc",
325
        "trace_replay/block_cache_tracer.cc",
326
        "trace_replay/io_tracer.cc",
327
        "trace_replay/trace_replay.cc",
Y
Yi Wu 已提交
328 329 330 331
        "util/build_version.cc",
        "util/coding.cc",
        "util/compaction_job_stats_impl.cc",
        "util/comparator.cc",
332
        "util/compression_context_cache.cc",
333
        "util/concurrent_task_limiter_impl.cc",
Y
Yi Wu 已提交
334 335
        "util/crc32c.cc",
        "util/dynamic_bloom.cc",
336
        "util/file_checksum_helper.cc",
Y
Yi Wu 已提交
337 338 339 340 341 342 343 344 345 346 347
        "util/hash.cc",
        "util/murmurhash.cc",
        "util/random.cc",
        "util/rate_limiter.cc",
        "util/slice.cc",
        "util/status.cc",
        "util/string_util.cc",
        "util/thread_local.cc",
        "util/threadpool_imp.cc",
        "util/xxhash.cc",
        "utilities/backupable/backupable_db.cc",
Y
Yi Wu 已提交
348
        "utilities/blob_db/blob_compaction_filter.cc",
Y
Yi Wu 已提交
349 350
        "utilities/blob_db/blob_db.cc",
        "utilities/blob_db/blob_db_impl.cc",
351
        "utilities/blob_db/blob_db_impl_filesnapshot.cc",
Y
Yi Wu 已提交
352 353 354 355 356 357 358 359 360 361 362
        "utilities/blob_db/blob_dump_tool.cc",
        "utilities/blob_db/blob_file.cc",
        "utilities/cassandra/cassandra_compaction_filter.cc",
        "utilities/cassandra/format.cc",
        "utilities/cassandra/merge_operator.cc",
        "utilities/checkpoint/checkpoint_impl.cc",
        "utilities/compaction_filters/remove_emptyvalue_compactionfilter.cc",
        "utilities/convenience/info_log_finder.cc",
        "utilities/debug.cc",
        "utilities/env_mirror.cc",
        "utilities/env_timed.cc",
M
mrambacher 已提交
363 364
        "utilities/fault_injection_env.cc",
        "utilities/fault_injection_fs.cc",
Y
Yi Wu 已提交
365 366
        "utilities/leveldb_options/leveldb_options.cc",
        "utilities/memory/memory_util.cc",
P
Pooya Shareghi 已提交
367
        "utilities/merge_operators/bytesxor.cc",
Y
Yi Wu 已提交
368 369
        "utilities/merge_operators/max.cc",
        "utilities/merge_operators/put.cc",
370
        "utilities/merge_operators/sortlist.cc",
Y
Yi Wu 已提交
371 372 373
        "utilities/merge_operators/string_append/stringappend.cc",
        "utilities/merge_operators/string_append/stringappend2.cc",
        "utilities/merge_operators/uint64add.cc",
374
        "utilities/object_registry.cc",
Y
Yi Wu 已提交
375 376 377 378 379 380 381
        "utilities/option_change_migration/option_change_migration.cc",
        "utilities/options/options_util.cc",
        "utilities/persistent_cache/block_cache_tier.cc",
        "utilities/persistent_cache/block_cache_tier_file.cc",
        "utilities/persistent_cache/block_cache_tier_metadata.cc",
        "utilities/persistent_cache/persistent_cache_tier.cc",
        "utilities/persistent_cache/volatile_tier_impl.cc",
382
        "utilities/simulator_cache/cache_simulator.cc",
Y
Yi Wu 已提交
383 384
        "utilities/simulator_cache/sim_cache.cc",
        "utilities/table_properties_collectors/compact_on_deletion_collector.cc",
385
        "utilities/trace/file_trace_reader_writer.cc",
386 387
        "utilities/transactions/lock/lock_tracker.cc",
        "utilities/transactions/lock/point_lock_tracker.cc",
Y
Yi Wu 已提交
388 389 390 391 392 393 394 395 396 397 398
        "utilities/transactions/optimistic_transaction.cc",
        "utilities/transactions/optimistic_transaction_db_impl.cc",
        "utilities/transactions/pessimistic_transaction.cc",
        "utilities/transactions/pessimistic_transaction_db.cc",
        "utilities/transactions/snapshot_checker.cc",
        "utilities/transactions/transaction_base.cc",
        "utilities/transactions/transaction_db_mutex_impl.cc",
        "utilities/transactions/transaction_lock_mgr.cc",
        "utilities/transactions/transaction_util.cc",
        "utilities/transactions/write_prepared_txn.cc",
        "utilities/transactions/write_prepared_txn_db.cc",
399 400
        "utilities/transactions/write_unprepared_txn.cc",
        "utilities/transactions/write_unprepared_txn_db.cc",
Y
Yi Wu 已提交
401 402 403
        "utilities/ttl/db_ttl_impl.cc",
        "utilities/write_batch_with_index/write_batch_with_index.cc",
        "utilities/write_batch_with_index/write_batch_with_index_internal.cc",
404
    ],
405
    auto_headers = AutoHeaders.RECURSIVE_GLOB,
406 407
    arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
    compiler_flags = ROCKSDB_COMPILER_FLAGS,
C
Chad Austin 已提交
408 409
    os_deps = ROCKSDB_OS_DEPS,
    os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
410
    preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
Y
Yi Wu 已提交
411
    deps = [],
412
    external_deps = ROCKSDB_EXTERNAL_DEPS,
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
    link_whole = False,
)

cpp_library(
    name = "rocksdb_whole_archive_lib",
    srcs = [
        "cache/cache.cc",
        "cache/clock_cache.cc",
        "cache/lru_cache.cc",
        "cache/sharded_cache.cc",
        "db/arena_wrapped_db_iter.cc",
        "db/blob/blob_file_addition.cc",
        "db/blob/blob_file_builder.cc",
        "db/blob/blob_file_garbage.cc",
        "db/blob/blob_file_meta.cc",
428
        "db/blob/blob_file_reader.cc",
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475
        "db/blob/blob_log_format.cc",
        "db/blob/blob_log_reader.cc",
        "db/blob/blob_log_writer.cc",
        "db/builder.cc",
        "db/c.cc",
        "db/column_family.cc",
        "db/compacted_db_impl.cc",
        "db/compaction/compaction.cc",
        "db/compaction/compaction_iterator.cc",
        "db/compaction/compaction_job.cc",
        "db/compaction/compaction_picker.cc",
        "db/compaction/compaction_picker_fifo.cc",
        "db/compaction/compaction_picker_level.cc",
        "db/compaction/compaction_picker_universal.cc",
        "db/compaction/sst_partitioner.cc",
        "db/convenience.cc",
        "db/db_filesnapshot.cc",
        "db/db_impl/db_impl.cc",
        "db/db_impl/db_impl_compaction_flush.cc",
        "db/db_impl/db_impl_debug.cc",
        "db/db_impl/db_impl_experimental.cc",
        "db/db_impl/db_impl_files.cc",
        "db/db_impl/db_impl_open.cc",
        "db/db_impl/db_impl_readonly.cc",
        "db/db_impl/db_impl_secondary.cc",
        "db/db_impl/db_impl_write.cc",
        "db/db_info_dumper.cc",
        "db/db_iter.cc",
        "db/dbformat.cc",
        "db/error_handler.cc",
        "db/event_helpers.cc",
        "db/experimental.cc",
        "db/external_sst_file_ingestion_job.cc",
        "db/file_indexer.cc",
        "db/flush_job.cc",
        "db/flush_scheduler.cc",
        "db/forward_iterator.cc",
        "db/import_column_family_job.cc",
        "db/internal_stats.cc",
        "db/log_reader.cc",
        "db/log_writer.cc",
        "db/logs_with_prep_tracker.cc",
        "db/malloc_stats.cc",
        "db/memtable.cc",
        "db/memtable_list.cc",
        "db/merge_helper.cc",
        "db/merge_operator.cc",
476
        "db/output_validator.cc",
477
        "db/periodic_work_scheduler.cc",
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701
        "db/range_del_aggregator.cc",
        "db/range_tombstone_fragmenter.cc",
        "db/repair.cc",
        "db/snapshot_impl.cc",
        "db/table_cache.cc",
        "db/table_properties_collector.cc",
        "db/transaction_log_impl.cc",
        "db/trim_history_scheduler.cc",
        "db/version_builder.cc",
        "db/version_edit.cc",
        "db/version_edit_handler.cc",
        "db/version_set.cc",
        "db/wal_edit.cc",
        "db/wal_manager.cc",
        "db/write_batch.cc",
        "db/write_batch_base.cc",
        "db/write_controller.cc",
        "db/write_thread.cc",
        "env/env.cc",
        "env/env_chroot.cc",
        "env/env_encryption.cc",
        "env/env_hdfs.cc",
        "env/env_posix.cc",
        "env/file_system.cc",
        "env/file_system_tracer.cc",
        "env/fs_posix.cc",
        "env/io_posix.cc",
        "env/mock_env.cc",
        "file/delete_scheduler.cc",
        "file/file_prefetch_buffer.cc",
        "file/file_util.cc",
        "file/filename.cc",
        "file/random_access_file_reader.cc",
        "file/read_write_util.cc",
        "file/readahead_raf.cc",
        "file/sequence_file_reader.cc",
        "file/sst_file_manager_impl.cc",
        "file/writable_file_writer.cc",
        "logging/auto_roll_logger.cc",
        "logging/event_logger.cc",
        "logging/log_buffer.cc",
        "memory/arena.cc",
        "memory/concurrent_arena.cc",
        "memory/jemalloc_nodump_allocator.cc",
        "memory/memkind_kmem_allocator.cc",
        "memtable/alloc_tracker.cc",
        "memtable/hash_linklist_rep.cc",
        "memtable/hash_skiplist_rep.cc",
        "memtable/skiplistrep.cc",
        "memtable/vectorrep.cc",
        "memtable/write_buffer_manager.cc",
        "monitoring/histogram.cc",
        "monitoring/histogram_windowing.cc",
        "monitoring/in_memory_stats_history.cc",
        "monitoring/instrumented_mutex.cc",
        "monitoring/iostats_context.cc",
        "monitoring/perf_context.cc",
        "monitoring/perf_level.cc",
        "monitoring/persistent_stats_history.cc",
        "monitoring/statistics.cc",
        "monitoring/thread_status_impl.cc",
        "monitoring/thread_status_updater.cc",
        "monitoring/thread_status_updater_debug.cc",
        "monitoring/thread_status_util.cc",
        "monitoring/thread_status_util_debug.cc",
        "options/cf_options.cc",
        "options/configurable.cc",
        "options/db_options.cc",
        "options/options.cc",
        "options/options_helper.cc",
        "options/options_parser.cc",
        "port/port_posix.cc",
        "port/stack_trace.cc",
        "port/win/env_default.cc",
        "port/win/env_win.cc",
        "port/win/io_win.cc",
        "port/win/port_win.cc",
        "port/win/win_logger.cc",
        "port/win/win_thread.cc",
        "table/adaptive/adaptive_table_factory.cc",
        "table/block_based/binary_search_index_reader.cc",
        "table/block_based/block.cc",
        "table/block_based/block_based_filter_block.cc",
        "table/block_based/block_based_table_builder.cc",
        "table/block_based/block_based_table_factory.cc",
        "table/block_based/block_based_table_iterator.cc",
        "table/block_based/block_based_table_reader.cc",
        "table/block_based/block_builder.cc",
        "table/block_based/block_prefetcher.cc",
        "table/block_based/block_prefix_index.cc",
        "table/block_based/data_block_footer.cc",
        "table/block_based/data_block_hash_index.cc",
        "table/block_based/filter_block_reader_common.cc",
        "table/block_based/filter_policy.cc",
        "table/block_based/flush_block_policy.cc",
        "table/block_based/full_filter_block.cc",
        "table/block_based/hash_index_reader.cc",
        "table/block_based/index_builder.cc",
        "table/block_based/index_reader_common.cc",
        "table/block_based/parsed_full_filter_block.cc",
        "table/block_based/partitioned_filter_block.cc",
        "table/block_based/partitioned_index_iterator.cc",
        "table/block_based/partitioned_index_reader.cc",
        "table/block_based/reader_common.cc",
        "table/block_based/uncompression_dict_reader.cc",
        "table/block_fetcher.cc",
        "table/cuckoo/cuckoo_table_builder.cc",
        "table/cuckoo/cuckoo_table_factory.cc",
        "table/cuckoo/cuckoo_table_reader.cc",
        "table/format.cc",
        "table/get_context.cc",
        "table/iterator.cc",
        "table/merging_iterator.cc",
        "table/meta_blocks.cc",
        "table/persistent_cache_helper.cc",
        "table/plain/plain_table_bloom.cc",
        "table/plain/plain_table_builder.cc",
        "table/plain/plain_table_factory.cc",
        "table/plain/plain_table_index.cc",
        "table/plain/plain_table_key_coding.cc",
        "table/plain/plain_table_reader.cc",
        "table/sst_file_dumper.cc",
        "table/sst_file_reader.cc",
        "table/sst_file_writer.cc",
        "table/table_factory.cc",
        "table/table_properties.cc",
        "table/two_level_iterator.cc",
        "test_util/sync_point.cc",
        "test_util/sync_point_impl.cc",
        "test_util/transaction_test_util.cc",
        "tools/dump/db_dump_tool.cc",
        "tools/io_tracer_parser_tool.cc",
        "tools/ldb_cmd.cc",
        "tools/ldb_tool.cc",
        "tools/sst_dump_tool.cc",
        "trace_replay/block_cache_tracer.cc",
        "trace_replay/io_tracer.cc",
        "trace_replay/trace_replay.cc",
        "util/build_version.cc",
        "util/coding.cc",
        "util/compaction_job_stats_impl.cc",
        "util/comparator.cc",
        "util/compression_context_cache.cc",
        "util/concurrent_task_limiter_impl.cc",
        "util/crc32c.cc",
        "util/dynamic_bloom.cc",
        "util/file_checksum_helper.cc",
        "util/hash.cc",
        "util/murmurhash.cc",
        "util/random.cc",
        "util/rate_limiter.cc",
        "util/slice.cc",
        "util/status.cc",
        "util/string_util.cc",
        "util/thread_local.cc",
        "util/threadpool_imp.cc",
        "util/xxhash.cc",
        "utilities/backupable/backupable_db.cc",
        "utilities/blob_db/blob_compaction_filter.cc",
        "utilities/blob_db/blob_db.cc",
        "utilities/blob_db/blob_db_impl.cc",
        "utilities/blob_db/blob_db_impl_filesnapshot.cc",
        "utilities/blob_db/blob_dump_tool.cc",
        "utilities/blob_db/blob_file.cc",
        "utilities/cassandra/cassandra_compaction_filter.cc",
        "utilities/cassandra/format.cc",
        "utilities/cassandra/merge_operator.cc",
        "utilities/checkpoint/checkpoint_impl.cc",
        "utilities/compaction_filters/remove_emptyvalue_compactionfilter.cc",
        "utilities/convenience/info_log_finder.cc",
        "utilities/debug.cc",
        "utilities/env_mirror.cc",
        "utilities/env_timed.cc",
        "utilities/fault_injection_env.cc",
        "utilities/fault_injection_fs.cc",
        "utilities/leveldb_options/leveldb_options.cc",
        "utilities/memory/memory_util.cc",
        "utilities/merge_operators/bytesxor.cc",
        "utilities/merge_operators/max.cc",
        "utilities/merge_operators/put.cc",
        "utilities/merge_operators/sortlist.cc",
        "utilities/merge_operators/string_append/stringappend.cc",
        "utilities/merge_operators/string_append/stringappend2.cc",
        "utilities/merge_operators/uint64add.cc",
        "utilities/object_registry.cc",
        "utilities/option_change_migration/option_change_migration.cc",
        "utilities/options/options_util.cc",
        "utilities/persistent_cache/block_cache_tier.cc",
        "utilities/persistent_cache/block_cache_tier_file.cc",
        "utilities/persistent_cache/block_cache_tier_metadata.cc",
        "utilities/persistent_cache/persistent_cache_tier.cc",
        "utilities/persistent_cache/volatile_tier_impl.cc",
        "utilities/simulator_cache/cache_simulator.cc",
        "utilities/simulator_cache/sim_cache.cc",
        "utilities/table_properties_collectors/compact_on_deletion_collector.cc",
        "utilities/trace/file_trace_reader_writer.cc",
        "utilities/transactions/lock/lock_tracker.cc",
        "utilities/transactions/lock/point_lock_tracker.cc",
        "utilities/transactions/optimistic_transaction.cc",
        "utilities/transactions/optimistic_transaction_db_impl.cc",
        "utilities/transactions/pessimistic_transaction.cc",
        "utilities/transactions/pessimistic_transaction_db.cc",
        "utilities/transactions/snapshot_checker.cc",
        "utilities/transactions/transaction_base.cc",
        "utilities/transactions/transaction_db_mutex_impl.cc",
        "utilities/transactions/transaction_lock_mgr.cc",
        "utilities/transactions/transaction_util.cc",
        "utilities/transactions/write_prepared_txn.cc",
        "utilities/transactions/write_prepared_txn_db.cc",
        "utilities/transactions/write_unprepared_txn.cc",
        "utilities/transactions/write_unprepared_txn_db.cc",
        "utilities/ttl/db_ttl_impl.cc",
        "utilities/write_batch_with_index/write_batch_with_index.cc",
        "utilities/write_batch_with_index/write_batch_with_index_internal.cc",
    ],
    auto_headers = AutoHeaders.RECURSIVE_GLOB,
    arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
    compiler_flags = ROCKSDB_COMPILER_FLAGS,
    os_deps = ROCKSDB_OS_DEPS,
    os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
    preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
    deps = [],
    external_deps = ROCKSDB_EXTERNAL_DEPS,
    link_whole = True,
702 703 704 705 706
)

cpp_library(
    name = "rocksdb_test_lib",
    srcs = [
Y
Yi Wu 已提交
707 708
        "db/db_test_util.cc",
        "table/mock_table.cc",
709
        "test_util/mock_time_env.cc",
710 711
        "test_util/testharness.cc",
        "test_util/testutil.cc",
712
        "tools/block_cache_analyzer/block_cache_trace_analyzer.cc",
713
        "tools/trace_analyzer_tool.cc",
Y
Yi Wu 已提交
714
        "utilities/cassandra/test_utils.cc",
715
    ],
716
    auto_headers = AutoHeaders.RECURSIVE_GLOB,
717 718
    arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
    compiler_flags = ROCKSDB_COMPILER_FLAGS,
C
Chad Austin 已提交
719 720
    os_deps = ROCKSDB_OS_DEPS,
    os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
721
    preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
722 723 724
    deps = [":rocksdb_lib"],
    external_deps = ROCKSDB_EXTERNAL_DEPS + [
        ("googletest", None, "gtest"),
725
    ],
726
    link_whole = False,
727 728 729 730 731
)

cpp_library(
    name = "rocksdb_tools_lib",
    srcs = [
732
        "test_util/testutil.cc",
733
        "tools/block_cache_analyzer/block_cache_trace_analyzer.cc",
Y
Yi Wu 已提交
734
        "tools/db_bench_tool.cc",
Y
Yi Wu 已提交
735
        "tools/trace_analyzer_tool.cc",
736
    ],
737
    auto_headers = AutoHeaders.RECURSIVE_GLOB,
738 739
    arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
    compiler_flags = ROCKSDB_COMPILER_FLAGS,
C
Chad Austin 已提交
740 741
    os_deps = ROCKSDB_OS_DEPS,
    os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
742
    preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
Y
Yi Wu 已提交
743
    deps = [":rocksdb_lib"],
744
    external_deps = ROCKSDB_EXTERNAL_DEPS,
745
    link_whole = False,
746 747
)

748 749 750
cpp_library(
    name = "rocksdb_stress_lib",
    srcs = [
751 752 753 754 755 756 757 758 759
        "db_stress_tool/batched_ops_stress.cc",
        "db_stress_tool/cf_consistency_stress.cc",
        "db_stress_tool/db_stress_common.cc",
        "db_stress_tool/db_stress_driver.cc",
        "db_stress_tool/db_stress_gflags.cc",
        "db_stress_tool/db_stress_shared_state.cc",
        "db_stress_tool/db_stress_test_base.cc",
        "db_stress_tool/db_stress_tool.cc",
        "db_stress_tool/no_batched_ops_stress.cc",
760 761 762 763 764 765 766 767 768 769
        "test_util/testutil.cc",
        "tools/block_cache_analyzer/block_cache_trace_analyzer.cc",
        "tools/trace_analyzer_tool.cc",
    ],
    auto_headers = AutoHeaders.RECURSIVE_GLOB,
    arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
    compiler_flags = ROCKSDB_COMPILER_FLAGS,
    os_deps = ROCKSDB_OS_DEPS,
    os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
    preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
770
    deps = ROCKSDB_LIB_DEPS,
771 772 773
    external_deps = ROCKSDB_EXTERNAL_DEPS,
)

774 775 776 777 778 779 780 781 782 783
if not is_opt_mode:
    cpp_binary(
        name = "c_test_bin",
        srcs = ["db/c_test.c"],
        arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
        os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
        compiler_flags = ROCKSDB_COMPILER_FLAGS,
        preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
        deps = [":rocksdb_test_lib"],
    )
S
sdong 已提交
784

785 786 787 788 789 790 791 792 793
if not is_opt_mode:
    custom_unittest(
        "c_test",
        command = [
            native.package_name() + "/buckifier/rocks_test_runner.sh",
            "$(location :{})".format("c_test_bin"),
        ],
        type = "simple",
    )
S
sdong 已提交
794

795 796
cpp_library(
    name = "env_basic_test_lib",
797
    srcs = ["env/env_basic_test.cc"],
798
    auto_headers = AutoHeaders.RECURSIVE_GLOB,
799 800
    arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
    compiler_flags = ROCKSDB_COMPILER_FLAGS,
C
Chad Austin 已提交
801 802
    os_deps = ROCKSDB_OS_DEPS,
    os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
803
    preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
Y
Yi Wu 已提交
804
    deps = [":rocksdb_test_lib"],
805
    external_deps = ROCKSDB_EXTERNAL_DEPS,
806
    link_whole = False,
807 808
)

809
# [test_name, test_src, test_type, extra_deps, extra_compiler_flags]
Y
Yi Wu 已提交
810 811 812
ROCKS_TESTS = [
    [
        "arena_test",
813
        "memory/arena_test.cc",
Y
Yi Wu 已提交
814
        "serial",
815 816
        [],
        [],
Y
Yi Wu 已提交
817 818 819
    ],
    [
        "auto_roll_logger_test",
820
        "logging/auto_roll_logger_test.cc",
Y
Yi Wu 已提交
821
        "serial",
822 823
        [],
        [],
Y
Yi Wu 已提交
824 825 826 827 828
    ],
    [
        "autovector_test",
        "util/autovector_test.cc",
        "serial",
829 830
        [],
        [],
Y
Yi Wu 已提交
831 832 833 834 835
    ],
    [
        "backupable_db_test",
        "utilities/backupable/backupable_db_test.cc",
        "parallel",
836 837
        [],
        [],
Y
Yi Wu 已提交
838 839 840 841 842
    ],
    [
        "blob_db_test",
        "utilities/blob_db/blob_db_test.cc",
        "serial",
843 844 845 846
        [],
        [],
    ],
    [
847
        "blob_file_addition_test",
848
        "db/blob/blob_file_addition_test.cc",
849 850 851 852
        "serial",
        [],
        [],
    ],
853 854 855 856 857 858 859
    [
        "blob_file_builder_test",
        "db/blob/blob_file_builder_test.cc",
        "serial",
        [],
        [],
    ],
860 861
    [
        "blob_file_garbage_test",
862
        "db/blob/blob_file_garbage_test.cc",
863
        "serial",
864 865
        [],
        [],
Y
Yi Wu 已提交
866 867
    ],
    [
868 869 870 871 872 873 874
        "blob_file_reader_test",
        "db/blob/blob_file_reader_test.cc",
        "serial",
        [],
        [],
    ],
    [
Y
Yi Wu 已提交
875
        "block_based_filter_block_test",
876
        "table/block_based/block_based_filter_block_test.cc",
Y
Yi Wu 已提交
877
        "serial",
878 879
        [],
        [],
Y
Yi Wu 已提交
880
    ],
881 882 883 884 885 886 887
    [
        "block_based_table_reader_test",
        "table/block_based/block_based_table_reader_test.cc",
        "serial",
        [],
        [],
    ],
888 889
    [
        "block_cache_trace_analyzer_test",
890
        "tools/block_cache_analyzer/block_cache_trace_analyzer_test.cc",
891
        "serial",
892 893
        [],
        [],
894 895 896 897 898
    ],
    [
        "block_cache_tracer_test",
        "trace_replay/block_cache_tracer_test.cc",
        "serial",
899 900
        [],
        [],
901
    ],
902 903 904 905 906 907 908
    [
        "block_fetcher_test",
        "table/block_fetcher_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
909 910
    [
        "block_test",
911
        "table/block_based/block_test.cc",
Y
Yi Wu 已提交
912
        "serial",
913 914
        [],
        [],
Y
Yi Wu 已提交
915 916 917 918 919
    ],
    [
        "bloom_test",
        "util/bloom_test.cc",
        "serial",
920 921
        [],
        [],
Y
Yi Wu 已提交
922 923
    ],
    [
924 925
        "cache_simulator_test",
        "utilities/simulator_cache/cache_simulator_test.cc",
Y
Yi Wu 已提交
926
        "serial",
927 928
        [],
        [],
Y
Yi Wu 已提交
929
    ],
930
    [
931 932
        "cache_test",
        "cache/cache_test.cc",
933
        "serial",
934 935
        [],
        [],
936
    ],
Y
Yi Wu 已提交
937 938 939 940
    [
        "cassandra_format_test",
        "utilities/cassandra/cassandra_format_test.cc",
        "serial",
941 942
        [],
        [],
Y
Yi Wu 已提交
943 944 945 946 947
    ],
    [
        "cassandra_functional_test",
        "utilities/cassandra/cassandra_functional_test.cc",
        "serial",
948 949
        [],
        [],
Y
Yi Wu 已提交
950 951 952 953 954
    ],
    [
        "cassandra_row_merge_test",
        "utilities/cassandra/cassandra_row_merge_test.cc",
        "serial",
955 956
        [],
        [],
Y
Yi Wu 已提交
957 958 959 960 961
    ],
    [
        "cassandra_serialize_test",
        "utilities/cassandra/cassandra_serialize_test.cc",
        "serial",
962 963
        [],
        [],
Y
Yi Wu 已提交
964 965 966 967 968
    ],
    [
        "checkpoint_test",
        "utilities/checkpoint/checkpoint_test.cc",
        "serial",
969 970
        [],
        [],
Y
Yi Wu 已提交
971 972 973 974 975
    ],
    [
        "cleanable_test",
        "table/cleanable_test.cc",
        "serial",
976 977
        [],
        [],
Y
Yi Wu 已提交
978 979 980 981 982
    ],
    [
        "coding_test",
        "util/coding_test.cc",
        "serial",
983 984
        [],
        [],
Y
Yi Wu 已提交
985 986 987 988
    ],
    [
        "column_family_test",
        "db/column_family_test.cc",
989
        "parallel",
990 991
        [],
        [],
Y
Yi Wu 已提交
992 993 994 995 996
    ],
    [
        "compact_files_test",
        "db/compact_files_test.cc",
        "serial",
997 998
        [],
        [],
Y
Yi Wu 已提交
999 1000 1001 1002 1003
    ],
    [
        "compact_on_deletion_collector_test",
        "utilities/table_properties_collectors/compact_on_deletion_collector_test.cc",
        "serial",
1004 1005
        [],
        [],
Y
Yi Wu 已提交
1006 1007 1008
    ],
    [
        "compaction_iterator_test",
1009
        "db/compaction/compaction_iterator_test.cc",
Y
Yi Wu 已提交
1010
        "serial",
1011 1012
        [],
        [],
Y
Yi Wu 已提交
1013 1014 1015
    ],
    [
        "compaction_job_stats_test",
1016
        "db/compaction/compaction_job_stats_test.cc",
Y
Yi Wu 已提交
1017
        "serial",
1018 1019
        [],
        [],
Y
Yi Wu 已提交
1020 1021 1022
    ],
    [
        "compaction_job_test",
1023
        "db/compaction/compaction_job_test.cc",
Y
Yi Wu 已提交
1024
        "serial",
1025 1026
        [],
        [],
Y
Yi Wu 已提交
1027 1028 1029
    ],
    [
        "compaction_picker_test",
1030
        "db/compaction/compaction_picker_test.cc",
Y
Yi Wu 已提交
1031
        "serial",
1032 1033
        [],
        [],
Y
Yi Wu 已提交
1034 1035 1036 1037 1038
    ],
    [
        "comparator_db_test",
        "db/comparator_db_test.cc",
        "serial",
1039 1040
        [],
        [],
Y
Yi Wu 已提交
1041
    ],
1042 1043 1044 1045 1046 1047 1048
    [
        "configurable_test",
        "options/configurable_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1049 1050 1051 1052
    [
        "corruption_test",
        "db/corruption_test.cc",
        "serial",
1053 1054
        [],
        [],
Y
Yi Wu 已提交
1055 1056 1057 1058 1059
    ],
    [
        "crc32c_test",
        "util/crc32c_test.cc",
        "serial",
1060 1061
        [],
        [],
Y
Yi Wu 已提交
1062 1063 1064
    ],
    [
        "cuckoo_table_builder_test",
1065
        "table/cuckoo/cuckoo_table_builder_test.cc",
Y
Yi Wu 已提交
1066
        "serial",
1067 1068
        [],
        [],
Y
Yi Wu 已提交
1069 1070 1071 1072 1073
    ],
    [
        "cuckoo_table_db_test",
        "db/cuckoo_table_db_test.cc",
        "serial",
1074 1075
        [],
        [],
Y
Yi Wu 已提交
1076 1077 1078
    ],
    [
        "cuckoo_table_reader_test",
1079
        "table/cuckoo/cuckoo_table_reader_test.cc",
Y
Yi Wu 已提交
1080
        "serial",
1081 1082
        [],
        [],
Y
Yi Wu 已提交
1083
    ],
1084 1085
    [
        "data_block_hash_index_test",
1086
        "table/block_based/data_block_hash_index_test.cc",
1087
        "serial",
1088 1089
        [],
        [],
1090
    ],
Y
Yi Wu 已提交
1091 1092 1093 1094
    [
        "db_basic_test",
        "db/db_basic_test.cc",
        "serial",
1095 1096
        [],
        [],
Y
Yi Wu 已提交
1097 1098 1099
    ],
    [
        "db_blob_index_test",
1100
        "db/blob/db_blob_index_test.cc",
Y
Yi Wu 已提交
1101
        "serial",
1102 1103
        [],
        [],
Y
Yi Wu 已提交
1104 1105 1106 1107 1108
    ],
    [
        "db_block_cache_test",
        "db/db_block_cache_test.cc",
        "serial",
1109 1110
        [],
        [],
Y
Yi Wu 已提交
1111 1112 1113 1114
    ],
    [
        "db_bloom_filter_test",
        "db/db_bloom_filter_test.cc",
1115
        "parallel",
1116 1117
        [],
        [],
Y
Yi Wu 已提交
1118 1119 1120 1121 1122
    ],
    [
        "db_compaction_filter_test",
        "db/db_compaction_filter_test.cc",
        "parallel",
1123 1124
        [],
        [],
Y
Yi Wu 已提交
1125 1126 1127 1128 1129
    ],
    [
        "db_compaction_test",
        "db/db_compaction_test.cc",
        "parallel",
1130 1131
        [],
        [],
Y
Yi Wu 已提交
1132 1133 1134 1135 1136
    ],
    [
        "db_dynamic_level_test",
        "db/db_dynamic_level_test.cc",
        "serial",
1137 1138
        [],
        [],
Y
Yi Wu 已提交
1139 1140 1141 1142 1143
    ],
    [
        "db_encryption_test",
        "db/db_encryption_test.cc",
        "serial",
1144 1145
        [],
        [],
Y
Yi Wu 已提交
1146 1147 1148 1149 1150
    ],
    [
        "db_flush_test",
        "db/db_flush_test.cc",
        "serial",
1151 1152
        [],
        [],
Y
Yi Wu 已提交
1153 1154 1155 1156 1157
    ],
    [
        "db_inplace_update_test",
        "db/db_inplace_update_test.cc",
        "serial",
1158 1159
        [],
        [],
Y
Yi Wu 已提交
1160 1161 1162 1163 1164
    ],
    [
        "db_io_failure_test",
        "db/db_io_failure_test.cc",
        "serial",
1165 1166
        [],
        [],
Y
Yi Wu 已提交
1167 1168
    ],
    [
Y
Yi Wu 已提交
1169 1170
        "db_iter_stress_test",
        "db/db_iter_stress_test.cc",
Y
Yi Wu 已提交
1171
        "serial",
1172 1173
        [],
        [],
Y
Yi Wu 已提交
1174
    ],
1175
    [
Y
Yi Wu 已提交
1176 1177
        "db_iter_test",
        "db/db_iter_test.cc",
1178
        "serial",
1179 1180
        [],
        [],
1181
    ],
Y
Yi Wu 已提交
1182 1183 1184 1185
    [
        "db_iterator_test",
        "db/db_iterator_test.cc",
        "serial",
1186 1187
        [],
        [],
Y
Yi Wu 已提交
1188 1189 1190 1191 1192
    ],
    [
        "db_log_iter_test",
        "db/db_log_iter_test.cc",
        "serial",
1193 1194
        [],
        [],
Y
Yi Wu 已提交
1195
    ],
1196 1197 1198 1199 1200 1201 1202
    [
        "db_logical_block_size_cache_test",
        "db/db_logical_block_size_cache_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1203 1204 1205 1206
    [
        "db_memtable_test",
        "db/db_memtable_test.cc",
        "serial",
1207 1208
        [],
        [],
Y
Yi Wu 已提交
1209 1210
    ],
    [
1211 1212 1213
        "db_merge_operand_test",
        "db/db_merge_operand_test.cc",
        "serial",
1214 1215
        [],
        [],
Y
Yi Wu 已提交
1216
    ],
1217
    [
1218 1219
        "db_merge_operator_test",
        "db/db_merge_operator_test.cc",
1220 1221 1222 1223
        "parallel",
        [],
        [],
    ],
Y
Yi Wu 已提交
1224 1225 1226 1227
    [
        "db_options_test",
        "db/db_options_test.cc",
        "serial",
1228 1229
        [],
        [],
Y
Yi Wu 已提交
1230 1231 1232 1233 1234
    ],
    [
        "db_properties_test",
        "db/db_properties_test.cc",
        "serial",
1235 1236
        [],
        [],
Y
Yi Wu 已提交
1237 1238 1239 1240 1241
    ],
    [
        "db_range_del_test",
        "db/db_range_del_test.cc",
        "serial",
1242 1243
        [],
        [],
Y
Yi Wu 已提交
1244
    ],
1245 1246
    [
        "db_secondary_test",
1247
        "db/db_impl/db_secondary_test.cc",
1248
        "serial",
1249 1250
        [],
        [],
1251
    ],
Y
Yi Wu 已提交
1252 1253 1254 1255
    [
        "db_sst_test",
        "db/db_sst_test.cc",
        "parallel",
1256 1257
        [],
        [],
Y
Yi Wu 已提交
1258 1259 1260 1261 1262
    ],
    [
        "db_statistics_test",
        "db/db_statistics_test.cc",
        "serial",
1263 1264
        [],
        [],
Y
Yi Wu 已提交
1265 1266 1267 1268 1269
    ],
    [
        "db_table_properties_test",
        "db/db_table_properties_test.cc",
        "serial",
1270 1271
        [],
        [],
Y
Yi Wu 已提交
1272 1273 1274 1275 1276
    ],
    [
        "db_tailing_iter_test",
        "db/db_tailing_iter_test.cc",
        "serial",
1277 1278
        [],
        [],
Y
Yi Wu 已提交
1279 1280 1281 1282 1283
    ],
    [
        "db_test",
        "db/db_test.cc",
        "parallel",
1284 1285
        [],
        [],
Y
Yi Wu 已提交
1286 1287 1288 1289
    ],
    [
        "db_test2",
        "db/db_test2.cc",
1290
        "parallel",
1291 1292
        [],
        [],
Y
Yi Wu 已提交
1293 1294 1295 1296 1297
    ],
    [
        "db_universal_compaction_test",
        "db/db_universal_compaction_test.cc",
        "parallel",
1298 1299
        [],
        [],
Y
Yi Wu 已提交
1300 1301 1302 1303 1304
    ],
    [
        "db_wal_test",
        "db/db_wal_test.cc",
        "parallel",
1305 1306
        [],
        [],
Y
Yi Wu 已提交
1307
    ],
1308 1309 1310 1311 1312 1313 1314
    [
        "db_with_timestamp_basic_test",
        "db/db_with_timestamp_basic_test.cc",
        "serial",
        [],
        [],
    ],
1315 1316 1317 1318 1319 1320 1321
    [
        "db_with_timestamp_compaction_test",
        "db/db_with_timestamp_compaction_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1322 1323 1324 1325
    [
        "db_write_test",
        "db/db_write_test.cc",
        "serial",
1326 1327
        [],
        [],
Y
Yi Wu 已提交
1328 1329 1330 1331 1332
    ],
    [
        "dbformat_test",
        "db/dbformat_test.cc",
        "serial",
1333 1334
        [],
        [],
Y
Yi Wu 已提交
1335
    ],
C
Cheng Chang 已提交
1336 1337 1338 1339 1340 1341 1342
    [
        "defer_test",
        "util/defer_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1343 1344
    [
        "delete_scheduler_test",
1345
        "file/delete_scheduler_test.cc",
Y
Yi Wu 已提交
1346
        "serial",
1347 1348
        [],
        [],
Y
Yi Wu 已提交
1349 1350 1351 1352 1353
    ],
    [
        "deletefile_test",
        "db/deletefile_test.cc",
        "serial",
1354 1355
        [],
        [],
Y
Yi Wu 已提交
1356 1357 1358 1359 1360
    ],
    [
        "dynamic_bloom_test",
        "util/dynamic_bloom_test.cc",
        "serial",
1361 1362
        [],
        [],
Y
Yi Wu 已提交
1363 1364 1365 1366 1367
    ],
    [
        "env_basic_test",
        "env/env_basic_test.cc",
        "serial",
1368 1369
        [],
        [],
Y
Yi Wu 已提交
1370
    ],
1371 1372 1373 1374
    [
        "env_logger_test",
        "logging/env_logger_test.cc",
        "serial",
1375 1376
        [],
        [],
1377
    ],
Y
Yi Wu 已提交
1378 1379 1380 1381
    [
        "env_test",
        "env/env_test.cc",
        "serial",
1382 1383
        [],
        [],
Y
Yi Wu 已提交
1384 1385 1386 1387 1388
    ],
    [
        "env_timed_test",
        "utilities/env_timed_test.cc",
        "serial",
1389 1390
        [],
        [],
Y
Yi Wu 已提交
1391
    ],
S
Siying Dong 已提交
1392
    [
1393 1394
        "error_handler_fs_test",
        "db/error_handler_fs_test.cc",
S
Siying Dong 已提交
1395
        "serial",
1396 1397
        [],
        [],
S
Siying Dong 已提交
1398
    ],
Y
Yi Wu 已提交
1399 1400
    [
        "event_logger_test",
1401
        "logging/event_logger_test.cc",
Y
Yi Wu 已提交
1402
        "serial",
1403 1404
        [],
        [],
Y
Yi Wu 已提交
1405 1406 1407 1408 1409
    ],
    [
        "external_sst_file_basic_test",
        "db/external_sst_file_basic_test.cc",
        "serial",
1410 1411
        [],
        [],
Y
Yi Wu 已提交
1412 1413 1414 1415 1416
    ],
    [
        "external_sst_file_test",
        "db/external_sst_file_test.cc",
        "parallel",
1417 1418
        [],
        [],
Y
Yi Wu 已提交
1419 1420 1421 1422 1423
    ],
    [
        "fault_injection_test",
        "db/fault_injection_test.cc",
        "parallel",
1424 1425
        [],
        [],
Y
Yi Wu 已提交
1426 1427 1428 1429 1430
    ],
    [
        "file_indexer_test",
        "db/file_indexer_test.cc",
        "serial",
1431 1432
        [],
        [],
Y
Yi Wu 已提交
1433 1434 1435 1436
    ],
    [
        "file_reader_writer_test",
        "util/file_reader_writer_test.cc",
1437
        "parallel",
1438 1439
        [],
        [],
Y
Yi Wu 已提交
1440 1441 1442 1443 1444
    ],
    [
        "filelock_test",
        "util/filelock_test.cc",
        "serial",
1445 1446
        [],
        [],
Y
Yi Wu 已提交
1447 1448 1449 1450 1451
    ],
    [
        "filename_test",
        "db/filename_test.cc",
        "serial",
1452 1453
        [],
        [],
Y
Yi Wu 已提交
1454 1455 1456 1457 1458
    ],
    [
        "flush_job_test",
        "db/flush_job_test.cc",
        "serial",
1459 1460
        [],
        [],
Y
Yi Wu 已提交
1461 1462 1463
    ],
    [
        "full_filter_block_test",
1464
        "table/block_based/full_filter_block_test.cc",
Y
Yi Wu 已提交
1465
        "serial",
1466 1467
        [],
        [],
Y
Yi Wu 已提交
1468 1469 1470 1471 1472
    ],
    [
        "hash_table_test",
        "utilities/persistent_cache/hash_table_test.cc",
        "serial",
1473 1474
        [],
        [],
Y
Yi Wu 已提交
1475 1476 1477 1478 1479
    ],
    [
        "hash_test",
        "util/hash_test.cc",
        "serial",
1480 1481
        [],
        [],
Y
Yi Wu 已提交
1482 1483 1484 1485 1486
    ],
    [
        "heap_test",
        "util/heap_test.cc",
        "serial",
1487 1488
        [],
        [],
Y
Yi Wu 已提交
1489 1490 1491 1492 1493
    ],
    [
        "histogram_test",
        "monitoring/histogram_test.cc",
        "serial",
1494 1495
        [],
        [],
Y
Yi Wu 已提交
1496
    ],
1497 1498 1499 1500
    [
        "import_column_family_test",
        "db/import_column_family_test.cc",
        "parallel",
1501 1502
        [],
        [],
1503
    ],
Y
Yi Wu 已提交
1504 1505 1506 1507
    [
        "inlineskiplist_test",
        "memtable/inlineskiplist_test.cc",
        "parallel",
1508 1509
        [],
        [],
Y
Yi Wu 已提交
1510
    ],
1511 1512 1513 1514 1515 1516 1517
    [
        "io_posix_test",
        "env/io_posix_test.cc",
        "serial",
        [],
        [],
    ],
A
Akanksha Mahajan 已提交
1518 1519 1520 1521 1522 1523 1524
    [
        "io_tracer_parser_test",
        "tools/io_tracer_parser_test.cc",
        "serial",
        [],
        [],
    ],
1525 1526 1527 1528 1529 1530 1531
    [
        "io_tracer_test",
        "trace_replay/io_tracer_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1532 1533 1534 1535
    [
        "iostats_context_test",
        "monitoring/iostats_context_test.cc",
        "serial",
1536 1537
        [],
        [],
Y
Yi Wu 已提交
1538 1539 1540 1541 1542
    ],
    [
        "ldb_cmd_test",
        "tools/ldb_cmd_test.cc",
        "serial",
1543 1544
        [],
        [],
Y
Yi Wu 已提交
1545 1546 1547 1548 1549
    ],
    [
        "listener_test",
        "db/listener_test.cc",
        "serial",
1550 1551
        [],
        [],
Y
Yi Wu 已提交
1552 1553 1554 1555 1556
    ],
    [
        "log_test",
        "db/log_test.cc",
        "serial",
1557 1558
        [],
        [],
Y
Yi Wu 已提交
1559 1560 1561 1562 1563
    ],
    [
        "lru_cache_test",
        "cache/lru_cache_test.cc",
        "serial",
1564 1565
        [],
        [],
Y
Yi Wu 已提交
1566 1567 1568 1569 1570
    ],
    [
        "manual_compaction_test",
        "db/manual_compaction_test.cc",
        "parallel",
1571 1572
        [],
        [],
Y
Yi Wu 已提交
1573
    ],
1574 1575 1576 1577 1578 1579 1580
    [
        "memkind_kmem_allocator_test",
        "memory/memkind_kmem_allocator_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1581 1582 1583 1584
    [
        "memory_test",
        "utilities/memory/memory_test.cc",
        "serial",
1585 1586
        [],
        [],
Y
Yi Wu 已提交
1587 1588 1589 1590 1591
    ],
    [
        "memtable_list_test",
        "db/memtable_list_test.cc",
        "serial",
1592 1593
        [],
        [],
Y
Yi Wu 已提交
1594 1595 1596 1597 1598
    ],
    [
        "merge_helper_test",
        "db/merge_helper_test.cc",
        "serial",
1599 1600
        [],
        [],
Y
Yi Wu 已提交
1601 1602 1603 1604 1605
    ],
    [
        "merge_test",
        "db/merge_test.cc",
        "serial",
1606 1607
        [],
        [],
Y
Yi Wu 已提交
1608 1609 1610 1611 1612
    ],
    [
        "merger_test",
        "table/merger_test.cc",
        "serial",
1613 1614
        [],
        [],
Y
Yi Wu 已提交
1615 1616 1617 1618 1619
    ],
    [
        "mock_env_test",
        "env/mock_env_test.cc",
        "serial",
1620 1621
        [],
        [],
Y
Yi Wu 已提交
1622 1623 1624 1625 1626
    ],
    [
        "object_registry_test",
        "utilities/object_registry_test.cc",
        "serial",
1627 1628
        [],
        [],
Y
Yi Wu 已提交
1629
    ],
S
Siying Dong 已提交
1630 1631 1632 1633
    [
        "obsolete_files_test",
        "db/obsolete_files_test.cc",
        "serial",
1634 1635
        [],
        [],
S
Siying Dong 已提交
1636
    ],
Y
Yi Wu 已提交
1637 1638 1639 1640
    [
        "optimistic_transaction_test",
        "utilities/transactions/optimistic_transaction_test.cc",
        "serial",
1641 1642
        [],
        [],
Y
Yi Wu 已提交
1643 1644 1645 1646 1647
    ],
    [
        "option_change_migration_test",
        "utilities/option_change_migration/option_change_migration_test.cc",
        "serial",
1648 1649
        [],
        [],
Y
Yi Wu 已提交
1650 1651 1652 1653 1654
    ],
    [
        "options_file_test",
        "db/options_file_test.cc",
        "serial",
1655 1656
        [],
        [],
Y
Yi Wu 已提交
1657 1658 1659 1660 1661
    ],
    [
        "options_settable_test",
        "options/options_settable_test.cc",
        "serial",
1662 1663
        [],
        [],
Y
Yi Wu 已提交
1664 1665 1666 1667 1668
    ],
    [
        "options_test",
        "options/options_test.cc",
        "serial",
1669 1670
        [],
        [],
Y
Yi Wu 已提交
1671 1672 1673 1674 1675
    ],
    [
        "options_util_test",
        "utilities/options/options_util_test.cc",
        "serial",
1676 1677
        [],
        [],
Y
Yi Wu 已提交
1678 1679 1680
    ],
    [
        "partitioned_filter_block_test",
1681
        "table/block_based/partitioned_filter_block_test.cc",
Y
Yi Wu 已提交
1682
        "serial",
1683 1684
        [],
        [],
Y
Yi Wu 已提交
1685 1686 1687 1688 1689
    ],
    [
        "perf_context_test",
        "db/perf_context_test.cc",
        "serial",
1690 1691
        [],
        [],
Y
Yi Wu 已提交
1692
    ],
1693 1694 1695 1696 1697 1698 1699
    [
        "periodic_work_scheduler_test",
        "db/periodic_work_scheduler_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1700 1701 1702 1703
    [
        "persistent_cache_test",
        "utilities/persistent_cache/persistent_cache_test.cc",
        "parallel",
1704 1705
        [],
        [],
Y
Yi Wu 已提交
1706 1707 1708 1709 1710
    ],
    [
        "plain_table_db_test",
        "db/plain_table_db_test.cc",
        "serial",
1711 1712
        [],
        [],
Y
Yi Wu 已提交
1713
    ],
1714 1715 1716 1717 1718 1719 1720
    [
        "prefetch_test",
        "file/prefetch_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1721 1722 1723 1724
    [
        "prefix_test",
        "db/prefix_test.cc",
        "serial",
1725 1726
        [],
        [],
Y
Yi Wu 已提交
1727
    ],
1728 1729 1730 1731 1732 1733 1734
    [
        "random_access_file_reader_test",
        "file/random_access_file_reader_test.cc",
        "serial",
        [],
        [],
    ],
1735 1736 1737 1738 1739 1740 1741
    [
        "random_test",
        "util/random_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1742 1743 1744 1745
    [
        "range_del_aggregator_test",
        "db/range_del_aggregator_test.cc",
        "serial",
1746 1747
        [],
        [],
Y
Yi Wu 已提交
1748
    ],
1749 1750 1751 1752
    [
        "range_tombstone_fragmenter_test",
        "db/range_tombstone_fragmenter_test.cc",
        "serial",
1753 1754
        [],
        [],
1755
    ],
Y
Yi Wu 已提交
1756 1757 1758 1759
    [
        "rate_limiter_test",
        "util/rate_limiter_test.cc",
        "serial",
1760 1761
        [],
        [],
Y
Yi Wu 已提交
1762 1763 1764 1765 1766
    ],
    [
        "reduce_levels_test",
        "tools/reduce_levels_test.cc",
        "serial",
1767 1768
        [],
        [],
Y
Yi Wu 已提交
1769 1770 1771 1772 1773
    ],
    [
        "repair_test",
        "db/repair_test.cc",
        "serial",
1774 1775
        [],
        [],
Y
Yi Wu 已提交
1776
    ],
1777 1778 1779 1780
    [
        "repeatable_thread_test",
        "util/repeatable_thread_test.cc",
        "serial",
1781 1782
        [],
        [],
1783
    ],
Y
Yi Wu 已提交
1784 1785 1786 1787
    [
        "sim_cache_test",
        "utilities/simulator_cache/sim_cache_test.cc",
        "serial",
1788 1789
        [],
        [],
Y
Yi Wu 已提交
1790 1791 1792 1793 1794
    ],
    [
        "skiplist_test",
        "memtable/skiplist_test.cc",
        "serial",
1795 1796
        [],
        [],
Y
Yi Wu 已提交
1797
    ],
1798 1799 1800 1801 1802 1803 1804
    [
        "slice_test",
        "util/slice_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1805 1806 1807 1808
    [
        "slice_transform_test",
        "util/slice_transform_test.cc",
        "serial",
1809 1810
        [],
        [],
Y
Yi Wu 已提交
1811 1812 1813 1814 1815
    ],
    [
        "sst_dump_test",
        "tools/sst_dump_test.cc",
        "serial",
1816 1817
        [],
        [],
Y
Yi Wu 已提交
1818
    ],
A
anand76 已提交
1819 1820 1821 1822
    [
        "sst_file_reader_test",
        "table/sst_file_reader_test.cc",
        "serial",
1823 1824
        [],
        [],
A
anand76 已提交
1825
    ],
Y
Yi Wu 已提交
1826 1827 1828 1829
    [
        "statistics_test",
        "monitoring/statistics_test.cc",
        "serial",
1830 1831
        [],
        [],
Y
Yi Wu 已提交
1832
    ],
1833 1834 1835 1836
    [
        "stats_history_test",
        "monitoring/stats_history_test.cc",
        "serial",
1837 1838
        [],
        [],
1839
    ],
Y
Yi Wu 已提交
1840 1841 1842 1843
    [
        "stringappend_test",
        "utilities/merge_operators/string_append/stringappend_test.cc",
        "serial",
1844 1845
        [],
        [],
Y
Yi Wu 已提交
1846 1847 1848 1849 1850
    ],
    [
        "table_properties_collector_test",
        "db/table_properties_collector_test.cc",
        "serial",
1851 1852
        [],
        [],
Y
Yi Wu 已提交
1853 1854 1855 1856 1857
    ],
    [
        "table_test",
        "table/table_test.cc",
        "parallel",
1858 1859
        [],
        [],
Y
Yi Wu 已提交
1860
    ],
1861 1862 1863 1864 1865 1866 1867
    [
        "testutil_test",
        "test_util/testutil_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1868 1869 1870 1871
    [
        "thread_list_test",
        "util/thread_list_test.cc",
        "serial",
1872 1873
        [],
        [],
Y
Yi Wu 已提交
1874 1875 1876 1877 1878
    ],
    [
        "thread_local_test",
        "util/thread_local_test.cc",
        "serial",
1879 1880
        [],
        [],
Y
Yi Wu 已提交
1881 1882 1883 1884 1885
    ],
    [
        "timer_queue_test",
        "util/timer_queue_test.cc",
        "serial",
1886 1887
        [],
        [],
Y
Yi Wu 已提交
1888
    ],
1889 1890 1891 1892 1893 1894 1895
    [
        "timer_test",
        "util/timer_test.cc",
        "serial",
        [],
        [],
    ],
1896 1897 1898 1899
    [
        "trace_analyzer_test",
        "tools/trace_analyzer_test.cc",
        "serial",
1900 1901
        [],
        [],
1902
    ],
1903 1904 1905 1906 1907 1908 1909
    [
        "transaction_lock_mgr_test",
        "utilities/transactions/transaction_lock_mgr_test.cc",
        "parallel",
        [],
        [],
    ],
Y
Yi Wu 已提交
1910 1911 1912 1913
    [
        "transaction_test",
        "utilities/transactions/transaction_test.cc",
        "parallel",
1914 1915
        [],
        [],
Y
Yi Wu 已提交
1916 1917 1918 1919 1920
    ],
    [
        "ttl_test",
        "utilities/ttl/ttl_test.cc",
        "serial",
1921 1922
        [],
        [],
Y
Yi Wu 已提交
1923 1924 1925 1926 1927
    ],
    [
        "util_merge_operators_test",
        "utilities/util_merge_operators_test.cc",
        "serial",
1928 1929
        [],
        [],
Y
Yi Wu 已提交
1930 1931 1932 1933 1934
    ],
    [
        "version_builder_test",
        "db/version_builder_test.cc",
        "serial",
1935 1936
        [],
        [],
Y
Yi Wu 已提交
1937 1938 1939 1940 1941
    ],
    [
        "version_edit_test",
        "db/version_edit_test.cc",
        "serial",
1942 1943
        [],
        [],
Y
Yi Wu 已提交
1944 1945 1946 1947 1948
    ],
    [
        "version_set_test",
        "db/version_set_test.cc",
        "serial",
1949 1950
        [],
        [],
Y
Yi Wu 已提交
1951 1952 1953 1954 1955
    ],
    [
        "wal_manager_test",
        "db/wal_manager_test.cc",
        "serial",
1956 1957
        [],
        [],
Y
Yi Wu 已提交
1958
    ],
1959 1960 1961 1962 1963 1964 1965
    [
        "work_queue_test",
        "util/work_queue_test.cc",
        "serial",
        [],
        [],
    ],
Y
Yi Wu 已提交
1966 1967 1968 1969
    [
        "write_batch_test",
        "db/write_batch_test.cc",
        "serial",
1970 1971
        [],
        [],
Y
Yi Wu 已提交
1972 1973 1974 1975 1976
    ],
    [
        "write_batch_with_index_test",
        "utilities/write_batch_with_index/write_batch_with_index_test.cc",
        "serial",
1977 1978
        [],
        [],
Y
Yi Wu 已提交
1979 1980 1981 1982 1983
    ],
    [
        "write_buffer_manager_test",
        "memtable/write_buffer_manager_test.cc",
        "serial",
1984 1985
        [],
        [],
Y
Yi Wu 已提交
1986 1987 1988 1989 1990
    ],
    [
        "write_callback_test",
        "db/write_callback_test.cc",
        "serial",
1991 1992
        [],
        [],
Y
Yi Wu 已提交
1993 1994 1995 1996 1997
    ],
    [
        "write_controller_test",
        "db/write_controller_test.cc",
        "serial",
1998 1999
        [],
        [],
Y
Yi Wu 已提交
2000 2001 2002 2003
    ],
    [
        "write_prepared_transaction_test",
        "utilities/transactions/write_prepared_transaction_test.cc",
2004
        "parallel",
2005 2006
        [],
        [],
Y
Yi Wu 已提交
2007
    ],
2008 2009 2010 2011
    [
        "write_unprepared_transaction_test",
        "utilities/transactions/write_unprepared_transaction_test.cc",
        "parallel",
2012 2013
        [],
        [],
2014
    ],
Y
Yi Wu 已提交
2015
]
2016 2017

# Generate a test rule for each entry in ROCKS_TESTS
Y
Yi Wu 已提交
2018 2019
# Do not build the tests in opt mode, since SyncPoint and other test code
# will not be included.
2020
[
2021 2022 2023 2024 2025
    cpp_unittest(
        name = test_name,
        srcs = [test_cc],
        arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS,
        os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
2026
        compiler_flags = ROCKSDB_COMPILER_FLAGS + extra_compiler_flags,
2027 2028 2029 2030 2031
        preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
        deps = [":rocksdb_test_lib"] + extra_deps,
        external_deps = ROCKSDB_EXTERNAL_DEPS + [
            ("googletest", None, "gtest"),
        ],
2032
    )
2033
    for test_name, test_cc, parallelism, extra_deps, extra_compiler_flags in ROCKS_TESTS
2034 2035
    if not is_opt_mode
]