Skip to content

Commit 690aace

Browse files
HaixiaoYanWindcron2
authored andcommitted
tests: skip test execution when cross-compiling
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>
1 parent 91fd961 commit 690aace

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING) auth_pam Plugin Unit-Tests
44

55
if ENABLE_PLUGIN_AUTH_PAM
66
check_PROGRAMS = auth_pam_testdriver
7+
if !CROSS_COMPILING
78
TESTS = $(check_PROGRAMS)
89
endif
10+
endif
911

1012
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
1113
auth_pam_testdriver_CFLAGS = @TEST_CFLAGS@ -I$(top_srcdir)/src/plugins/auth-pam

0 commit comments

Comments
 (0)