Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2022?usp=email
to review the following change.
Change subject: automake: Add build-tests recursive target
......................................................................
automake: Add build-tests recursive target
So that we can build unit-tests without running them.
Something automake doesn't seem to offer out of the
box.
Change-Id: I149d0ba7011e62a115a565813e1f5873907d464e
Signed-off-by: Frank Lichtenheld <[email protected]>
---
M configure.ac
M tests/unit_tests/example_test/Makefile.am
M tests/unit_tests/openvpn/Makefile.am
M tests/unit_tests/openvpnserv/Makefile.am
M tests/unit_tests/plugins/auth-pam/Makefile.am
5 files changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/22/2022/1
diff --git a/configure.ac b/configure.ac
index e83aba7..83ed4d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,8 @@
AC_CANONICAL_HOST
AC_USE_SYSTEM_EXTENSIONS
+AM_EXTRA_RECURSIVE_TARGETS([build-tests])
+
AX_CODE_COVERAGE
AC_ARG_ENABLE(
diff --git a/tests/unit_tests/example_test/Makefile.am
b/tests/unit_tests/example_test/Makefile.am
index 1ae80c8..942e9d1 100644
--- a/tests/unit_tests/example_test/Makefile.am
+++ b/tests/unit_tests/example_test/Makefile.am
@@ -15,3 +15,5 @@
example2_testdriver_CFLAGS = @TEST_CFLAGS@
example2_testdriver_LDFLAGS = @TEST_LDFLAGS@
example2_testdriver_SOURCES = test2.c
+
+build-tests-local: $(check_PROGRAMS)
diff --git a/tests/unit_tests/openvpn/Makefile.am
b/tests/unit_tests/openvpn/Makefile.am
index 38299f5..43a6743 100644
--- a/tests/unit_tests/openvpn/Makefile.am
+++ b/tests/unit_tests/openvpn/Makefile.am
@@ -445,3 +445,5 @@
$(top_srcdir)/src/openvpn/env_set.c \
$(top_srcdir)/src/openvpn/run_command.c \
$(top_srcdir)/src/openvpn/socket_util.c
+
+build-tests-local: $(check_PROGRAMS)
diff --git a/tests/unit_tests/openvpnserv/Makefile.am
b/tests/unit_tests/openvpnserv/Makefile.am
index 19de666..210c9e6 100644
--- a/tests/unit_tests/openvpnserv/Makefile.am
+++ b/tests/unit_tests/openvpnserv/Makefile.am
@@ -14,3 +14,5 @@
$(top_srcdir)/src/openvpnserv/validate.c \
$(top_srcdir)/src//openvpn/wfp_block.c \
$(top_srcdir)/src//openvpn/wfp_block.h
+
+build-tests-local: $(check_PROGRAMS)
diff --git a/tests/unit_tests/plugins/auth-pam/Makefile.am
b/tests/unit_tests/plugins/auth-pam/Makefile.am
index 7da299c..fd7cf91 100644
--- a/tests/unit_tests/plugins/auth-pam/Makefile.am
+++ b/tests/unit_tests/plugins/auth-pam/Makefile.am
@@ -12,3 +12,5 @@
auth_pam_testdriver_SOURCES = test_search_and_replace.c
$(top_srcdir)/src/plugins/auth-pam/utils.h
$(top_srcdir)/src/plugins/auth-pam/utils.c
auth_pam_testdriver_CFLAGS = @TEST_CFLAGS@
-I$(top_srcdir)/src/plugins/auth-pam
auth_pam_testdriver_LDFLAGS = @TEST_LDFLAGS@
+
+build-tests-local: $(check_PROGRAMS)
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2022?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I149d0ba7011e62a115a565813e1f5873907d464e
Gerrit-Change-Number: 2022
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Lichtenheld <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel