unit-tests: Rename targets for libstrongswan and kernel-netlink
authorThomas Egerer <thomas.egerer@secunet.com>
Wed, 8 Nov 2017 17:16:52 +0000 (18:16 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 9 Nov 2017 08:11:42 +0000 (09:11 +0100)
libstrongswan and kernel-netlink are the only two components which do
not adhere to the naming scheme used for all other tests. If the tests
are run by an external application this imposes problems due to clashing
names.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
src/libcharon/plugins/kernel_netlink/Makefile.am
src/libstrongswan/tests/Makefile.am

index 41c7304..0e39c0d 100644 (file)
@@ -25,22 +25,22 @@ libstrongswan_kernel_netlink_la_LIBADD = $(DLLIB)
 libstrongswan_kernel_netlink_la_LDFLAGS = -module -avoid-version
 
 
-TESTS = tests
+TESTS = kernel_netlink_tests
 
 check_PROGRAMS = $(TESTS)
 
-tests_SOURCES = \
+kernel_netlink_tests_SOURCES = \
        tests.h tests.c \
        suites/test_socket.c \
        kernel_netlink_shared.c
 
-tests_CFLAGS = \
+kernel_netlink_tests_CFLAGS = \
        -I$(top_srcdir)/src/libstrongswan \
        -I$(top_srcdir)/src/libstrongswan/tests \
        -DNETLINK_MSG_LOSS_HOOK=netlink_msg_loss \
        @COVERAGE_CFLAGS@
 
-tests_LDFLAGS = @COVERAGE_LDFLAGS@
-tests_LDADD = \
+kernel_netlink_tests_LDFLAGS = @COVERAGE_LDFLAGS@
+kernel_netlink_tests_LDADD = \
        $(top_builddir)/src/libstrongswan/libstrongswan.la \
        $(top_builddir)/src/libstrongswan/tests/libtest.la
index d764a6a..07f5eb5 100644 (file)
@@ -15,11 +15,11 @@ libtest_la_LIBADD = \
   $(PTHREADLIB) $(ATOMICLIB)
 
 
-TESTS = tests
+TESTS = libstrongswan_tests
 
 check_PROGRAMS = $(TESTS)
 
-tests_SOURCES = tests.h tests.c \
+libstrongswan_tests_SOURCES = tests.h tests.c \
   suites/test_linked_list.c \
   suites/test_enumerator.c \
   suites/test_linked_list_enumerator.c \
@@ -59,14 +59,14 @@ tests_SOURCES = tests.h tests.c \
   suites/test_ed25519.c \
   suites/test_signature_params.c
 
-tests_CFLAGS = \
+libstrongswan_tests_CFLAGS = \
   -I$(top_srcdir)/src/libstrongswan \
   -I$(top_srcdir)/src/libstrongswan/tests \
   -DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \
   -DPLUGINS=\""${s_plugins}\"" \
   @COVERAGE_CFLAGS@
 
-tests_LDFLAGS = @COVERAGE_LDFLAGS@
-tests_LDADD = \
+libstrongswan_tests_LDFLAGS = @COVERAGE_LDFLAGS@
+libstrongswan_tests_LDADD = \
   $(top_builddir)/src/libstrongswan/libstrongswan.la \
   libtest.la