Skip to contentSkip to conversation

Change in openvpn[master]: unit_tests: remove includes for mock_msg.h

Openvpn-devel In review flichtenheld (Code Review) 3 participants 6 messages Dec 6, 2023 – Dec 9, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1701876289000.I5e394bb73702d87562ed354100eaff9b41f5389e@...2715...

#1 lore raw

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/467?usp=email

to review the following change.

Change subject: unit_tests: remove includes for mock_msg.h
......................................................................

unit_tests: remove includes for mock_msg.h

Not actually used.

Change-Id I5e394bb73702d87562ed354100eaff9b41f5389e

---
M tests/unit_tests/openvpn/test_auth_token.c
M tests/unit_tests/openvpn/test_crypto.c
M tests/unit_tests/openvpn/test_packet_id.c
M tests/unit_tests/openvpn/test_pkt.c
M tests/unit_tests/openvpn/test_tls_crypt.c

5 files changed, 0 insertions(+), 8 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/67/467/1

tests/unit_tests/openvpn/test_auth_token.c +0 -2
index d96984f..a027330 100644
@@ -36,8 +36,6 @@
 
 #include "auth_token.c"
 
-#include "mock_msg.h"
-
 struct test_context {
     struct tls_multi multi;
     struct key_type kt;
tests/unit_tests/openvpn/test_crypto.c +0 -1
index 5564524..9e5469a 100644
@@ -38,7 +38,6 @@
 #include "options.h"
 #include "ssl_backend.h"
 
-#include "mock_msg.h"
 #include "mss.h"
 
 static const char testtext[] = "Dummy text to test PEM encoding";
tests/unit_tests/openvpn/test_packet_id.c +0 -2
index 90c67ac..2a2a973 100644
@@ -36,8 +36,6 @@
 #include "packet_id.h"
 #include "reliable.h"
 
-#include "mock_msg.h"
-
 struct test_packet_id_write_data {
     struct {
         uint32_t buf_id;
tests/unit_tests/openvpn/test_pkt.c +0 -1
index 9f49ee7..7f05184 100644
@@ -40,7 +40,6 @@
 #include "ssl_pkt.h"
 #include "tls_crypt.h"
 
-#include "mock_msg.h"
 #include "mss.h"
 #include "reliable.h"
 
tests/unit_tests/openvpn/test_tls_crypt.c +0 -2
index ed7c794..465543a 100644
@@ -36,8 +36,6 @@
 
 #include "tls_crypt.c"
 
-#include "mock_msg.h"
-
 /* Define this function here as dummy since including the ssl_*.c files
  * leads to having to include even more unrelated code */
 bool

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/467?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5e394bb73702d87562ed354100eaff9b41f5389e
Gerrit-Change-Number: 467
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld.

plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/467?usp=email )

Change subject: unit_tests: remove includes for mock_msg.h
......................................................................

Patch Set 1: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/467?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5e394bb73702d87562ed354100eaff9b41f5389e
Gerrit-Change-Number: 467
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 06 Dec 2023 15:25:57 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#3 lore raw

PATCH 1/1 unit_tests: remove includes for mock_msg.h

In reply to a message not in the archive

Not actually used.

Change-Id I5e394bb73702d87562ed354100eaff9b41f5389e

---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master and release/2.6.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/467
This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above):
Arne Schwabe <[email protected]...>

tests/unit_tests/openvpn/test_auth_token.c +0 -2
index d96984f..a027330 100644
@@ -36,8 +36,6 @@
 
 #include "auth_token.c"
 
-#include "mock_msg.h"
-
 struct test_context {
     struct tls_multi multi;
     struct key_type kt;
tests/unit_tests/openvpn/test_crypto.c +0 -1
index 5564524..9e5469a 100644
@@ -38,7 +38,6 @@
 #include "options.h"
 #include "ssl_backend.h"
 
-#include "mock_msg.h"
 #include "mss.h"
 
 static const char testtext[] = "Dummy text to test PEM encoding";
tests/unit_tests/openvpn/test_packet_id.c +0 -2
index 90c67ac..2a2a973 100644
@@ -36,8 +36,6 @@
 #include "packet_id.h"
 #include "reliable.h"
 
-#include "mock_msg.h"
-
 struct test_packet_id_write_data {
     struct {
         uint32_t buf_id;
tests/unit_tests/openvpn/test_pkt.c +0 -1
index 9f49ee7..7f05184 100644
@@ -40,7 +40,6 @@
 #include "ssl_pkt.h"
 #include "tls_crypt.h"
 
-#include "mock_msg.h"
 #include "mss.h"
 #include "reliable.h"
 
tests/unit_tests/openvpn/test_tls_crypt.c +0 -2
index ed7c794..465543a 100644
@@ -36,8 +36,6 @@
 
 #include "tls_crypt.c"
 
-#include "mock_msg.h"
-
 /* Define this function here as dummy since including the ssl_*.c files
  * leads to having to include even more unrelated code */
 bool
#4 lore raw

[Openvpn-devel] [PATCH applied] Re: unit_tests: remove includes for mock_msg.h

Verified that all unit tests still compile & pass...

Your patch has been applied to the master and release/2.6 branch.

commit 9b4ed6d801b3c67f6b5f5341e5a1b161778d0d32 (master) commit e2a9c1ba947fbe18af124583cc30eb1b2bd2aab0 (release/2.6)

Author: Frank Lichtenheld
Date:   Fri Dec 8 18:35:29 2023 +0100
     unit_tests: remove includes for mock_msg.h

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Arne Schwabe <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg27727.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#5 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/467?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by plaisthos

Change subject: unit_tests: remove includes for mock_msg.h
......................................................................

unit_tests: remove includes for mock_msg.h

Not actually used.

Change-Id I5e394bb73702d87562ed354100eaff9b41f5389e

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg27727.html

---
M tests/unit_tests/openvpn/test_auth_token.c
M tests/unit_tests/openvpn/test_crypto.c
M tests/unit_tests/openvpn/test_packet_id.c
M tests/unit_tests/openvpn/test_pkt.c
M tests/unit_tests/openvpn/test_tls_crypt.c

5 files changed, 0 insertions(+), 8 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/67/467/2

tests/unit_tests/openvpn/test_auth_token.c +0 -2
index d96984f..a027330 100644
@@ -36,8 +36,6 @@
 
 #include "auth_token.c"
 
-#include "mock_msg.h"
-
 struct test_context {
     struct tls_multi multi;
     struct key_type kt;
tests/unit_tests/openvpn/test_crypto.c +0 -1
index 5564524..9e5469a 100644
@@ -38,7 +38,6 @@
 #include "options.h"
 #include "ssl_backend.h"
 
-#include "mock_msg.h"
 #include "mss.h"
 
 static const char testtext[] = "Dummy text to test PEM encoding";
tests/unit_tests/openvpn/test_packet_id.c +0 -2
index 90c67ac..2a2a973 100644
@@ -36,8 +36,6 @@
 #include "packet_id.h"
 #include "reliable.h"
 
-#include "mock_msg.h"
-
 struct test_packet_id_write_data {
     struct {
         uint32_t buf_id;
tests/unit_tests/openvpn/test_pkt.c +0 -1
index 9f49ee7..7f05184 100644
@@ -40,7 +40,6 @@
 #include "ssl_pkt.h"
 #include "tls_crypt.h"
 
-#include "mock_msg.h"
 #include "mss.h"
 #include "reliable.h"
 
tests/unit_tests/openvpn/test_tls_crypt.c +0 -2
index ed7c794..465543a 100644
@@ -36,8 +36,6 @@
 
 #include "tls_crypt.c"
 
-#include "mock_msg.h"
-
 /* Define this function here as dummy since including the ssl_*.c files
  * leads to having to include even more unrelated code */
 bool

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/467?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5e394bb73702d87562ed354100eaff9b41f5389e
Gerrit-Change-Number: 467
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#6 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/467?usp=email )

Change subject: unit_tests: remove includes for mock_msg.h
......................................................................

unit_tests: remove includes for mock_msg.h

Not actually used.

Change-Id I5e394bb73702d87562ed354100eaff9b41f5389e

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg27727.html

---
M tests/unit_tests/openvpn/test_auth_token.c
M tests/unit_tests/openvpn/test_crypto.c
M tests/unit_tests/openvpn/test_packet_id.c
M tests/unit_tests/openvpn/test_pkt.c
M tests/unit_tests/openvpn/test_tls_crypt.c

5 files changed, 0 insertions(+), 8 deletions(-)
tests/unit_tests/openvpn/test_auth_token.c +0 -2
index d96984f..a027330 100644
@@ -36,8 +36,6 @@
 
 #include "auth_token.c"
 
-#include "mock_msg.h"
-
 struct test_context {
     struct tls_multi multi;
     struct key_type kt;
tests/unit_tests/openvpn/test_crypto.c +0 -1
index 5564524..9e5469a 100644
@@ -38,7 +38,6 @@
 #include "options.h"
 #include "ssl_backend.h"
 
-#include "mock_msg.h"
 #include "mss.h"
 
 static const char testtext[] = "Dummy text to test PEM encoding";
tests/unit_tests/openvpn/test_packet_id.c +0 -2
index 90c67ac..2a2a973 100644
@@ -36,8 +36,6 @@
 #include "packet_id.h"
 #include "reliable.h"
 
-#include "mock_msg.h"
-
 struct test_packet_id_write_data {
     struct {
         uint32_t buf_id;
tests/unit_tests/openvpn/test_pkt.c +0 -1
index 9f49ee7..7f05184 100644
@@ -40,7 +40,6 @@
 #include "ssl_pkt.h"
 #include "tls_crypt.h"
 
-#include "mock_msg.h"
 #include "mss.h"
 #include "reliable.h"
 
tests/unit_tests/openvpn/test_tls_crypt.c +0 -2
index ed7c794..465543a 100644
@@ -36,8 +36,6 @@
 
 #include "tls_crypt.c"
 
-#include "mock_msg.h"
-
 /* Define this function here as dummy since including the ssl_*.c files
  * leads to having to include even more unrelated code */
 bool

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/467?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5e394bb73702d87562ed354100eaff9b41f5389e
Gerrit-Change-Number: 467
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged