From: "cron2 (Code Review)" Date: Wed, 6 Mar 2024 09:57:55 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., a@...2181... Message-ID: <65ff90cb50f82475061e2848cbe9bc99b3b7bc8f-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="RgeK1yCnL8w="; 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: , To: flichtenheld Cc: plaisthos , openvpn-devel --RgeK1yCnL8w= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, ordex, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/521?usp=3Demail ) Change subject: t_client.sh: Allow to skip tests ...................................................................... Patch Set 4: Code-Review-1 (4 comments) Patchset: PS4: Took me longer than expected after v4, but I do have some more wishes... (t= hanks for bearing with me) File tests/Makefile.am: http://gerrit.openvpn.net/c/openvpn/+/521/comment/aabb9cc6_e1155271 : PS4, Line 45: unit_tests/openvpn/mock_msg.c unit_tests/openvpn/mock_msg.h \ OK, so now I do better understand the -DNO_CMOCKA code in unit_tests/openvp= n/mock_msg.c - but I'm none the happier. Unit test code is unit test code,= and shouldn't be used by something else (=3D so when trying to understand = code in unit_tests/ I don't really want to consider "oh, wait, this is also= used by some other piece of code"). But I can't really can come up with a nice alternative that will not boil d= own to "just add another copy of `msg()` mocking into ntlm_support.c" (beca= use `crypto_load_provider()` needs it). File tests/t_client.rc-sample: http://gerrit.openvpn.net/c/openvpn/+/521/comment/7c7d3b68_b8417006 : PS4, Line 67: # SKIP_x =3D "commands to execute before openvpn, = skip test on failure" TBH, I do not like `SKIP_x` because it just tells me "well, yes, skip this = test". I'd suggest to rename it to something like `SKIP_CONDITIONAL_x` or `PRE_TES= T_x` or so which better transports the message "ah, this is a command to ru= n, and depending on the outcome, things will be skipped". http://gerrit.openvpn.net/c/openvpn/+/521/comment/34ed3c96_6462fbf2 : PS4, Line 70: # CLEANUP_x =3D "commands to execute after the test" this is a very welcome addition to the last options that I forgot to proper= ly document. Thanks ;-) -- 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: 4 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-CC: ordex Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: ordex Gerrit-Comment-Date: Wed, 06 Mar 2024 09:57:55 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --RgeK1yCnL8w= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, ordex, plaisthos. <= /p>

Patch set 4:Code-Review -1=

Vi= ew Change

4 comments:

  • Patchset:

    • Patch Set #4:

      Took me longer than expected after v4, but I = do have some more wishes... (thanks for bearing with me)

  • =
  • File tests/Makefile.am:

    • Patch Set #4, Line 45: unit_tests/openvpn/mock_msg.c= unit_tests/openvpn/mock_msg.h \

      OK, so now I do better understand the -DNO_CMOCK= A code in unit_tests/openvpn/mock_msg.c - but I'm none the happier. Un= it test code is unit test code, and shouldn't be used by something else= (=3D so when trying to understand code in unit_tests/ I don't really w= ant to consider "oh, wait, this is also used by some other piece of co= de").

      Bu= t I can't really can come up with a nice alternative that will not boil= down to "just add another copy of `msg()` mocking into ntlm_support.c= " (because `crypto_load_provider()` needs it).

  • File tests/t_client.rc-sample:

    • Patch Set #4, Line 67: <= code style=3D"font-family:monospace,monospace"># SKIP_x =3D &quo= t;commands to execute before openvpn, skip test on failure"

      =

      TBH, I do not li= ke `SKIP_x` because it just tells me "well, yes, skip this test".=

      I'd sugg= est to rename it to something like `SKIP_CONDITIONAL_x` or `PRE_TEST_x` or = so which better transports the message "ah, this is a command to run, = and depending on the outcome, things will be skipped".

    • Patch Set #4, Line 70: # CLEANUP_x =3D "commands to execute after the test"

      this is = a very welcome addition to the last options that I forgot to properly docum= ent. Thanks ;-)

To view, visit change 521. To unsubsc= ribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I13ea6752c8d102eabcc579e3918= 28c05d5322899
Gerrit-Change-Number: 521
Gerrit-PatchSet: 4
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-CC: ordex <a@...2181...>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: ordex <a@...2181...> <= /div>
Gerrit-Comment-Date: Wed, 06 Mar 2024 09:57:55= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--RgeK1yCnL8w=--