From: "cron2 (Code Review)" Date: Wed, 4 Feb 2026 16:25:14 +0000 In-Reply-To: References: Reply-To: gert@...1296..., 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="mG4dJ8fpzvQ="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[release/2.6]: Add missing header in unit tests Makefile.am List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --mG4dJ8fpzvQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/15= 09?usp=3Demail ) 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 Signed-off-by: Arne Schwabe (cherry picked from commit c2776ee0ff03832bb2213ebd19e9a14d37445bed) Acked-by: Gert Doering Acked-by: Arne Schwabe Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1509 https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35534.h= tml Message-Id: <20260204161322.149284-1-frank@...2641...> Signed-off-by: Gert Doering --- M tests/unit_tests/openvpn/Makefile.am 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/tests/unit_tests/openvpn/Makefile.am b/tests/unit_tests/openvp= n/Makefile.am index 38a7ab4..0a0f4f0 100644 --- a/tests/unit_tests/openvpn/Makefile.am +++ b/tests/unit_tests/openvpn/Makefile.am @@ -32,7 +32,8 @@ argv_testdriver_CFLAGS =3D @TEST_CFLAGS@ -I$(top_srcdir)/src/openvpn -I$(= top_srcdir)/src/compat 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 \ @@ -41,7 +42,8 @@ buffer_testdriver_CFLAGS =3D @TEST_CFLAGS@ -I$(top_srcdir)/src/openvpn -I= $(top_srcdir)/src/compat 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 @@ -49,7 +51,8 @@ crypto_testdriver_CFLAGS =3D @TEST_CFLAGS@ \ -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/op= envpn 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 \ @@ -64,7 +67,8 @@ packet_id_testdriver_CFLAGS =3D @TEST_CFLAGS@ \ -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/op= envpn 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 \ @@ -77,7 +81,7 @@ pkt_testdriver_CFLAGS =3D @TEST_CFLAGS@ \ -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/op= envpn pkt_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ -pkt_testdriver_SOURCES =3D test_pkt.c mock_msg.c mock_msg.h mock_win32_exe= cve.c \ +pkt_testdriver_SOURCES =3D test_pkt.c mock_msg.c mock_msg.h mock_win32_exe= cve.c test_common.h \ $(top_srcdir)/src/openvpn/argv.c \ $(top_srcdir)/src/openvpn/base64.c \ $(top_srcdir)/src/openvpn/buffer.c \ @@ -103,7 +107,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 \ @@ -174,7 +179,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_mbedtls.c \ @@ -192,7 +198,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_mbedtls.c \ @@ -209,7 +216,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/+/1509?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: I674af04e1a6449544b7def0725337c3b353ea276 Gerrit-Change-Number: 1509 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-CC: openvpn-devel Gerrit-CC: plaisthos --mG4dJ8fpzvQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

Add missing header in unit tests Makefile.am
=
make distcheck fails since we are not listing all headers that are
u= sed by the unit tests.

Change-Id: I674af04e1a6449544b7def0725337c3b3= 53ea276
Signed-off-by: Arne Schwabe <arne-openvpn@...1227...>
(= cherry picked from commit c2776ee0ff03832bb2213ebd19e9a14d37445bed)
Acke= d-by: Gert Doering <gert@...1296...>
Acked-by: Arne Schwabe <ar= ne-openvpn@...1227...>
Gerrit URL: https://gerrit.openvpn.net/c/openv= pn/+/1509
https://www.mail-archive.com/openvpn-devel@...1223...= et/msg35534.html
Message-Id: <20260204161322.149284-1-frank@...2723...= .>
Signed-off-by: Gert Doering <gert@...1296...>
---
M te= sts/unit_tests/openvpn/Makefile.am
1 file changed, 17 insertions(+), 9 d= eletions(-)

diff --git a/tests/unit_tests/openvpn/Makefile.am b/tests/unit_tests/ope=
nvpn/Makefile.am
index 38a7ab4..0a0f4f0 100644
--- a/tests/unit_tests/openvpn/Makefile.am
+++ b/tests/= unit_tests/openvpn/Makefile.am
@@ -32,7 +32,8 @@
=
argv_testdriver_CFLAGS =3D @TEST_CFLAGS@ -I$(top_= srcdir)/src/openvpn -I$(top_srcdir)/src/compat
argv_testdr= iver_LDFLAGS =3D @TEST_LDFLAGS@ -L$(top_srcdir)/src/openvpn -Wl,--wrap=3Dpa= rse_line
-argv_testdriv= er_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/op= envpn/buffer.c \
@@ -41,7 +42,8 @@
=
buffer_testdriver_CFLAGS =3D @TEST_CFLAGS@ -I$(top_srcdir)/src/= openvpn -I$(top_srcdir)/src/compat
buffer_testdriver_LDFLA= GS =3D @TEST_LDFLAGS@ -L$(top_srcdir)/src/openvpn -Wl,--wrap=3Dparse_line
-buffer_testdriver_SOURC= ES =3D test_buffer.c mock_msg.c mock_msg.h \
+buffer_testdriver_SOURCES =3D test_buffer.c \
+ mock_msg.c mock_msg.h t= est_common.h \
mock_get_random.c \
$(to= p_srcdir)/src/openvpn/win32-util.c \
$(top_srcdir)/src/op= envpn/platform.c
@@ -49,7 +51,8 @@
crypto_= testdriver_CFLAGS =3D @TEST_CFLAGS@ \
-I$(top_srcdir)/in= clude -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn
crypto_testdriver_LDFLAGS =3D @TEST_LDFLAGS@

-crypto_testdriver_SOURCES =3D test_crypto.c mock_= msg.c mock_msg.h \
+c= rypto_testdriver_SOURCES =3D test_crypto.c \
+ mock_msg.c mock_msg.h test_common.h \
<= span> $(top_srcdir)/src/openvpn/buffer.c \

$(top_srcdir)= /src/openvpn/crypto.c \
$(top_srcdir)/src/openvpn/crypto_= mbedtls.c \
@@ -64,7 +67,8 @@
packet_id_te= stdriver_CFLAGS =3D @TEST_CFLAGS@ \
-I$(top_srcdir)/incl= ude -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn
= 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 \
@@ -77,7 +81,7 @@
pkt_testdriver_CFLAGS = =3D @TEST_CFLAGS@ \
-I$(top_srcdir)/include -I$(top_srcdi= r)/src/compat -I$(top_srcdir)/src/openvpn
pkt_testdriver_L= DFLAGS =3D @TEST_LDFLAGS@
-pkt_testdriver_SOURCES =3D test_pkt.c mock_msg.c mock_msg.h mock_win32_= execve.c \
+pkt_testd= river_SOURCES =3D test_pkt.c mock_msg.c mock_msg.h mock_win32_execve.c test= _common.h \
$(top_srcdir)/src/openvpn/argv.c \
= $(top_srcdir)/src/openvpn/base64.c \
$(top_srcdir= )/src/openvpn/buffer.c \
@@ -103,7 +107,8 @@
-Wl,--wrap=3Dbuffer_write_file \

-Wl,--wrap=3Dparse_l= ine \
-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)/sr= c/openvpn/argv.c \
$(top_srcdir)/src/openvpn/base64.c \
@@ -174,7 +179,8 @@
auth_token_testdriver_L= DFLAGS =3D @TEST_LDFLAGS@ \
$(OPTIONAL_CRYPTO_LIBS)

-auth_toke= n_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_mbedtls.c \
@@ -192,7 +19= 8,8 @@
ncp_testdriver_LDFLAGS =3D @TEST_LDFLAGS@ \<= br> $(OPTIONAL_CRYPTO_LIBS)

-ncp_testdriver_SOURCES =3D test_ncp.c mock_= msg.c \
+ncp_testdriv= er_SOURCES =3D test_ncp.c \
+ mock_msg.c test_common.h \
$(top_srcdir)/src/ope= nvpn/buffer.c \
$(top_srcdir)/src/openvpn/crypto.c \
$(top_srcdir)/src/openvpn/crypto_mbedtls.c \
= @@ -209,7 +216,8 @@

misc_testdriver_LDFL= AGS =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_srcdi= r)/src/openvpn/options_util.c \

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

<= div itemscope itemtype=3D"http://schema.org/EmailMessage">
<= meta itemprop=3D"name" content=3D"View Change"/>
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I674af04e1a6449544b7def07253= 37c3b353ea276
Gerrit-Change-Number: 1509
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-CC: plaisthos <arne-openvpn@...2639...= ..>
= --mG4dJ8fpzvQ=--