From: "cron2 (Code Review)" Date: Tue, 19 Dec 2023 10:09:42 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <6af3a511077fb5cf8943257a9430b50aa619ff61-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="AajJGt6n+Qw="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: tests: disable automake serial_tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --AajJGt6n+Qw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/477?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos Change subject: tests: disable automake serial_tests ...................................................................... tests: disable automake serial_tests Serial mode is the old one and offers much less options for running the tests. Generally our tests seem to work fine with the newer parallel mode. The only reason we stuck with serial_tests seems to be that we didn't like that it doesn't output the test output by default. We could fix that with a custom test driver. But will put that into a separate commit. Change-Id: Ic7265d89142637b0963a6847c6beb06d9163bbb1 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Message-Id: <20231214111635.237429-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27= 812.html Signed-off-by: Gert Doering --- M configure.ac M tests/Makefile.am M tests/unit_tests/example_test/Makefile.am M tests/unit_tests/openvpn/Makefile.am M tests/unit_tests/plugins/auth-pam/Makefile.am 5 files changed, 9 insertions(+), 15 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/477/3 diff --git a/configure.ac b/configure.ac index 54f79ab..2823f04 100644 --- a/configure.ac +++ b/configure.ac @@ -41,20 +41,6 @@ AC_CONFIG_SRCDIR([src/openvpn/syshead.h]) AC_CONFIG_MACRO_DIR([m4]) -dnl Initialize automake. automake < 1.12 didn't have serial-tests and -dnl gives an error if it sees this, but for automake >=3D 1.13 -dnl serial-tests is required so we have to include it. Solution is to -dnl test for the version of automake (by running an external command) -dnl and provide it if necessary. Note we have to do this entirely using -dnl m4 macros since automake queries this macro by running -dnl 'autoconf --trace ...'. -m4_define([serial_tests], [ - m4_esyscmd([automake --version | - head -1 | - awk '{split ($NF,a,"."); if (a[1] =3D=3D 1 && a[2] >=3D 12= ) { print "serial-tests" }}' - ]) -]) - dnl Automake 1.14+ warns if sources are in sub-directories but subdir-obje= cts dnl options is not enabled. However, automake before 1.15a has a bug that = causes dnl variable expansion to fail in foo_SOURCES when this option is used. @@ -69,7 +55,7 @@ # This foreign option prevents autoreconf from overriding our COPYING and # INSTALL targets: -AM_INIT_AUTOMAKE(foreign serial_tests subdir_objects 1.9) dnl NB: Do not [= quote] this parameter. +AM_INIT_AUTOMAKE(foreign subdir_objects 1.9) dnl NB: Do not [quote] this p= arameter. AC_CANONICAL_HOST AC_USE_SYSTEM_EXTENSIONS diff --git a/tests/Makefile.am b/tests/Makefile.am index 80673d5..6c71067 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -14,6 +14,8 @@ SUBDIRS =3D unit_tests +AM_TESTSUITE_SUMMARY_HEADER =3D ' for $(PACKAGE_STRING) System Tests' + if !WIN32 test_scripts =3D t_client.sh t_lpback.sh t_cltsrv.sh if HAVE_SITNL diff --git a/tests/unit_tests/example_test/Makefile.am b/tests/unit_tests/e= xample_test/Makefile.am index 24eb0ba..1ae80c8 100644 --- a/tests/unit_tests/example_test/Makefile.am +++ b/tests/unit_tests/example_test/Makefile.am @@ -1,5 +1,7 @@ AUTOMAKE_OPTIONS =3D foreign +AM_TESTSUITE_SUMMARY_HEADER =3D ' for $(PACKAGE_STRING) example Unit-Tests' + check_PROGRAMS =3D example_testdriver example2_testdriver if !CROSS_COMPILING diff --git a/tests/unit_tests/openvpn/Makefile.am b/tests/unit_tests/openvp= n/Makefile.am index ef45b11..cecf4dc 100644 --- a/tests/unit_tests/openvpn/Makefile.am +++ b/tests/unit_tests/openvpn/Makefile.am @@ -1,5 +1,7 @@ AUTOMAKE_OPTIONS =3D foreign +AM_TESTSUITE_SUMMARY_HEADER =3D ' for $(PACKAGE_STRING) Unit-Tests' + test_binaries=3D if HAVE_LD_WRAP_SUPPORT diff --git a/tests/unit_tests/plugins/auth-pam/Makefile.am b/tests/unit_tes= ts/plugins/auth-pam/Makefile.am index de5e96e..ba32013 100644 --- a/tests/unit_tests/plugins/auth-pam/Makefile.am +++ b/tests/unit_tests/plugins/auth-pam/Makefile.am @@ -1,5 +1,7 @@ AUTOMAKE_OPTIONS =3D foreign +AM_TESTSUITE_SUMMARY_HEADER =3D ' for $(PACKAGE_STRING) auth_pam Plugin Un= it-Tests' + if ENABLE_PLUGIN_AUTH_PAM check_PROGRAMS =3D auth_pam_testdriver TESTS =3D $(check_PROGRAMS) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/477?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ic7265d89142637b0963a6847c6beb06d9163bbb1 Gerrit-Change-Number: 477 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --AajJGt6n+Qw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #3 to the change originally cr= eated by flichtenheld.

View Change

The following approvals got outda= ted and were removed: Code-Review+2 by plaisthos

tests: disable automake serial_tests

Seri= al mode is the old one and offers much less options for
running the test= s. Generally our tests seem to work fine
with the newer parallel mode. T= he only reason we stuck with
serial_tests seems to be that we didn't= like that it doesn't
output the test output by default. We could fi= x that with a
custom test driver. But will put that into a separate comm= it.

Change-Id: Ic7265d89142637b0963a6847c6beb06d9163bbb1
Signed-o= ff-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Arne Schwabe= <arne-openvpn@...1227...>
Message-Id: <20231214111635.237429-1= -frank@...2641...>
URL: https://www.mail-archive.com/openvpn-devel@...1224...= sts.sourceforge.net/msg27812.html
Signed-off-by: Gert Doering <gert@...220...= ..1296...>
---
M configure.ac
M tests/Makefile.am
M tests/un= it_tests/example_test/Makefile.am
M tests/unit_tests/openvpn/Makefile.am=
M tests/unit_tests/plugins/auth-pam/Makefile.am
5 files changed, 9 i= nsertions(+), 15 deletions(-)

git pull ssh://gerrit.openvpn.net:2=
9418/openvpn refs/changes/77/477/3
diff --git a/configure.ac b/conf=
igure.ac
index 54f79ab..2823f04 100644
--- = a/configure.ac
+++ b/configure.ac
@@ -41,20= +41,6 @@
AC_CONFIG_SRCDIR([src/openvpn/syshead.h])=
AC_CONFIG_MACRO_DIR([m4])

-dnl Initialize automake. automake < 1.= 12 didn't have serial-tests and
-dnl gives an error if it sees this, but for automake >=3D = 1.13
-dnl serial-tests = is required so we have to include it. Solution is to
-dnl test for the version of automake (by ru= nning an external command)
-dnl and provide it if necessary. Note we have to do this entirely usi= ng
-dnl m4 macros since= automake queries this macro by running
-dnl 'autoconf --trace ...'.
-m4_define([serial_tests], [
- m4_esyscmd([automake --version |<= /span>
- head -= 1 |
- aw= k '{split ($NF,a,"."); if (a[1] =3D=3D 1 && a[2] >= =3D 12) { print "serial-tests" }}'
- ])
-])
-=
dnl Automake 1.14+ warns if sources are in sub-directories but s= ubdir-objects
dnl options is not enabled. However, automak= e before 1.15a has a bug that causes
dnl variable expansio= n to fail in foo_SOURCES when this option is used.
@@ -69,7= +55,7 @@

# This foreign option prevents= autoreconf from overriding our COPYING and
# INSTALL targ= ets:
-AM_INIT_AUTOMAKE(= foreign serial_tests subdir_objects 1.9) dnl NB: Do not [quote] this parame= ter.
+AM_INIT_AUTOMAK= E(foreign subdir_objects 1.9) dnl NB: Do not [quote] this parameter.=
AC_CANONICAL_HOST
AC_USE_SYSTEM_EXTENSIONS

diff --git a/tests/Makefile.am b/tests/Makefi= le.am
index 80673d5..6c71067 100644
--- a/t= ests/Makefile.am
+++ b/tests/Makefile.am
@@= -14,6 +14,8 @@

SUBDIRS =3D unit_tests

+AM_= TESTSUITE_SUMMARY_HEADER =3D ' for $(PACKAGE_STRING) System Tests'<= /span>
+
if= !WIN32
test_scripts =3D t_client.sh t_lpback.sh t_cltsrv.= sh
if HAVE_SITNL
diff --git a/tests/unit_t= ests/example_test/Makefile.am b/tests/unit_tests/example_test/Makefile.am
index 24eb0ba..1ae80c8 100644
--- a/tests/un= it_tests/example_test/Makefile.am
+++ b/tests/unit_tests/ex= ample_test/Makefile.am
@@ -1,5 +1,7 @@
AUT= OMAKE_OPTIONS =3D foreign

+AM_TESTSUITE_SUMMARY_HEADER =3D ' for $(PACKAGE= _STRING) example Unit-Tests'
+
check_PROGRAMS =3D example_testdriver exampl= e2_testdriver

if !CROSS_COMPILING=
diff --git a/tests/unit_tests/openvpn/Makefile.am b/tests/unit_te= sts/openvpn/Makefile.am
index ef45b11..cecf4dc 100644

--- a/tests/unit_tests/openvpn/Makefile.am
+++ b= /tests/unit_tests/openvpn/Makefile.am
@@ -1,5 +1,7 @@
AUTOMAKE_OPTIONS =3D foreign

+AM_TESTSUITE_SUMMARY_HEADER =3D '= ; for $(PACKAGE_STRING) Unit-Tests'
+
test_binaries=3D

if HAVE_LD_WRAP_SUPPORT
diff --git a/tests/u= nit_tests/plugins/auth-pam/Makefile.am b/tests/unit_tests/plugins/auth-pam/= Makefile.am
index de5e96e..ba32013 100644
-= -- a/tests/unit_tests/plugins/auth-pam/Makefile.am
+++ b/te= sts/unit_tests/plugins/auth-pam/Makefile.am
@@ -1,5 +1,7 @@=
AUTOMAKE_OPTIONS =3D foreign

= +AM_TESTSUITE_SUMMARY_HEADER = =3D ' for $(PACKAGE_STRING) auth_pam Plugin Unit-Tests'
<= span style=3D"color: hsl(120, 100%, 40%);">+

if ENABLE_PLU= GIN_AUTH_PAM
check_PROGRAMS =3D auth_pam_testdriver=
TESTS =3D $(check_PROGRAMS)

= To view, visit change 477. To unsubscribe, or for help writing mail filters, vis= it settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic7265d89142637b0963a6847c6b= eb06d9163bbb1
Gerrit-Change-Number: 477
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--AajJGt6n+Qw=--