]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test,cmake:remove run-promtool-unitests.sh script 41597/head
authorAashish Sharma <aashishsharma@localhost.localdomain>
Wed, 26 May 2021 07:08:33 +0000 (12:38 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Tue, 1 Jun 2021 05:45:27 +0000 (11:15 +0530)
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 <aasharma@redhat.com>
src/test/CMakeLists.txt
src/test/run-promtool-unittests.sh [deleted file]

index 43c449c02264b4da61fd3ad6ad4f7eb9f87933b8..0d64ae7f7621b6ecfe7bc6d44a014a66463c82d2 100644 (file)
@@ -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 (executable)
index 84fc1d7..0000000
+++ /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