Skip to content

Commit 0ed1d03

Browse files
AlnisMmeta-codesync[bot]
authored andcommitted
Test that cachebench can run a sample workload (#458)
Summary: Pull Request resolved: #458 Reviewed By: rlyerly Differential Revision: D105186224 Pulled By: AlnisM fbshipit-source-id: b233aa788bc8cf3be0bc44c9b82da8ee6615674f
1 parent 7bc1216 commit 0ed1d03

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)