7d79b32618
Summary: db_stress_tool.cc now is a giant file. In order to main it easier to improve and maintain, break it down to multiple source files. Most classes are turned into their own files. Separate .h and .cc files are created for gflag definiations. Another .h and .cc files are created for some common functions. Some test execution logic that is only loosely related to class StressTest is moved to db_stress_driver.h and db_stress_driver.cc. All the files are located under db_stress_tool/. The directory name is created as such because if we end it with either stress or test, .gitignore will ignore any file under it and makes it prone to issues in developements. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6134 Test Plan: Build under GCC7 with and without LITE on using GNU Make. Build with GCC 4.8. Build with cmake with -DWITH_TOOL=1 Differential Revision: D18876064 fbshipit-source-id: b25d0a7451840f31ac0f5ebb0068785f783fdf7d
15 lines
388 B
CMake
15 lines
388 B
CMake
add_executable(db_stress${ARTIFACT_SUFFIX}
|
|
db_stress.cc
|
|
db_stress_tool.cc
|
|
batched_ops_stress.cc
|
|
cf_consistency_stress.cc
|
|
db_stress_common.cc
|
|
db_stress_driver.cc
|
|
db_stress_test_base.cc
|
|
db_stress_shared_state.cc
|
|
db_stress_gflags.cc
|
|
db_stress_tool.cc
|
|
no_batched_ops_stress.cc)
|
|
target_link_libraries(db_stress${ARTIFACT_SUFFIX} ${LIBS})
|
|
list(APPEND tool_deps db_stress)
|