Skip to content

Commit d93094a

Browse files
authored
[cachebench] Test that cachebench can run a sample workload
1 parent eb87c79 commit d93094a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

cachelib/cachebench/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,14 @@ if (BUILD_TESTS)
124124
add_source_test (consistency/tests/ValueTrackerTest.cpp)
125125
add_source_test (util/tests/NandWritesTest.cpp)
126126
add_source_test (cache/tests/TimeStampTickerTest.cpp)
127+
128+
# Verify that cachebench can run a sample workload
129+
add_test (
130+
NAME cachebench-simple
131+
COMMAND
132+
$<TARGET_FILE:cachebench>
133+
--json_test_config
134+
${CMAKE_CURRENT_SOURCE_DIR}/test_configs/simple_test.json
135+
)
136+
set_tests_properties(cachebench-simple PROPERTIES TIMEOUT 300)
127137
endif()

0 commit comments

Comments
 (0)