Change in openvpn[master]: Remove dead list test code
A message that is not in the archive (sent off-list or not yet received): gerrit.1700478678000.I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21@...2715...
Attention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/446?usp=email
to review the following change.
Change subject: Remove dead list test code
......................................................................
Remove dead list test code
Change-Id: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
---
M src/openvpn/init.c
M src/openvpn/list.c
M src/openvpn/list.h
3 files changed, 0 insertions(+), 191 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/446/1
src/openvpn/init.c +0 -5
@@ -865,11 +865,6 @@return false;#endif -#ifdef LIST_TEST -list_test (); -return false; -#endif -#ifdef IFCONFIG_POOL_TEST ifconfig_pool_test (0x0A010004 ,0x0A0100FF );return false;
src/openvpn/list.c +0 -179
185 lines not on this page · raw message
src/openvpn/list.h +0 -7
@@ -33,8 +33,6 @@* client instances over various key spaces. */ -/* define this to enable special list test mode */ -/*#define LIST_TEST*/ #include "basic.h" #include "buffer.h"
@@ -114,11 +112,6 @@uint32_t hash_func (const uint8_t *k,uint32_t length,uint32_t initval); -#ifdef LIST_TEST -void list_test (void ); - -#endif -static inline uint32_t hash_value (const struct hash *hash,const void *key) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: plaisthos.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
Change subject: Remove dead list test code
......................................................................
Patch Set 1: Code-Review-1
(1 comment)
Patchset:
PS1:
As discussed in IRC, need to decide whether the code should be moved to UT.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Wed, 22 Nov 2023 17:45:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, plaisthos.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/446?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld
Change subject: Remove dead list test code
......................................................................
Remove dead list test code
---
M CMakeLists.txt
M src/openvpn/init.c
M src/openvpn/list.c
M src/openvpn/list.h
M tests/unit_tests/openvpn/Makefile.am
M tests/unit_tests/openvpn/test_misc.c
6 files changed, 177 insertions(+), 193 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/446/2
CMakeLists.txt +3 -0
@@ -669,8 +669,11 @@ tests/unit_tests/openvpn/mock_get_random.c src/openvpn/options_util.c src/openvpn/ssl_util.c + src/openvpn/list.c ) + target_compile_definitions(test_misc PRIVATE "-DSOURCEDIR=\"${CMAKE_SOURCE_DIR}\"") + target_sources(test_ncp PRIVATE src/openvpn/crypto_mbedtls.c src/openvpn/crypto_openssl.c
src/openvpn/init.c +0 -5
@@ -865,11 +865,6 @@return false;#endif -#ifdef LIST_TEST -list_test (); -return false; -#endif -#ifdef IFCONFIG_POOL_TEST ifconfig_pool_test (0x0A010004 ,0x0A0100FF );return false;
src/openvpn/list.c +0 -179
185 lines not on this page · raw message
src/openvpn/list.h +0 -7
@@ -33,8 +33,6 @@* client instances over various key spaces. */ -/* define this to enable special list test mode */ -/*#define LIST_TEST*/ #include "basic.h" #include "buffer.h"
@@ -114,11 +112,6 @@uint32_t hash_func (const uint8_t *k,uint32_t length,uint32_t initval); -#ifdef LIST_TEST -void list_test (void ); - -#endif -static inline uint32_t hash_value (const struct hash *hash,const void *key) {
tests/unit_tests/openvpn/Makefile.am +5 -2
@@ -233,7 +233,8 @@ $(top_srcdir)/src/openvpn/ssl_util.c misc_testdriver_CFLAGS = @TEST_CFLAGS@ \ - -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn + -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn \ + -DSOURCEDIR=\"$(top_srcdir)\" misc_testdriver_LDFLAGS = @TEST_LDFLAGS@
@@ -243,4 +244,6 @@ $(top_srcdir)/src/openvpn/options_util.c \ $(top_srcdir)/src/openvpn/ssl_util.c \ $(top_srcdir)/src/openvpn/win32-util.c \ - $(top_srcdir)/src/openvpn/platform.c + $(top_srcdir)/src/openvpn/platform.c \ + $(top_srcdir)/src/openvpn/list.c +
tests/unit_tests/openvpn/test_misc.c +169 -0
186 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: plaisthos.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
Change subject: Remove dead list test code
......................................................................
Patch Set 2: Code-Review-1
(3 comments)
File tests/unit_tests/openvpn/test_misc.c:
http://gerrit.openvpn.net/c/openvpn/+/446/comment/06c0770f_7c7fbf6a :
PS2, Line 203: ASSERT(hash_add(hash, w->word, w, false));
Should probably use the cmocka assert_true here?
http://gerrit.openvpn.net/c/openvpn/+/446/comment/57543554_99e77fac :
PS2, Line 261: ASSERT(count == hash_n_elements(hash));
should use assert_int_equal
http://gerrit.openvpn.net/c/openvpn/+/446/comment/0a20d288_80ec1771 :
PS2, Line 268: hash_remove_by_value(nhash, (void *) i);
can we test that this was successful?
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Mon, 11 Dec 2023 16:25:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: plaisthos.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
Change subject: Remove dead list test code
......................................................................
Patch Set 2: Code-Review-2
(2 comments)
Commit Message:
http://gerrit.openvpn.net/c/openvpn/+/446/comment/83ad6747_f9b562f8 :
PS2, Line 7: Remove dead list test code
commit message needs update for the new version of the patch
Patchset:
PS2:
New list test is not enabled for mingw in GHA build.yaml. It would be difficult to enable due to the -DSOURCEDIR solution. Need to discuss how to handle that first, before going ahead.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Mon, 11 Dec 2023 18:01:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archiveAttention is currently required from: plaisthos.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/446?usp=email
to look at the new patch set (#3).
Change subject: Turn dead list test code into unit test
......................................................................
Turn dead list test code into unit test
---
M CMakeLists.txt
M src/openvpn/init.c
M src/openvpn/list.c
M src/openvpn/list.h
M tests/unit_tests/openvpn/Makefile.am
M tests/unit_tests/openvpn/test_misc.c
6 files changed, 188 insertions(+), 193 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/446/3
CMakeLists.txt +3 -0
@@ -747,8 +747,11 @@ tests/unit_tests/openvpn/mock_get_random.c src/openvpn/options_util.c src/openvpn/ssl_util.c + src/openvpn/list.c ) + target_compile_definitions(test_misc PRIVATE "-DSOURCEDIR=\"${CMAKE_SOURCE_DIR}\"") + target_sources(test_ncp PRIVATE src/openvpn/crypto_mbedtls.c src/openvpn/crypto_openssl.c
src/openvpn/init.c +0 -5
@@ -865,11 +865,6 @@return false;#endif -#ifdef LIST_TEST -list_test (); -return false; -#endif -#ifdef IFCONFIG_POOL_TEST ifconfig_pool_test (0x0A010004 ,0x0A0100FF );return false;
src/openvpn/list.c +0 -179
185 lines not on this page · raw message
src/openvpn/list.h +0 -7
@@ -33,8 +33,6 @@* client instances over various key spaces. */ -/* define this to enable special list test mode */ -/*#define LIST_TEST*/ #include "basic.h" #include "buffer.h"
@@ -114,11 +112,6 @@uint32_t hash_func (const uint8_t *k,uint32_t length,uint32_t initval); -#ifdef LIST_TEST -void list_test (void ); - -#endif -static inline uint32_t hash_value (const struct hash *hash,const void *key) {
tests/unit_tests/openvpn/Makefile.am +5 -2
@@ -288,7 +288,8 @@ $(top_srcdir)/src/openvpn/ssl_util.c misc_testdriver_CFLAGS = @TEST_CFLAGS@ \ - -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn + -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn \ + -DSOURCEDIR=\"$(top_srcdir)\" misc_testdriver_LDFLAGS = @TEST_LDFLAGS@
@@ -298,4 +299,6 @@ $(top_srcdir)/src/openvpn/options_util.c \ $(top_srcdir)/src/openvpn/ssl_util.c \ $(top_srcdir)/src/openvpn/win32-util.c \ - $(top_srcdir)/src/openvpn/platform.c + $(top_srcdir)/src/openvpn/platform.c \ + $(top_srcdir)/src/openvpn/list.c +
tests/unit_tests/openvpn/test_misc.c +180 -0
197 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newpatchset
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archiveAttention is currently required from: plaisthos.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
Change subject: Turn dead list test code into unit test
......................................................................
Patch Set 3: Code-Review-1
(2 comments)
Patchset:
PS3:
Still open comments and questions
File CMakeLists.txt:
http://gerrit.openvpn.net/c/openvpn/+/446/comment/65c92932_e39b460b :
PS3, Line 753: target_compile_definitions(test_misc PRIVATE "-DSOURCEDIR=\"${CMAKE_SOURCE_DIR}\"")
Shouldn't be required anymore due to #509
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Fri, 02 Feb 2024 11:18:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archiveAttention is currently required from: flichtenheld, plaisthos.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/446?usp=email
to look at the new patch set (#4).
The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld
Change subject: Turn dead list test code into unit test
......................................................................
Turn dead list test code into unit test
---
M CMakeLists.txt
M src/openvpn/init.c
M src/openvpn/list.c
M src/openvpn/list.h
M tests/unit_tests/openvpn/Makefile.am
M tests/unit_tests/openvpn/test_misc.c
6 files changed, 186 insertions(+), 193 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/446/4
CMakeLists.txt +1 -0
@@ -747,6 +747,7 @@ tests/unit_tests/openvpn/mock_get_random.c src/openvpn/options_util.c src/openvpn/ssl_util.c + src/openvpn/list.c ) target_sources(test_ncp PRIVATE
src/openvpn/init.c +0 -5
@@ -865,11 +865,6 @@return false;#endif -#ifdef LIST_TEST -list_test (); -return false; -#endif -#ifdef IFCONFIG_POOL_TEST ifconfig_pool_test (0x0A010004 ,0x0A0100FF );return false;
src/openvpn/list.c +0 -179
185 lines not on this page · raw message
src/openvpn/list.h +0 -7
@@ -33,8 +33,6 @@* client instances over various key spaces. */ -/* define this to enable special list test mode */ -/*#define LIST_TEST*/ #include "basic.h" #include "buffer.h"
@@ -114,11 +112,6 @@uint32_t hash_func (const uint8_t *k,uint32_t length,uint32_t initval); -#ifdef LIST_TEST -void list_test (void ); - -#endif -static inline uint32_t hash_value (const struct hash *hash,const void *key) {
tests/unit_tests/openvpn/Makefile.am +5 -2
@@ -288,7 +288,8 @@ $(top_srcdir)/src/openvpn/ssl_util.c misc_testdriver_CFLAGS = @TEST_CFLAGS@ \ - -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn + -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn \ + -DSOURCEDIR=\"$(top_srcdir)\" misc_testdriver_LDFLAGS = @TEST_LDFLAGS@
@@ -298,4 +299,6 @@ $(top_srcdir)/src/openvpn/options_util.c \ $(top_srcdir)/src/openvpn/ssl_util.c \ $(top_srcdir)/src/openvpn/win32-util.c \ - $(top_srcdir)/src/openvpn/platform.c + $(top_srcdir)/src/openvpn/platform.c \ + $(top_srcdir)/src/openvpn/list.c +
tests/unit_tests/openvpn/test_misc.c +180 -0
197 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 4
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archiveAttention is currently required from: flichtenheld.
plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
Change subject: Turn dead list test code into unit test
......................................................................
Patch Set 4:
(2 comments)
Commit Message:
http://gerrit.openvpn.net/c/openvpn/+/446/comment/4169cbdc_e4c58b8c :
PS2, Line 7: Remove dead list test code
Quoted 1 line
commit message needs update for the new version of the patch
Done
File CMakeLists.txt:
http://gerrit.openvpn.net/c/openvpn/+/446/comment/afbc220f_9d790a94 :
PS3, Line 753: target_compile_definitions(test_misc PRIVATE "-DSOURCEDIR=\"${CMAKE_SOURCE_DIR}\"")
Quoted 1 line
Shouldn't be required anymore due to #509
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 4
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Fri, 02 Feb 2024 12:36:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Gerrit-MessageType: comment
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archiveAttention is currently required from: flichtenheld.
plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
Change subject: Turn dead list test code into unit test
......................................................................
Patch Set 4:
(3 comments)
File tests/unit_tests/openvpn/test_misc.c:
http://gerrit.openvpn.net/c/openvpn/+/446/comment/7dac6168_d24ef656 :
PS2, Line 203: ASSERT(hash_add(hash, w->word, w, false));
Quoted 1 line
Should probably use the cmocka
assert_truehere?
Done
http://gerrit.openvpn.net/c/openvpn/+/446/comment/e8916ca3_ce20ce1e :
PS2, Line 261: ASSERT(count == hash_n_elements(hash));
Quoted 1 line
should use
assert_int_equal
Done
http://gerrit.openvpn.net/c/openvpn/+/446/comment/1c366976_7d353c43 :
PS2, Line 268: hash_remove_by_value(nhash, (void *) i);
Quoted 1 line
can we test that this was successful?
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 4
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 05 Feb 2024 13:43:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Gerrit-MessageType: comment
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archiveAttention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/446?usp=email
to look at the new patch set (#5).
Change subject: Turn dead list test code into unit test
......................................................................
Turn dead list test code into unit test
---
M CMakeLists.txt
M src/openvpn/init.c
M src/openvpn/list.c
M src/openvpn/list.h
M tests/unit_tests/openvpn/Makefile.am
M tests/unit_tests/openvpn/test_misc.c
6 files changed, 211 insertions(+), 193 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/446/5
CMakeLists.txt +1 -0
@@ -747,6 +747,7 @@ tests/unit_tests/openvpn/mock_get_random.c src/openvpn/options_util.c src/openvpn/ssl_util.c + src/openvpn/list.c ) target_sources(test_ncp PRIVATE
src/openvpn/init.c +0 -5
@@ -865,11 +865,6 @@return false;#endif -#ifdef LIST_TEST -list_test (); -return false; -#endif -#ifdef IFCONFIG_POOL_TEST ifconfig_pool_test (0x0A010004 ,0x0A0100FF );return false;
src/openvpn/list.c +0 -179
185 lines not on this page · raw message
src/openvpn/list.h +0 -7
@@ -33,8 +33,6 @@* client instances over various key spaces. */ -/* define this to enable special list test mode */ -/*#define LIST_TEST*/ #include "basic.h" #include "buffer.h"
@@ -114,11 +112,6 @@uint32_t hash_func (const uint8_t *k,uint32_t length,uint32_t initval); -#ifdef LIST_TEST -void list_test (void ); - -#endif -static inline uint32_t hash_value (const struct hash *hash,const void *key) {
tests/unit_tests/openvpn/Makefile.am +5 -2
@@ -288,7 +288,8 @@ $(top_srcdir)/src/openvpn/ssl_util.c misc_testdriver_CFLAGS = @TEST_CFLAGS@ \ - -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn + -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn \ + -DSOURCEDIR=\"$(top_srcdir)\" misc_testdriver_LDFLAGS = @TEST_LDFLAGS@
@@ -298,4 +299,6 @@ $(top_srcdir)/src/openvpn/options_util.c \ $(top_srcdir)/src/openvpn/ssl_util.c \ $(top_srcdir)/src/openvpn/win32-util.c \ - $(top_srcdir)/src/openvpn/platform.c + $(top_srcdir)/src/openvpn/platform.c \ + $(top_srcdir)/src/openvpn/list.c +
tests/unit_tests/openvpn/test_misc.c +205 -0
222 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 5
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archiveAttention is currently required from: plaisthos.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
Change subject: Turn dead list test code into unit test
......................................................................
Patch Set 5: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 5
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Fri, 09 Feb 2024 10:56:16 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH v5 1/1 Turn dead list test code into unit test
In reply to a message not in the archiveFrom: Arne Schwabe <[email protected]...>
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/446
This mail reflects revision 5 of this Change. Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>
CMakeLists.txt +1 -0
@@ -747,6 +747,7 @@ tests/unit_tests/openvpn/mock_get_random.c src/openvpn/options_util.c src/openvpn/ssl_util.c + src/openvpn/list.c ) target_sources(test_ncp PRIVATE
src/openvpn/init.c +0 -5
@@ -865,11 +865,6 @@return false;#endif -#ifdef LIST_TEST -list_test (); -return false; -#endif -#ifdef IFCONFIG_POOL_TEST ifconfig_pool_test (0x0A010004 ,0x0A0100FF );return false;
src/openvpn/list.c +0 -179
185 lines not on this page · raw message
src/openvpn/list.h +0 -7
@@ -33,8 +33,6 @@* client instances over various key spaces. */ -/* define this to enable special list test mode */ -/*#define LIST_TEST*/ #include "basic.h" #include "buffer.h"
@@ -114,11 +112,6 @@uint32_t hash_func (const uint8_t *k,uint32_t length,uint32_t initval); -#ifdef LIST_TEST -void list_test (void ); - -#endif -static inline uint32_t hash_value (const struct hash *hash,const void *key) {
tests/unit_tests/openvpn/Makefile.am +5 -2
@@ -288,7 +288,8 @@ $(top_srcdir)/src/openvpn/ssl_util.c misc_testdriver_CFLAGS = @TEST_CFLAGS@ \ - -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn + -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn \ + -DSOURCEDIR=\"$(top_srcdir)\" misc_testdriver_LDFLAGS = @TEST_LDFLAGS@
@@ -298,4 +299,6 @@ $(top_srcdir)/src/openvpn/options_util.c \ $(top_srcdir)/src/openvpn/ssl_util.c \ $(top_srcdir)/src/openvpn/win32-util.c \ - $(top_srcdir)/src/openvpn/platform.c + $(top_srcdir)/src/openvpn/platform.c \ + $(top_srcdir)/src/openvpn/list.c +
tests/unit_tests/openvpn/test_misc.c +205 -0
222 lines not on this page · raw message
[Openvpn-devel] [PATCH applied] Re: Turn dead list test code into unit test
Tested locally and on GHA, with MinGW->Windows and all that.
Your patch has been applied to the master branch.
commit 91b057a2b5b4d16b64d9d01824a8ec9327a61da1
Author: Arne Schwabe Date: Fri Feb 9 11:59:02 2024 +0100
Turn dead list test code into unit test
Signed-off-by: Arne Schwabe <[email protected]...>
Acked-by: Frank Lichtenheld <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28201.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archivecron2 has uploaded a new patch set (#6) to the change originally created by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld
Change subject: Turn dead list test code into unit test
......................................................................
Turn dead list test code into unit test
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28201.html
---
M CMakeLists.txt
M src/openvpn/init.c
M src/openvpn/list.c
M src/openvpn/list.h
M tests/unit_tests/openvpn/Makefile.am
M tests/unit_tests/openvpn/test_misc.c
6 files changed, 210 insertions(+), 193 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/446/6
CMakeLists.txt +1 -0
@@ -747,6 +747,7 @@ tests/unit_tests/openvpn/mock_get_random.c src/openvpn/options_util.c src/openvpn/ssl_util.c + src/openvpn/list.c ) target_sources(test_ncp PRIVATE
src/openvpn/init.c +0 -5
@@ -865,11 +865,6 @@return false;#endif -#ifdef LIST_TEST -list_test (); -return false; -#endif -#ifdef IFCONFIG_POOL_TEST ifconfig_pool_test (0x0A010004 ,0x0A0100FF );return false;
src/openvpn/list.c +0 -179
185 lines not on this page · raw message
src/openvpn/list.h +0 -7
@@ -33,8 +33,6 @@* client instances over various key spaces. */ -/* define this to enable special list test mode */ -/*#define LIST_TEST*/ #include "basic.h" #include "buffer.h"
@@ -114,11 +112,6 @@uint32_t hash_func (const uint8_t *k,uint32_t length,uint32_t initval); -#ifdef LIST_TEST -void list_test (void ); - -#endif -static inline uint32_t hash_value (const struct hash *hash,const void *key) {
tests/unit_tests/openvpn/Makefile.am +4 -2
@@ -288,7 +288,8 @@ $(top_srcdir)/src/openvpn/ssl_util.c misc_testdriver_CFLAGS = @TEST_CFLAGS@ \ - -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn + -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn \ + -DSOURCEDIR=\"$(top_srcdir)\" misc_testdriver_LDFLAGS = @TEST_LDFLAGS@
@@ -298,4 +299,5 @@ $(top_srcdir)/src/openvpn/options_util.c \ $(top_srcdir)/src/openvpn/ssl_util.c \ $(top_srcdir)/src/openvpn/win32-util.c \ - $(top_srcdir)/src/openvpn/platform.c + $(top_srcdir)/src/openvpn/platform.c \ + $(top_srcdir)/src/openvpn/list.c
tests/unit_tests/openvpn/test_misc.c +205 -0
222 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 6
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
[Openvpn-devel] [L] Change in openvpn[master]: Turn dead list test code into unit test
In reply to a message not in the archivecron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/446?usp=email )
Change subject: Turn dead list test code into unit test
......................................................................
Turn dead list test code into unit test
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28201.html
---
M CMakeLists.txt
M src/openvpn/init.c
M src/openvpn/list.c
M src/openvpn/list.h
M tests/unit_tests/openvpn/Makefile.am
M tests/unit_tests/openvpn/test_misc.c
6 files changed, 210 insertions(+), 193 deletions(-)
CMakeLists.txt +1 -0
@@ -747,6 +747,7 @@ tests/unit_tests/openvpn/mock_get_random.c src/openvpn/options_util.c src/openvpn/ssl_util.c + src/openvpn/list.c ) target_sources(test_ncp PRIVATE
src/openvpn/init.c +0 -5
@@ -865,11 +865,6 @@return false;#endif -#ifdef LIST_TEST -list_test (); -return false; -#endif -#ifdef IFCONFIG_POOL_TEST ifconfig_pool_test (0x0A010004 ,0x0A0100FF );return false;
src/openvpn/list.c +0 -179
185 lines not on this page · raw message
src/openvpn/list.h +0 -7
@@ -33,8 +33,6 @@* client instances over various key spaces. */ -/* define this to enable special list test mode */ -/*#define LIST_TEST*/ #include "basic.h" #include "buffer.h"
@@ -114,11 +112,6 @@uint32_t hash_func (const uint8_t *k,uint32_t length,uint32_t initval); -#ifdef LIST_TEST -void list_test (void ); - -#endif -static inline uint32_t hash_value (const struct hash *hash,const void *key) {
tests/unit_tests/openvpn/Makefile.am +4 -2
@@ -288,7 +288,8 @@ $(top_srcdir)/src/openvpn/ssl_util.c misc_testdriver_CFLAGS = @TEST_CFLAGS@ \ - -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn + -I$(top_srcdir)/include -I$(top_srcdir)/src/compat -I$(top_srcdir)/src/openvpn \ + -DSOURCEDIR=\"$(top_srcdir)\" misc_testdriver_LDFLAGS = @TEST_LDFLAGS@
@@ -298,4 +299,5 @@ $(top_srcdir)/src/openvpn/options_util.c \ $(top_srcdir)/src/openvpn/ssl_util.c \ $(top_srcdir)/src/openvpn/win32-util.c \ - $(top_srcdir)/src/openvpn/platform.c + $(top_srcdir)/src/openvpn/platform.c \ + $(top_srcdir)/src/openvpn/list.c
tests/unit_tests/openvpn/test_misc.c +205 -0
222 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/446?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: I7511bc43cd6a0bcb89476f27d5822ab4a78d0d21
Gerrit-Change-Number: 446
Gerrit-PatchSet: 6
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged