patch: --enable-tests and --only-dependencies

Johan Tibell johan.tibell at
Thu Feb 16 17:25:13 CET 2012

On Thu, Feb 16, 2012 at 8:17 AM, Thomas Tuegel <ttuegel at> wrote:
> No, that's not what I'm trying to do. I had introduced a patch that
> ran tests for target packages and aborted installation if the tests
> failed. For example,
>> cabal install --enable-tests network
> would install all network's dependencies (but not their tests), then
> build, test, and install network. It didn't change how dependencies
> were handled at all. However, the test runner in Cabal wasn't designed
> to be invoked from cabal-install: it sometimes exits on success, which
> cabal-install interprets as an error, even when it isn't. This was
> stopping packages without tests from being installed with 'cabal
> install --enable-tests', which shouldn't happen.

I see. Makes sense to me.


More information about the cabal-devel mailing list