On Fri, May 15, 2020 at 10:37:15AM +0200, Gustaf Neumann wrote: > does the regression test run ok?
Good question. Unfortunately, I'd never run the regression tests on Windows before. I now have them set up to run, however, I get LOTS of failures, and I don't know if these are real problems with NaviServer, or something wrong with my testing setup. Either way, I would like to track it down so I can rely on running these same regression tests on Windows as on Linux. Are the tests in "naviserver/tests/all.tcl" supposed to work correctly on Windows too? Is anyone else successfully running these tests there? On Windows, I always get immediate failures due to return codes of 1. The first such failure is "encoding-1.1", output shown below. More concerning, is that once it gets to "http_persistent.test", the whole NaviServer process locks up and never gets any farther. So any tests that come AFTER that one are not being run at all. I've left the test NaviServer running overnight just to be sure, and after that point there's never any more output until I hit Ctrl-c to shut it down. So far I've tested the nearly latest NaviServer head code on Windows 7 (no Windows 10 yet), with both the old 2010 and newer 2019 Microsoft compilers. The behavior of the regression tests appears identical in both cases. I have not yet tested older versions of NaviServer. On Linux these tests all run fine, of course. On Windows, I can invoke "tests/all.tcl" either before or after installing NaviServer. Test behavior appears to be the same in both cases. Before installing, I start the tests like this: nmake -f Makefile.win32 _test For that to work, you need these small patches to Makefile.win32: https://bitbucket.org/apiskors/naviserver/commits/7d7e245f8451419de3ac9b1d6202e5f26c883fdd ## First test to fail on Windows: ==== encoding-1.1 Send body with ns_return and charset utf-8 FAILED ==== Contents of test case: nstest::http-0.9 -encoding utf-8 -getbody 1 -getheaders {Content-Type Content-Length} GET "/encoding" ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: select failed: no such file or directory invoked from within "nstest::http-0.9 -encoding utf-8 -getbody 1 -getheaders {Content-Type Content-Length} GET "/encoding"" ("uplevel" body line 2) invoked from within "uplevel 1 $script" ---- errorCode: NONE ==== encoding-1.1 FAILED ## Last test that runs on Windows, it locks up forever: http_persistent.test ns_sockioctl failed: no such file or directory while executing "ns_socknread $s" (procedure "client_readable" line 2) invoked from within "client_readable 1000 $s" (procedure "tcltest::client_receive" line 2) invoked from within "tcltest::client_receive sock0000000005DA6CE0" -- Andrew Piskorski <a...@piskorski.com> _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel