From: "cron2 (Code Review)" Date: Wed, 28 Feb 2024 10:01:20 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., a@...2181... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="qau04ztutDM="; 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 --qau04ztutDM= 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 2: Code-Review-1 (5 comments) Patchset: PS2: I think this is a useful patch but there seems to be a bit of friction to o= vercome :-) File src/openvpn/error.h: http://gerrit.openvpn.net/c/openvpn/+/521/comment/509f59c6_11cebc44 : PS2, Line 39: #endif I don't like this, for two reasons - we protect unistd.h via `HAVE_UNISTD_H= `, not via "not windows", and also this is really a separate project, movin= g out includes from `"syshead.h"` to the parent C file because some compile= rs complain. File tests/t_client.sh.in: http://gerrit.openvpn.net/c/openvpn/+/521/comment/4d712547_a890cc8a : PS2, Line 301: SKIP_ > Like all the other test settings this is defined in the t_client.rc. [=E2= =80=A6] Having an example would certainly help people setting this up for their fir= st time. http://gerrit.openvpn.net/c/openvpn/+/521/comment/71a3de91_936dd75e : PS2, Line 325: eval $test_check_skip || { while this certainly works, the `|| {` style is quite different from the ve= ry traditional `if/then/fi` style of the rest of the script. So I'm a bit = undecided what to think about it. ``` if eval $test_check_skip ; then : else output ... ... fi ``` is not as compact, but might be easier to grok? File tests/unit_tests/openvpn/mock_msg.c: http://gerrit.openvpn.net/c/openvpn/+/521/comment/4daebdcf_1d3501b2 : PS2, Line 94: endif > assert_failed is defined in error. [=E2=80=A6] Not sure I understand why we have cmocka specific .c files with #ifdef NO_C= MOCKA? Is this ever used outside the unit test context? -- 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: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-CC: ordex Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: ordex Gerrit-Comment-Date: Wed, 28 Feb 2024 10:01:20 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: flichtenheld Comment-In-Reply-To: ordex Gerrit-MessageType: comment --qau04ztutDM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 2:Code-Review -1=

Vi= ew Change

5 comments:

  • Patchset:

    • Patch Set #2:

      I think this is a useful patch but there seem= s to be a bit of friction to overcome :-)

  • File src/openvpn/error.h:

    • Patch Set #2, Line 39: #endif

      I don't like this, for two reasons - w= e protect unistd.h via `HAVE_UNISTD_H`, not via "not windows", an= d also this is really a separate project, moving out includes from `"s= yshead.h"` to the parent C file because some compilers complain.

  • File tests/t_client.sh= .in:

    • Patch Set #2, = Line 301: SKIP_<= /p>

      Like all the other test settings this is defined in the t_cl= ient.rc. [=E2=80=A6]

      Having an example would certainly help people setting = this up for their first time.

    • Patch Set #2, Line 325: = eval $test_check_sk= ip || {

      ```
      if eval $test_check_skip= ; then :
      else
      output ...
      ...
      fi
      ``= `
      is not as compact, but might be easier to grok?

  • File tests/unit_tests/openvpn/mock_ms= g.c:

    • Patch Set #2, = Line 94: endif

      assert_failed is defined in error. [=E2=80=A6]

      Not sure I und= erstand why we have cmocka specific .c files with #ifdef NO_CMOCKA? Is thi= s ever used outside the unit test context?

To vie= w, visit = change 521. To unsubscribe, 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: 2
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, 28 Feb 2024 10:01:20= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: flichtenheld <frank@...1186...= .2641...>
Comment-In-Reply-To: ordex <a@...2181...>= ;
Gerrit-MessageType: comment
--qau04ztutDM=--