Testing containers outside of ghc source tree

Simon Marlow marlowsd at gmail.com
Thu Nov 10 14:28:24 CET 2011

On 24/09/2011 14:41, Ian Lynagh wrote:
> On Fri, Sep 23, 2011 at 03:41:56PM +0200, Joachim Breitner wrote:
>>> ghc: unrecognised flags: -fno-ghci-history
>>> What I aim for is to have a fast/short way of doing some experimental changes
>>> and running only the containers testsuite with my own changes included. How do I
>>> get to doing this?
>> I don’t think the Makefile works outside the ghc tree.
> The testsuite works outside of a GHC tree, although for the tests that
> are in libraries/*/tests you need to arrange things so that the driver
> can be found.
> However, the HEAD testsuite driver is designed to be used with the HEAD,
> so may need tweaking to work with older compilers. In this case, the
> -fno-ghci-history flag isn't supported by any released version yet.

I fixed that in the testsuite a few days ago, so the latest testsuite 
should work with older GHCs again.  It's often useful to be able to say

   make TEST_HC=ghc-7.0.4 TEST=...

to make sure that your new regression test case does indeed fail as it 
should with the older compiler.


More information about the Libraries mailing list