]> 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>
Mon, 11 Mar 2024 16:17:55 +0000 (17:17 +0100)
commitbbc77d1719d2d5b33e58abac5eba8b8e409561ab
treec2034a340a4ae399eae087ea82281eab871e764e
parentc6a61b84fdec825b0b4855d8cd12afa9ebeec43e
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>
(cherry picked from commit 0c7cf0694ee6f878168330e9a084c255c51a9e8b)
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