From: "flichtenheld (Code Review)"
Date: Wed, 21 Feb 2024 10:47:39 +0000
In-Reply-To:
References:
Reply-To: frank@...2641..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, a@...2181...
Message-ID:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="/Gd9wKSaw7g="; charset=UTF-8
Subject: [Openvpn-devel] [M] Change in openvpn[master]: t_client.sh: Allow
to skip tests
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: plaisthos , openvpn-devel
--/Gd9wKSaw7g=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: ordex, plaisthos.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.ne=
t/c/openvpn/+/521?usp=3Demail )
Change subject: t_client.sh: Allow to skip tests
......................................................................
Patch Set 2:
(2 comments)
File tests/t_client.sh.in:
http://gerrit.openvpn.net/c/openvpn/+/521/comment/c1be2335_8f5e8256 :
PS2, Line 301: SKIP_
> I am probably clueless about this, but where is $SKIP filled?
Like all the other test settings this is defined in the t_client.rc. I can =
add an example to t_client.rc-sample
File tests/unit_tests/openvpn/mock_msg.c:
http://gerrit.openvpn.net/c/openvpn/+/521/comment/0cb16f2d_9efcdae7 :
PS2, Line 94: endif
> I wonder if mock_msg.c is the right place for assert_failed(). [=E2=80=A6]
assert_failed is defined in error.c like all the other functions mocked her=
e, so it seems like a natural place.
The alternatives I saw for my patch were:
- duplicate mock_msg.c outside of unit_tests/openvpn. But except for assert=
_failed this works perfectly fine.
- try to use original error.c. But that pulls in a lot of platform code. We=
could look into split out all the complex msg stuff from error.c into its =
own msg.c. Then we could use error.c in the tests and mock less stuff here.
- move assert_failed to its own mock_assert.c. The current solution seems s=
lightly simpler. But that would obviously be a possible alternative if we d=
on't like the NO_CMOCKA define.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/521?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: I13ea6752c8d102eabcc579e391828c05d5322899
Gerrit-Change-Number: 521
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-CC: ordex
Gerrit-Attention: plaisthos
Gerrit-Attention: ordex
Gerrit-Comment-Date: Wed, 21 Feb 2024 10:47:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: ordex
Gerrit-MessageType: comment
--/Gd9wKSaw7g=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I wonder if moc=
k_msg.c is the right place for assert_failed(). [=E2=80=A6]
assert_failed i=
s defined in error.c like all the other functions mocked here, so it seems =
like a natural place.
The alternatives I saw for my patch were:
duplicate moc=
k_msg.c outside of unit_tests/openvpn. But except for assert_failed this wo=
rks perfectly fine.
try to use original error.c. But that pulls in =
a lot of platform code. We could look into split out all the complex msg st=
uff from error.c into its own msg.c. Then we could use error.c in the tests=
and mock less stuff here.
move assert_failed to its own mock_asser=
t.c. The current solution seems slightly simpler. But that would obviously =
be a possible alternative if we don't like the NO_CMOCKA define.
=
ul>
To view, visit change 521. To unsubscribe, or for help=
writing mail filters, visit settings.