I'm not there yet.
ready file /source/wolfssl-5.6.6-stable/wolfssl_resume_ready43608
comes from scripts/resume.test
What I've got so far:
$ cat MYbuild
#!/bin/sh
if [ ! -f configure ]; then
# autogen.sh creates configure
./autogen.sh
fi
# --host=i686-w64-mingw32 requires the i686-w64-mingw32 DLLs
# in the path for make check - at least:
# libwinpthread-1.dll
# libgcc_s_sjlj-1.dll
export PATH=${PATH}:/usr/i686-w64-mingw32/sys-root/mingw/bin
./configure --host=i686-w64-mingw32 \
--prefix=/usr/local/i686-w64-mingw32 \
--enable-sys-ca-certs=no \
&& make \
&& echo -e "\n\n*********** cygwin => dos wolfcrypt/test/test_paths.h rewrite hack" \
&& sed -i -e 's~"~"/cygwin~' /source/wolfssl-5.6.6-stable/wolfcrypt/test/test_paths.h \
&& echo -e "\n\n*********** cygwin => dos scripts/resume.test rewrite hack" \
&& sed -i -e '/^ready_file=/ c ready_file=/cygwin/tmp/wolfssl_resume_ready$$' \
/source/wolfssl-5.6.6-stable/scripts/resume.test \
&& echo -e "\n\n*********** cygwin => dos rewrite hacks end\n\n" \
&& make check
# 'make check' fails :(
# it looks like I need to do the ./configure && make part, then modify
# wolfcrypt/test/test_paths.h
# by hand to:
# $ cygpath -wa ./certs
# C:\cygwin\source\wolfssl-5.6.6-stable\certs
# and the scripts/resume.test script
# ready_file=`pwd`/wolfssl_resume_ready$$
# line to
# ready_file=/tmp/wolfssl_resume_ready$$
# and it still fails :(
build & test output is:
make[4]: Entering directory '/source/wolfssl-5.6.6-stable'
make[4]: warning: -j5 forced in submake: resetting jobserver mode.
SKIP: scripts/openssl.test
SKIP: scripts/external.test
PASS: scripts/google.test
SKIP: scripts/pem.test
PASS: testsuite/testsuite.test.exe
FAIL: scripts/resume.test
PASS: scripts/tls13.test
PASS: scripts/unit.test
============================================================================
Testsuite summary for wolfssl 5.6.6
============================================================================
# TOTAL: 8
# PASS: 4
# SKIP: 3
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to https://github.com/wolfssl/wolfssl/issues
============================================================================
make[4]: *** [Makefile:8151: test-suite.log] Error 1
make[4]: Leaving directory '/source/wolfssl-5.6.6-stable'
make[3]: *** [Makefile:8259: check-TESTS] Error 2
where it hangs. ^C to get
make[2]: *** [Makefile:8503: check-am] Interrupt
make[1]: *** [Makefile:8036: check-recursive] Interrupt
make: *** [Makefile:8505: check] Interrupt
./test-suite.log has
$ cat ./test-suite.log
=====================================
wolfssl 5.6.6: ./test-suite.log
=====================================
# TOTAL: 8
# PASS: 4
# SKIP: 3
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: scripts/resume
====================
ready file /cygwin/tmp/wolfssl_resume_ready49908
-r Resume session
note that the Windows file /cygwin/tmp/wolfssl_resume_ready49908 exists
$ ls -l /tmp/wolfssl_resume_ready49908
-rwxr-xr-x 1 Lee None 7 Mar 19 18:18 /tmp/wolfssl_resume_ready49908
$ cat /tmp/wolfssl_resume_ready49908
50663
Starting example server for resume test...
Resume test supported
./examples/server/server -r -R "/cygwin/tmp/wolfssl_resume_ready49908" -p 0
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
waiting for ready file...
NO ready file ending test...
The ready file does exist, so who is complaining that it doesn't?
in cleanup
killing server
FAIL scripts/resume.test (exit status: 1)
SKIP: scripts/external
======================
WOLFSSL_EXTERNAL_TEST NOT set, won't run
SKIP scripts/external.test (exit status: 77)
SKIP: scripts/openssl
=====================
WOLFSSL_OPENSSL_TEST NOT set, won't run
SKIP scripts/openssl.test (exit status: 77)
SKIP: scripts/pem
=================
PEM example not available, won't run
SKIP scripts/pem.test (exit status: 77)
Any suggestions on how to debug scripts/resume would be appreciated.
TIA,
Lee