Testsuite doesn't always work on MSYS with Cygwin Python
Problem 1. Using the Cygwin Python. testsuite/mk/test.mk
makes the GHC into ghc-inplace.bat
. But testlib.py
(the runCmd
procedure) invokes timeout
, which always calls a Bourne shell, so ghc-inplace.bat
doesn't work.
The timeout program must use a Bourne shell, because testlib.py
often passes it a complex command in Bourne shell syntax.
Current workaound: in testsuite\mk\test.mk
disable the windows-specific setting of the GHC paths.
IDEA: it's a mess having a ghc-inplace
shell script and a ghc-inplace.bat
script. Instead we should have one executable, which we can invoke from anywhere.
PS Why should we care about Cygwin Python and MSYS? Well, it's exposed a fragility with this ghc-inplace stuff; and the testsuite doesn't work with native Python under MSYS either.