Skip to content

Commit de4c261

Browse files
committed
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.
1 parent 0d5c7a5 commit de4c261

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/windows-check.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,12 @@ jobs:
295295
CPPFLAGS="-I$HOME/wolfssl-install/include" \
296296
LDFLAGS="-L$HOME/wolfssl-install/lib" \
297297
LIBS="-lws2_32 -lcrypt32"
298-
make -j$(nproc) tests/regress.test tests/unit.test
299-
./tests/regress.test
300-
./tests/unit.test
298+
# MinGW's EXEEXT is ".exe", so the check_PROGRAMS targets automake
299+
# generates are tests/regress.test.exe and tests/unit.test.exe, not
300+
# the extension-less names make would use on a POSIX host.
301+
make -j$(nproc) tests/regress.test.exe tests/unit.test.exe
302+
./tests/regress.test.exe
303+
./tests/unit.test.exe
301304
302305
- name: Show config.log on failure
303306
if: failure()

0 commit comments

Comments
 (0)