From: "plaisthos (Code Review)" Date: Wed, 28 May 2025 11:57:13 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="jevrLgEPUXs="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Add missing header in unit tests Makefile.am List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --jevrLgEPUXs= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld,=20 I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1033?usp=3Demail to look at the new patch set (#2). Change subject: Add missing header in unit tests Makefile.am ...................................................................... Add missing header in unit tests Makefile.am make distcheck fails since we are not listing all headers that are used by the unit tests. Change-Id: I674af04e1a6449544b7def0725337c3b353ea276 --- M tests/unit_tests/openvpn/Makefile.am 1 file changed, 24 insertions(+), 12 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/33/1033/2 diff --git a/tests/unit_tests/openvpn/Makefile.am b/tests/unit_tests/openvp= n/Makefile.am index 471389b..c6c1699 100644 --- a/tests/unit_tests/openvpn/Makefile.am +++ b/tests/unit_tests/openvpn/Makefile.am @@ -43,7 +43,8 @@ argv_testdriver_CFLAGS =3D -I$(top_srcdir)/src/openvpn -I$(top_srcdir)/sr= c/compat @TEST_CFLAGS@ argv_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -L$(top_srcdir)/src/openvpn -Wl= ,--wrap=3Dparse_line -argv_testdriver_SOURCES =3D test_argv.c mock_msg.c mock_msg.h \ +argv_testdriver_SOURCES =3D test_argv.c \ + mock_msg.c mock_msg.h test_common.h \ mock_get_random.c \ $(top_srcdir)/src/openvpn/platform.c \ $(top_srcdir)/src/openvpn/buffer.c \ @@ -52,7 +53,8 @@ buffer_testdriver_CFLAGS =3D -I$(top_srcdir)/src/openvpn -I$(top_srcdir)/= src/compat @TEST_CFLAGS@ buffer_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -L$(top_srcdir)/src/openvpn -= Wl,--wrap=3Dparse_line -buffer_testdriver_SOURCES =3D test_buffer.c mock_msg.c mock_msg.h \ +buffer_testdriver_SOURCES =3D test_buffer.c \ + mock_msg.c mock_msg.h test_common.h \ mock_get_random.c \ $(top_srcdir)/src/openvpn/win32-util.c \ $(top_srcdir)/src/openvpn/platform.c @@ -61,7 +63,8 @@ -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/op= envpn \ @TEST_CFLAGS@ crypto_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -crypto_testdriver_SOURCES =3D test_crypto.c mock_msg.c mock_msg.h \ +crypto_testdriver_SOURCES =3D test_crypto.c \ + mock_msg.c mock_msg.h test_common.h \ $(top_srcdir)/src/openvpn/buffer.c \ $(top_srcdir)/src/openvpn/crypto.c \ $(top_srcdir)/src/openvpn/crypto_mbedtls.c \ @@ -78,8 +81,10 @@ -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/op= envpn \ @TEST_CFLAGS@ ssl_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ $(OPTIONAL_CRYPTO_LIBS) -ssl_testdriver_SOURCES =3D test_ssl.c mock_msg.c mock_msg.h \ - mock_management.c mock_ssl_dependencies.c mock_win32_execve.c \ +ssl_testdriver_SOURCES =3D test_ssl.c \ + mock_msg.c mock_msg.h test_common.h \ + mock_management.c \ + mock_ssl_dependencies.c mock_win32_execve.c \ $(top_srcdir)/src/openvpn/argv.c \ $(top_srcdir)/src/openvpn/base64.c \ $(top_srcdir)/src/openvpn/buffer.c \ @@ -114,7 +119,8 @@ -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/op= envpn \ @TEST_CFLAGS@ packet_id_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -packet_id_testdriver_SOURCES =3D test_packet_id.c mock_msg.c mock_msg.h \ +packet_id_testdriver_SOURCES =3D test_packet_id.c \ + mock_msg.c mock_msg.h test_common.h \ mock_get_random.c \ $(top_srcdir)/src/openvpn/buffer.c \ $(top_srcdir)/src/openvpn/otime.c \ @@ -156,7 +162,8 @@ -Wl,--wrap=3Dbuffer_write_file \ -Wl,--wrap=3Dparse_line \ -Wl,--wrap=3Drand_bytes -tls_crypt_testdriver_SOURCES =3D test_tls_crypt.c mock_msg.c mock_msg.h \ +tls_crypt_testdriver_SOURCES =3D test_tls_crypt.c \ + mock_msg.c mock_msg.h test_common.h \ mock_win32_execve.c \ $(top_srcdir)/src/openvpn/argv.c \ $(top_srcdir)/src/openvpn/base64.c \ @@ -229,7 +236,8 @@ @TEST_CFLAGS@ $(OPTIONAL_CRYPTO_CFLAGS) pkcs11_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ \ $(OPTIONAL_CRYPTO_LIBS) -pkcs11_testdriver_SOURCES =3D test_pkcs11.c mock_msg.c \ +pkcs11_testdriver_SOURCES =3D test_pkcs11.c \ + mock_msg.c test_common.h \ pkey_test_utils.c cert_data.h mock_get_random.c \ $(top_srcdir)/src/openvpn/xkey_helper.c \ $(top_srcdir)/src/openvpn/xkey_provider.c \ @@ -251,7 +259,8 @@ auth_token_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ \ $(OPTIONAL_CRYPTO_LIBS) -auth_token_testdriver_SOURCES =3D test_auth_token.c mock_msg.c \ +auth_token_testdriver_SOURCES =3D test_auth_token.c \ + mock_msg.c test_common.h \ $(top_srcdir)/src/openvpn/buffer.c \ $(top_srcdir)/src/openvpn/crypto.c \ $(top_srcdir)/src/openvpn/crypto_epoch.c \ @@ -269,7 +278,8 @@ @TEST_CFLAGS@ user_pass_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -user_pass_testdriver_SOURCES =3D test_user_pass.c mock_msg.c \ +user_pass_testdriver_SOURCES =3D test_user_pass.c \ + mock_msg.c test_common.h \ $(top_srcdir)/src/openvpn/buffer.c \ $(top_srcdir)/src/openvpn/console.c \ $(top_srcdir)/src/openvpn/env_set.c \ @@ -287,7 +297,8 @@ ncp_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ \ $(OPTIONAL_CRYPTO_LIBS) -ncp_testdriver_SOURCES =3D test_ncp.c mock_msg.c \ +ncp_testdriver_SOURCES =3D test_ncp.c \ + mock_msg.c test_common.h \ $(top_srcdir)/src/openvpn/buffer.c \ $(top_srcdir)/src/openvpn/crypto.c \ $(top_srcdir)/src/openvpn/crypto_epoch.c \ @@ -306,7 +317,8 @@ misc_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -misc_testdriver_SOURCES =3D test_misc.c mock_msg.c \ +misc_testdriver_SOURCES =3D test_misc.c \ + mock_msg.c test_common.h \ mock_get_random.c \ $(top_srcdir)/src/openvpn/buffer.c \ $(top_srcdir)/src/openvpn/options_util.c \ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1033?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: I674af04e1a6449544b7def0725337c3b353ea276 Gerrit-Change-Number: 1033 Gerrit-PatchSet: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newpatchset --jevrLgEPUXs= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos uploaded patch set #2 to this change.

<= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/1033?usp=3Demail">View Chan= ge

Add missing header in unit tests Makefile.am

make distcheck f= ails since we are not listing all headers that are
used by the unit test= s.

Change-Id: I674af04e1a6449544b7def0725337c3b353ea276
---
M = tests/unit_tests/openvpn/Makefile.am
1 file changed, 24 insertions(+), 1= 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn re=
fs/changes/33/1033/2
diff --git a/tests/unit_tests/openvpn/Makefile=
.am b/tests/unit_tests/openvpn/Makefile.am
index 471389b..c= 6c1699 100644
--- a/tests/unit_tests/openvpn/Makefile.am
+++ b/tests/unit_tests/openvpn/Makefile.am
@@= -43,7 +43,8 @@

argv_testdriver_CFLAGS = =3D -I$(top_srcdir)/src/openvpn -I$(top_srcdir)/src/compat @TEST_CFLAGS@
argv_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -L$(top_srcdir)/s= rc/openvpn -Wl,--wrap=3Dparse_line
-argv_testdriver_SOURCES =3D test_argv.c mock_msg.c mock_msg.h = \
+argv_testdriver_SO= URCES =3D test_argv.c \
+ mock_msg.c mock_msg.h test_common.h \
mock_get_rando= m.c \
$(top_srcdir)/src/openvpn/platform.c \
$(top_srcdir)/src/openvpn/buffer.c \

@@ -52,7 +53,8 @= @

buffer_testdriver_CFLAGS =3D -I$(top_= srcdir)/src/openvpn -I$(top_srcdir)/src/compat @TEST_CFLAGS@
buffer_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -L$(top_srcdir)/src/openvpn= -Wl,--wrap=3Dparse_line

+buffer_testdriver_SOURCE= S =3D test_buffer.c \
+ mock_msg.c mock_msg.h test_common.h \
mock_get_random.= c \
$(top_srcdir)/src/openvpn/win32-util.c \
$(top_srcdir)/src/openvpn/platform.c
@@ -61,7 +63,8 @= @
-I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(= top_srcdir)/src/openvpn \
@TEST_CFLAGS@
= crypto_testdriver_LDFLAGS =3D @TEST_LDFLAGS@
-crypto_testdriver_SOURCES =3D test_crypto.c mock_msg= .c mock_msg.h \
+cryp= to_testdriver_SOURCES =3D test_crypto.c \
+ mock_msg.c mock_msg.h test_common.h \
$(top_srcdir)/src/openvpn/buffer.c \
$(top_srcdir)/sr= c/openvpn/crypto.c \
$(top_srcdir)/src/openvpn/crypto_mbe= dtls.c \
@@ -78,8 +81,10 @@
-I$(top_srcdi= r)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn \<= br> @TEST_CFLAGS@
ssl_testdriver_LDFLAGS =3D @TEST_= LDFLAGS@ $(OPTIONAL_CRYPTO_LIBS)
-ssl_testdriver_SOURCES =3D test_ssl.c mock_msg.c mock_msg.h \
- mock_management.c mock= _ssl_dependencies.c mock_win32_execve.c \
+ssl_testdriver_SOURCES =3D test_ssl.c \
+ mock_msg.c mock_msg.h test_commo= n.h \

+ mock_manageme= nt.c \
+ mock_ssl_dep= endencies.c mock_win32_execve.c \
$(top_srcdir)/src/openv= pn/argv.c \
$(top_srcdir)/src/openvpn/base64.c \ $(top_srcdir)/src/openvpn/buffer.c \
@@ -114,7 +1= 19,8 @@
-I$(top_srcdir)/include -I$(top_srcdir)/src/compa= t -I$(top_srcdir)/src/openvpn \
@TEST_CFLAGS@
<= span> packet_id_testdriver_LDFLAGS =3D @TEST_LDFLAGS@
-packet_id_testdriver_SOURCES =3D test_packe= t_id.c mock_msg.c mock_msg.h \
+packet_id_testdriver_SOURCES =3D test_packet_id.c \
+ mock_msg.c mock_msg.h test_comm= on.h \
mock_get_random.c \
$(top_srcdir= )/src/openvpn/buffer.c \
$(top_srcdir)/src/openvpn/otime.= c \
@@ -156,7 +162,8 @@
-Wl,--wrap=3Dbuff= er_write_file \
-Wl,--wrap=3Dparse_line \
-Wl,--wrap=3Drand_bytes
-tls_crypt_testdriver_SOURCES =3D test_tls_crypt.c mock_msg.c mock_msg.= h \
+tls_crypt_testdr= iver_SOURCES =3D test_tls_crypt.c \
+ mock_msg.c mock_msg.h test_common.h \
mo= ck_win32_execve.c \
$(top_srcdir)/src/openvpn/argv.c \

$(top_srcdir)/src/openvpn/base64.c \
@@ -22= 9,7 +236,8 @@
@TEST_CFLAGS@ $(OPTIONAL_CRYPTO_CFLAGS)
pkcs11_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ \
$(OPTIONAL_CRYPTO_LIBS)

-pkcs11_testdriver_SOURCES =3D test_pkcs11.c mock_msg.c \
+pkcs11_testdriver_SOURCES =3D te= st_pkcs11.c \
+ mock= _msg.c test_common.h \
pkey_test_utils.c cert_data.h mock= _get_random.c \
$(top_srcdir)/src/openvpn/xkey_helper.c \=
$(top_srcdir)/src/openvpn/xkey_provider.c \
@@ -251,7 +259,8 @@
auth_token_testdriver_LDFLAGS =3D = @TEST_LDFLAGS@ \
$(OPTIONAL_CRYPTO_LIBS)
=
-auth_token_testdrive= r_SOURCES =3D test_auth_token.c mock_msg.c \
+auth_token_testdriver_SOURCES =3D test_auth_token.= c \
+ mock_msg.c test= _common.h \
$(top_srcdir)/src/openvpn/buffer.c \ $(top_srcdir)/src/openvpn/crypto.c \
$(top_srcd= ir)/src/openvpn/crypto_epoch.c \
@@ -269,7 +278,8 @@=
@TEST_CFLAGS@
user_pass_testdriver_LDFLAGS =3D= @TEST_LDFLAGS@

-user_pass_testdriver_SOURCES =3D test_user_pass.c mock_msg.c \<= /span>
+user_pass_testdriver= _SOURCES =3D test_user_pass.c \
+ mock_msg.c test_common.h \
$(top_srcdir)/src= /openvpn/buffer.c \
$(top_srcdir)/src/openvpn/console.c \=
$(top_srcdir)/src/openvpn/env_set.c \
@@= -287,7 +297,8 @@
ncp_testdriver_LDFLAGS =3D @TEST_LDFLAGS= @ \
$(OPTIONAL_CRYPTO_LIBS)

<= span style=3D"color: hsl(0, 100%, 40%);">-ncp_testdriver_SOURCES =3D test_n= cp.c mock_msg.c \

+nc= p_testdriver_SOURCES =3D test_ncp.c \
+ mock_msg.c test_common.h \
$(top_srcdi= r)/src/openvpn/buffer.c \
$(top_srcdir)/src/openvpn/crypt= o.c \
$(top_srcdir)/src/openvpn/crypto_epoch.c \@@ -306,7 +317,8 @@

misc_testdri= ver_LDFLAGS =3D @TEST_LDFLAGS@

-misc_testdriver_SOURCES =3D test_misc.c mock_msg= .c \
+misc_testdriver= _SOURCES =3D test_misc.c \
+ mock_msg.c test_common.h \
mock_get_random.c \
$(top_srcdir)/src/openvpn/buffer.c \
$(t= op_srcdir)/src/openvpn/options_util.c \

To view, visit change 1033. To unsubscribe, or for help writing mail filters= , visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I674af04e1a6449544b7def07253= 37c3b353ea276
Gerrit-Change-Number: 1033
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newpatchset
--jevrLgEPUXs=--