Move Makefile rules for pid_test inside conditional for code
authorDagobert Michelsen <dam@opencsw.org>
Fri, 5 Jul 2019 09:16:25 +0000 (11:16 +0200)
committerMatthias Runge <mrunge@redhat.com>
Fri, 19 Jul 2019 07:34:41 +0000 (09:34 +0200)
(cherry picked from commit 45b8c056d89f4b029e6017035ce6a4a37a36d260)

Makefile.am

index 9b9698f..f2732e1 100644 (file)
@@ -376,11 +376,6 @@ test_utils_config_cores_SOURCES = \
        src/testing.h
 test_utils_config_cores_LDADD = libplugin_mock.la
 
-test_utils_proc_pids_SOURCES = \
-       src/utils/proc_pids/proc_pids_test.c \
-       src/testing.h
-test_utils_proc_pids_LDADD = libplugin_mock.la
-
 libavltree_la_SOURCES = \
        src/utils/avltree/avltree.c \
        src/utils/avltree/avltree.h
@@ -1088,8 +1083,14 @@ test_plugin_intel_rdt_CPPFLAGS = $(AM_CPPFLAGS)
 test_plugin_intel_rdt_LDFLAGS = $(PLUGIN_LDFLAGS)
 test_plugin_intel_rdt_LDADD = liboconfig.la libplugin_mock.la
 check_PROGRAMS += test_plugin_intel_rdt
-TESTS += test_utils_proc_pids
 TESTS += test_plugin_intel_rdt
+
+test_utils_proc_pids_SOURCES = \
+       src/utils/proc_pids/proc_pids_test.c \
+       src/testing.h
+test_utils_proc_pids_LDADD = libplugin_mock.la
+check_PROGRAMS += test_utils_proc_pids
+TESTS += test_utils_proc_pids
 endif
 
 if BUILD_PLUGIN_INTERFACE