From 3df65eb0f7e50d4e081c56716ce4997f7b139079 Mon Sep 17 00:00:00 2001 From: AlnisM <31770592+AlnisM@users.noreply.github.com> Date: Mon, 11 May 2026 15:09:49 -0700 Subject: [PATCH] [cachebench] Test that cachebench can run a sample workload --- cachelib/cachebench/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cachelib/cachebench/CMakeLists.txt b/cachelib/cachebench/CMakeLists.txt index 1bc5105c1..bb8bdb05d 100644 --- a/cachelib/cachebench/CMakeLists.txt +++ b/cachelib/cachebench/CMakeLists.txt @@ -124,4 +124,14 @@ if (BUILD_TESTS) add_source_test (consistency/tests/ValueTrackerTest.cpp) add_source_test (util/tests/NandWritesTest.cpp) add_source_test (cache/tests/TimeStampTickerTest.cpp) + + # Verify that cachebench can run a sample workload + add_test ( + NAME cachebench-simple + COMMAND + $ + --json_test_config + ${CMAKE_CURRENT_SOURCE_DIR}/test_configs/simple_test.json + ) + set_tests_properties(cachebench-simple PROPERTIES TIMEOUT 300) endif()