]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
tests: skip test execution when cross-compiling
authorHaixiao Yan <haixiao.yan.cn@windriver.com>
Thu, 26 Mar 2026 06:20:16 +0000 (14:20 +0800)
committerGert Doering <gert@greenie.muc.de>
Mon, 30 Mar 2026 11:05:38 +0000 (13:05 +0200)
The auth-pam unit test Makefile.am unconditionally assigns the TESTS variable,
causing test execution to fail during cross-compilation because the target
binaries are not executable on the build host.

Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com>
Acked-By: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20260326062016.3856597-1-haixiao.yan.cn@windriver.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36288.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 690aace41a68292412da3f313389e79d4a12bfbc)

tests/unit_tests/plugins/auth-pam/Makefile.am

index ba32013ac9204f05efed8e48410d23699cbd61ea..7da299ccde9273f6cf6a761cfd1e3afacb28662a 100644 (file)
@@ -4,8 +4,10 @@ AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING) auth_pam Plugin Unit-Tests
 
 if ENABLE_PLUGIN_AUTH_PAM
 check_PROGRAMS = auth_pam_testdriver
+if !CROSS_COMPILING
 TESTS = $(check_PROGRAMS)
 endif
+endif
 
 auth_pam_testdriver_SOURCES = test_search_and_replace.c  $(top_srcdir)/src/plugins/auth-pam/utils.h $(top_srcdir)/src/plugins/auth-pam/utils.c
 auth_pam_testdriver_CFLAGS  = @TEST_CFLAGS@ -I$(top_srcdir)/src/plugins/auth-pam