-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable test on prometheus-cpp which not need (#1363)
- Loading branch information
1 parent
c1e6e16
commit 13ac5c3
Showing
2 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
foreach(testname prometheus_exporter_test prometheus_collector_test | ||
prometheus_exporter_utils_test) | ||
add_executable(${testname} "${testname}.cc") | ||
target_link_libraries( | ||
${testname} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} | ||
prometheus_exporter_deprecated prometheus-cpp::pull) | ||
gtest_add_tests( | ||
TARGET ${testname} | ||
TEST_PREFIX exporter. | ||
TEST_LIST ${testname}) | ||
endforeach() | ||
if(WITH_METRICS_PREVIEW) | ||
foreach(testname prometheus_exporter_test prometheus_collector_test | ||
prometheus_exporter_utils_test) | ||
add_executable(${testname} "${testname}.cc") | ||
target_link_libraries( | ||
${testname} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} | ||
prometheus_exporter_deprecated prometheus-cpp::pull) | ||
gtest_add_tests( | ||
TARGET ${testname} | ||
TEST_PREFIX exporter. | ||
TEST_LIST ${testname}) | ||
endforeach() | ||
endif() |