From 479d738be1832e75623292545442a14cf50b8321 Mon Sep 17 00:00:00 2001 From: Aashish Sharma Date: Wed, 26 May 2021 12:38:33 +0530 Subject: [PATCH] test,cmake:remove run-promtool-unitests.sh script This PR intends to remove the run-promtool-unittests.sh script as CMakeLists.txt handles the promtool execution (also adding the description to run these tests in Readme.md) Signed-off-by: Aashish Sharma --- src/test/CMakeLists.txt | 5 +---- src/test/run-promtool-unittests.sh | 13 ------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100755 src/test/run-promtool-unittests.sh diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 43c449c0226..0d64ae7f762 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -620,10 +620,7 @@ if(PROMTOOL_EXECUTABLE) "please use a newer prometheus") endif() else() - if(LINUX) - add_ceph_test(run-promtool-unittests - {CMAKE_CURRENT_SOURCE_DIR}/run-promtool-unittests.sh) - endif() + message(WARNING "run-promtool-unittests is skipped due to missing promtool") endif() set_property( diff --git a/src/test/run-promtool-unittests.sh b/src/test/run-promtool-unittests.sh deleted file mode 100755 index 84fc1d7d3cc..00000000000 --- a/src/test/run-promtool-unittests.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -set -ex - -SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" -: ${CEPH_ROOT:=$SCRIPTPATH/../../} - -sudo docker run --rm \ - -v "$CEPH_ROOT":/ceph \ - --name=promtool \ - --network=host \ - dnanexus/promtool:2.9.2 \ - test rules /ceph/monitoring/prometheus/alerts/test_alerts.yml -- 2.47.3