0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-26 05:47:20 +00:00

dont install test bash scripts by default ()

This commit is contained in:
Ilya Mashchenko 2024-07-22 21:23:17 +03:00 committed by GitHub
parent 6723ff6046
commit e1d86aa6d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 28 deletions

View file

@ -2641,11 +2641,13 @@ install(PROGRAMS
COMPONENT netdata
DESTINATION usr/libexec/netdata/plugins.d)
install(PROGRAMS
src/health/notifications/alarm-email.sh
src/health/notifications/alarm-test.sh
COMPONENT netdata
DESTINATION usr/libexec/netdata/plugins.d)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
install(PROGRAMS
src/health/notifications/alarm-email.sh
src/health/notifications/alarm-test.sh
COMPONENT netdata
DESTINATION usr/libexec/netdata/plugins.d)
endif()
install(FILES
src/health/notifications/health_alarm_notify.conf
@ -2656,22 +2658,23 @@ install(FILES
# test/ files
#
configure_file(tests/health_mgmtapi/health-cmdapi-test.sh.in tests/health_mgmtapi/health-cmdapi-test.sh @ONLY)
configure_file(tests/acls/acl.sh.in tests/acls/acl.sh @ONLY)
configure_file(tests/urls/request.sh.in tests/urls/request.sh @ONLY)
configure_file(tests/alarm_repetition/alarm.sh.in tests/alarm_repetition/alarm.sh @ONLY)
configure_file(tests/template_dimension/template_dim.sh.in tests/template_dimension/template_dim.sh @ONLY)
configure_file(tests/ebpf/ebpf_thread_function.sh.in tests/ebpf/ebpf_thread_function.sh @ONLY)
install(FILES
${CMAKE_BINARY_DIR}/tests/health_mgmtapi/health-cmdapi-test.sh
${CMAKE_BINARY_DIR}/tests/acls/acl.sh
${CMAKE_BINARY_DIR}/tests/urls/request.sh
${CMAKE_BINARY_DIR}/tests/alarm_repetition/alarm.sh
${CMAKE_BINARY_DIR}/tests/template_dimension/template_dim.sh
${CMAKE_BINARY_DIR}/tests/ebpf/ebpf_thread_function.sh
DESTINATION usr/libexec/netdata/plugins.d)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
configure_file(tests/health_mgmtapi/health-cmdapi-test.sh.in tests/health_mgmtapi/health-cmdapi-test.sh @ONLY)
configure_file(tests/acls/acl.sh.in tests/acls/acl.sh @ONLY)
configure_file(tests/urls/request.sh.in tests/urls/request.sh @ONLY)
configure_file(tests/alarm_repetition/alarm.sh.in tests/alarm_repetition/alarm.sh @ONLY)
configure_file(tests/template_dimension/template_dim.sh.in tests/template_dimension/template_dim.sh @ONLY)
configure_file(tests/ebpf/ebpf_thread_function.sh.in tests/ebpf/ebpf_thread_function.sh @ONLY)
install(FILES
${CMAKE_BINARY_DIR}/tests/health_mgmtapi/health-cmdapi-test.sh
${CMAKE_BINARY_DIR}/tests/acls/acl.sh
${CMAKE_BINARY_DIR}/tests/urls/request.sh
${CMAKE_BINARY_DIR}/tests/alarm_repetition/alarm.sh
${CMAKE_BINARY_DIR}/tests/template_dimension/template_dim.sh
${CMAKE_BINARY_DIR}/tests/ebpf/ebpf_thread_function.sh
DESTINATION usr/libexec/netdata/plugins.d)
endif()
#
# charts.d plugin
#

View file

@ -527,22 +527,14 @@ rm -rf "${RPM_BUILD_ROOT}"
%{_libexecdir}/%{name}/install-service.sh
%{_libexecdir}/%{name}/%{name}-updater.sh
%{_libexecdir}/%{name}/%{name}-uninstaller.sh
%{_libexecdir}/%{name}/plugins.d/acl.sh
%{_libexecdir}/%{name}/plugins.d/alarm.sh
%{_libexecdir}/%{name}/plugins.d/alarm-email.sh
%{_libexecdir}/%{name}/plugins.d/alarm-notify.sh
%{_libexecdir}/%{name}/plugins.d/alarm-test.sh
%{_libexecdir}/%{name}/plugins.d/anonymous-statistics.sh
%{_libexecdir}/%{name}/plugins.d/cgroup-name.sh
%{_libexecdir}/%{name}/plugins.d/get-kubernetes-labels.sh
%{_libexecdir}/%{name}/plugins.d/health-cmdapi-test.sh
%{_libexecdir}/%{name}/plugins.d/ioping.plugin
%{_libexecdir}/%{name}/plugins.d/loopsleepms.sh.inc
%{_libexecdir}/%{name}/plugins.d/request.sh
%{_libexecdir}/%{name}/plugins.d/system-info.sh
%{_libexecdir}/%{name}/plugins.d/tc-qos-helper.sh
%{_libexecdir}/%{name}/plugins.d/template_dim.sh
%{_libexecdir}/%{name}/plugins.d/ebpf_thread_function.sh
# cgroup-network detects the network interfaces of CGROUPs
# it must be able to use setns() and run cgroup-network-helper.sh as root