]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Build unit tests in mingw Windows build
authorSelva Nair <selva.nair@gmail.com>
Wed, 8 Feb 2023 00:59:25 +0000 (19:59 -0500)
committerGert Doering <gert@greenie.muc.de>
Fri, 10 Feb 2023 21:02:18 +0000 (22:02 +0100)
commite3ad1fc4230fb3a08b484e76ce0a31f2479d3c8f
treee8020bb0d229fb449e8bc4c5a17ce4cd386f647a
parente80720ef9399d7a4e3469cf1004d064643e0f4dd
Build unit tests in mingw Windows build

- Minor changes to the build system to include some
  dependencies for Windows build

- test_tls_crypt not built as it will pull in win32.c and
  its dependencies

- If cross-compiling, "make check" will only build the tests but not
  run any. Copy to Windows and run manually. Executables are in
  <buid-dir>/tests/unit_tests/openvpn/.libs/ and these depend on
  cmocka.dll in addition to openssl libs that some tests link to.

  Building with mingw on Windows should run the tests (untested).

v2: networking_testdriver was mistakenly enabled to run, while
originally it was only set to build. Corrected.

v3: exclude check_engine_keys.sh when cross-compiling
As suggested by Arne Schwabe <arne@rfc2549.org>

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20230208005925.393200-1-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26188.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac
tests/Makefile.am
tests/unit_tests/engine-key/Makefile.am
tests/unit_tests/example_test/Makefile.am
tests/unit_tests/openvpn/Makefile.am