From: Paul Cuzner Date: Mon, 25 Oct 2021 21:42:49 +0000 (+1300) Subject: mgr/prometheus: update promtool testcase location X-Git-Tag: v16.2.8~246^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a258d57d5339abdea4d0201d714b8acfb33ea363;p=ceph.git mgr/prometheus: update promtool testcase location Signed-off-by: Paul Cuzner Conflicts: src/test/CMakeLists.txt --- diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 3c7625d93eba..a82423ddab28 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -157,7 +157,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) @@ -599,8 +599,8 @@ 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) - else() + ${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") endif()