mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mgr/prometheus: update promtool testcase location
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
This commit is contained in:
parent
b830c555d2
commit
e6b17cde8b
@ -1,6 +1,6 @@
|
||||
include(AddCephTest)
|
||||
|
||||
set(UNITTEST_LIBS GMock::Main GMock::GMock GTest::GTest ${CMAKE_THREAD_LIBS_INIT}
|
||||
set(UNITTEST_LIBS GMock::Main GMock::GMock GTest::GTest ${CMAKE_THREAD_LIBS_INIT}
|
||||
${GSSAPI_LIBRARIES} ${CMAKE_DL_LIBS})
|
||||
|
||||
if(WIN32)
|
||||
@ -163,7 +163,7 @@ endif()
|
||||
add_executable(ceph_test_mutate
|
||||
test_mutate.cc
|
||||
)
|
||||
target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES}
|
||||
target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES}
|
||||
${CMAKE_DL_LIBS})
|
||||
|
||||
if(NOT WIN32)
|
||||
@ -620,7 +620,7 @@ if(PROMTOOL_EXECUTABLE)
|
||||
OUTPUT_QUIET)
|
||||
if(NOT rc)
|
||||
add_ceph_test(run-promtool-unittests
|
||||
${PROMTOOL_EXECUTABLE} test rules ${CMAKE_SOURCE_DIR}/monitoring/prometheus/alerts/test_alerts.yml)
|
||||
${PROMTOOL_EXECUTABLE} test rules ${CMAKE_SOURCE_DIR}/monitoring/prometheus/tests/test_alerts.yml)
|
||||
elseif(NOT promtool_executable_checked)
|
||||
message(WARNING "'${PROMTOOL_EXECUTABLE} test rules' does not work, "
|
||||
"please use a newer prometheus")
|
||||
|
Loading…
Reference in New Issue
Block a user