]> git.ipfire.org Git - thirdparty/openvpn.git/commit
t_client.sh: Allow to skip tests
authorFrank Lichtenheld <frank@lichtenheld.com>
Fri, 8 Mar 2024 10:28:18 +0000 (11:28 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 8 Mar 2024 11:27:05 +0000 (12:27 +0100)
commit0c7cf0694ee6f878168330e9a084c255c51a9e8b
tree24e9445610475d5b8824e6a2048f7bf9c1eb40f8
parent4076d24f2f4adc432753aa62bd8158e3bf89ee21
t_client.sh: Allow to skip tests

Individual tests can define a script to run to test
whether they should be skipped.

Included in this commit is an example check which
checks whether we can do NTLM checks. This fails
e.g. on recent versions of Fedora with mbedTLS
(tested with Fedora 39) or when NTLM support is not
compiled in.

v2:
 - ntlm_support:
   - support OpenSSL 3
   - allow to build without cmocka
v3:
 - add example to t_client.rc-sample
 - t_client.sh code style
 - use syshead.h in error.h
v5:
 - rename SKIP_x to CHECK_SKIP_x

Change-Id: I13ea6752c8d102eabcc579e391828c05d5322899
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240308102818.9249-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/search?l=mid&q=20240308102818.9249-1-gert@greenie.muc.de
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/error.h
tests/Makefile.am
tests/ntlm_support.c [new file with mode: 0644]
tests/t_client.rc-sample
tests/t_client.sh.in
tests/unit_tests/openvpn/mock_msg.c