Cabal: Building something from within a test hook

Henning Thielemann lemming at
Thu Jul 17 18:21:06 EDT 2008

On Thu, 17 Jul 2008, Max Bolingbroke wrote:

> Hi,
> I'd like to provide tests for my Cabal project, and would like to do
> so by having >another< Cabal project in a tests/ directory that is
> built and run by "Cabal test".

I used to define an Executable 'test' and run this manually. It's also 
possible to compile it conditionally with the flags of Cabal V1.2, e.g. 
./Setup.lhs configure -f buildTest .

More information about the Libraries mailing list