windows-check: Build the .exe-suffixed regress/unit test targets on MinGW

The new run showed the ws2_32/crypt32 link fix worked (configure
passed) but make then failed: "No rule to make target
'tests/regress.test'." Reproducing the autotools build locally
confirmed why: MinGW's EXEEXT is ".exe", so automake's check_PROGRAMS
rule names the binaries tests/regress.test.exe and tests/unit.test.exe,
not the extension-less names this job was asking make to build and run.
pull/1247/head
Hideki Miyazaki 2026-09-04 13:29:15 -04:00 committed by John Safranek
parent 90ce9fb61b
commit 4105c2242c
1 changed files with 6 additions and 3 deletions

View File

@ -295,9 +295,12 @@ jobs:
CPPFLAGS="-I$HOME/wolfssl-install/include" \
LDFLAGS="-L$HOME/wolfssl-install/lib" \
LIBS="-lws2_32 -lcrypt32"
make -j$(nproc) tests/regress.test tests/unit.test
./tests/regress.test
./tests/unit.test
# MinGW's EXEEXT is ".exe", so the check_PROGRAMS targets automake
# generates are tests/regress.test.exe and tests/unit.test.exe, not
# the extension-less names make would use on a POSIX host.
make -j$(nproc) tests/regress.test.exe tests/unit.test.exe
./tests/regress.test.exe
./tests/unit.test.exe
- name: Show config.log on failure
if: failure()