dont install test bash scripts by default (#18214)
Ilya Mashchenko committed
Jul 22, 2024 at 21:23 UTC
e1d86aa6d2f9f5c35b6aaeddc1aef5500cc76b8c
2 files changed
+23
-28
CMakeLists.txt
+23
-20
@@ -2641,11 +2641,13 @@ install(PROGRAMS
2641
COMPONENT netdata
2642
DESTINATION usr/libexec/netdata/plugins.d)
2643
2644
-install(PROGRAMS
2645
- src/health/notifications/alarm-email.sh
2646
- src/health/notifications/alarm-test.sh
2647
- COMPONENT netdata
2648
- DESTINATION usr/libexec/netdata/plugins.d)
2644
+if(CMAKE_BUILD_TYPE STREQUAL "Debug")
2645
+ install(PROGRAMS
2646
+ src/health/notifications/alarm-email.sh
2647
+ src/health/notifications/alarm-test.sh
2648
+ COMPONENT netdata
2649
+ DESTINATION usr/libexec/netdata/plugins.d)
2650
+endif()
2651
2652
install(FILES
2653
src/health/notifications/health_alarm_notify.conf
@@ -2656,22 +2658,23 @@ install(FILES
2658
# test/ files
2659
#
2660
2659
-configure_file(tests/health_mgmtapi/health-cmdapi-test.sh.in tests/health_mgmtapi/health-cmdapi-test.sh @ONLY)
2660
-configure_file(tests/acls/acl.sh.in tests/acls/acl.sh @ONLY)
2661
-configure_file(tests/urls/request.sh.in tests/urls/request.sh @ONLY)
2662
-configure_file(tests/alarm_repetition/alarm.sh.in tests/alarm_repetition/alarm.sh @ONLY)
2663
-configure_file(tests/template_dimension/template_dim.sh.in tests/template_dimension/template_dim.sh @ONLY)
2664
-configure_file(tests/ebpf/ebpf_thread_function.sh.in tests/ebpf/ebpf_thread_function.sh @ONLY)
2665
-
2666
-install(FILES
2667
- ${CMAKE_BINARY_DIR}/tests/health_mgmtapi/health-cmdapi-test.sh
2668
- ${CMAKE_BINARY_DIR}/tests/acls/acl.sh
2669
- ${CMAKE_BINARY_DIR}/tests/urls/request.sh
2670
- ${CMAKE_BINARY_DIR}/tests/alarm_repetition/alarm.sh
2671
- ${CMAKE_BINARY_DIR}/tests/template_dimension/template_dim.sh
2672
- ${CMAKE_BINARY_DIR}/tests/ebpf/ebpf_thread_function.sh
2673
- DESTINATION usr/libexec/netdata/plugins.d)
2661
+if(CMAKE_BUILD_TYPE STREQUAL "Debug")
2662
+ configure_file(tests/health_mgmtapi/health-cmdapi-test.sh.in tests/health_mgmtapi/health-cmdapi-test.sh @ONLY)
2663
+ configure_file(tests/acls/acl.sh.in tests/acls/acl.sh @ONLY)
2664
+ configure_file(tests/urls/request.sh.in tests/urls/request.sh @ONLY)
2665
+ configure_file(tests/alarm_repetition/alarm.sh.in tests/alarm_repetition/alarm.sh @ONLY)
2666
+ configure_file(tests/template_dimension/template_dim.sh.in tests/template_dimension/template_dim.sh @ONLY)
2667
+ configure_file(tests/ebpf/ebpf_thread_function.sh.in tests/ebpf/ebpf_thread_function.sh @ONLY)
2668
2669
+ install(FILES
2670
+ ${CMAKE_BINARY_DIR}/tests/health_mgmtapi/health-cmdapi-test.sh
2671
+ ${CMAKE_BINARY_DIR}/tests/acls/acl.sh
2672
+ ${CMAKE_BINARY_DIR}/tests/urls/request.sh
2673
+ ${CMAKE_BINARY_DIR}/tests/alarm_repetition/alarm.sh
2674
+ ${CMAKE_BINARY_DIR}/tests/template_dimension/template_dim.sh
2675
+ ${CMAKE_BINARY_DIR}/tests/ebpf/ebpf_thread_function.sh
2676
+ DESTINATION usr/libexec/netdata/plugins.d)
2677
+endif()
2678
#
2679
# charts.d plugin
2680
#
netdata.spec.in
-8
@@ -527,22 +527,14 @@ rm -rf "${RPM_BUILD_ROOT}"
527
%{_libexecdir}/%{name}/install-service.sh
528
%{_libexecdir}/%{name}/%{name}-updater.sh
529
%{_libexecdir}/%{name}/%{name}-uninstaller.sh
530
-%{_libexecdir}/%{name}/plugins.d/acl.sh
531
-%{_libexecdir}/%{name}/plugins.d/alarm.sh
532
-%{_libexecdir}/%{name}/plugins.d/alarm-email.sh
530
%{_libexecdir}/%{name}/plugins.d/alarm-notify.sh
534
-%{_libexecdir}/%{name}/plugins.d/alarm-test.sh
531
%{_libexecdir}/%{name}/plugins.d/anonymous-statistics.sh
532
%{_libexecdir}/%{name}/plugins.d/cgroup-name.sh
533
%{_libexecdir}/%{name}/plugins.d/get-kubernetes-labels.sh
538
-%{_libexecdir}/%{name}/plugins.d/health-cmdapi-test.sh
534
%{_libexecdir}/%{name}/plugins.d/ioping.plugin
535
%{_libexecdir}/%{name}/plugins.d/loopsleepms.sh.inc
541
-%{_libexecdir}/%{name}/plugins.d/request.sh
536
%{_libexecdir}/%{name}/plugins.d/system-info.sh
537
%{_libexecdir}/%{name}/plugins.d/tc-qos-helper.sh
544
-%{_libexecdir}/%{name}/plugins.d/template_dim.sh
545
-%{_libexecdir}/%{name}/plugins.d/ebpf_thread_function.sh
538
539
# cgroup-network detects the network interfaces of CGROUPs
540
# it must be able to use setns() and run cgroup-network-helper.sh as root