Simon Peyton-Jones wrote:
> To make the testsuite work on Windows, under Msys
> 
> a) Edit config.mk and set PYTHON=c:/cygwin/bin/python2.4
> (You need Cygwin Pytyon installed)
> 
> b) Employ this patch, which is in darcs.haskell.org/ghc-fc2
> 
> Mon Aug  7 01:05:18 GMT Daylight Time 2006  Manuel M T Chakravarty
> <[EMAIL PROTECTED]>
>   * Configure changes to make testsuite work better on MSys
>   Fri Jul 28 06:49:35 EDT 2006  [EMAIL PROTECTED]

I was unable to pull this patch in convient timeframe, but I can
currently run tests, so it's not critical.

> Then the testsuite runs in fully-auto mode.
> 
> 
> The patch makes things work right under Msys. The Python thing is
> because only the Cygwin Python appears to work right (no clue why).  You
> do need python2.4, not plain python; both come with Cygwin.  You also
> need an up-to-date Cygwin installation... the old one had a buggy python
> I think

I found out why.

cygwin python is needed, because testlib.py uses os.system to
run commands like
"cd foo && d:/path/to/ghc"
Where ghc might be shell-script to ghc-inplace and if using cmd.exe,
the / should be \.

However, I'm not going to install cygwin, so I'll just keep the
ugly hack I made.

> Concerning (a), this would happen automatically if cygwin/bin was in
> your path.... but I worry about conflicts so I don't do that.  Maybe you
> can change the configure script so you can say
>       ./configure --with-python=c:/cygwin/bin/python2.4

Yeah, having cygwin/bin on path would be risky.

> I don't know about the foo.exe stuff. If you can figure out what is
> going on there it'd be great.

That was probably misread on my part.  Driver/testlib.py has code
to handle it.

Thanks,
--Esa
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to