Running the Cabal tests

Mikhail Glushenkov mikhail.glushenkov at
Sat Mar 19 14:57:42 UTC 2016


On 19 March 2016 at 08:35, Erik de Castro Lopo <mle+hs at> wrote:
> Hi all,
> I hacked together what I thought was a neat little feature (a 3 line diff)
> and thought I'd add a test. Thats when I figured out I couldn't even run
> the tests.
> Reading `Cabal/tests/` I see I need to set the environment var:

Setting those vars shouldn't be *required*. Try to follow steps in (i.e. compile a Setup script manually and run './Setup
[configure --enable tests | build | test]').

> The first four are obvious and easy, but I have no idea how to set the last

It should look approx. like this:
This assumes that you installed the version of Cabal you're testing
into a sandbox under '/path/to/.cabal-sandbox'.

More information about the cabal-devel mailing list