Automated tests for the libraries?

Jeffrey Yasskin jyasskin at
Thu Apr 19 11:49:45 EDT 2007

On 3/20/07, Ian Lynagh <igloo at> 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
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/ --compiler=`which ghc`
 $ ../../../testsuite/driver/
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...
Name: standalone-runtests.dpatch
Type: text/x-darcs-patch
Size: 63199 bytes
Desc: not available
Url :

More information about the Libraries mailing list