Automated tests for the libraries?
jyasskin at gmail.com
Thu Apr 19 11:49:45 EDT 2007
On 3/20/07, Ian Lynagh <igloo at earth.li> wrote:
> On Sat, Mar 17, 2007 at 06:54:57PM -0700, Jeffrey Yasskin wrote:
> > The biggest problem I see with the tests that SimonM is moving is that
> > they have to be run inside a built GHC source tree, which makes it
> > hard to work just on the libraries or test them on another compiler.
> This is really a problem with the driver and infrastructure, not the
> tests themselves. It would be good to have a standalone driver program
> that doesn't depend on the hierarchy of Makefiles and knows how to run
> the tests with different implementations.
To that end, I've written the attached patch. It keeps runtests.py
embedded in the ghc testsuite, but you no longer have to run it from
the Makefiles. From the libraries/unix/tests directory, both of
$ ../../../testsuite/driver/runtests.py --compiler=`which ghc`
pass, although they only run the normal and optc ways. I haven't
updated the hugs config or written a config for any other compiler.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 63199 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/libraries/attachments/20070419/78a11bba/standalone-runtests-0001.bin
More information about the Libraries