Re: [Haskell-cafe] Running tests in Cabal

2010-07-18 Thread Magnus Therning
On 19/07/10 07:14, Johan Tibell wrote: > On Sun, Jul 18, 2010 at 9:23 PM, Magnus Therning wrote: > >> In my Cabal file I have defined a flag that controls whether tests are >> built or not. Now I'd like to hook it up a bit more so that './Setup.hs >> test' actually runs the tests. >> >> I haven't

Re: [Haskell-cafe] Running tests in Cabal

2010-07-18 Thread Johan Tibell
On Sun, Jul 18, 2010 at 9:23 PM, Magnus Therning wrote: > In my Cabal file I have defined a flag that controls whether tests are > built or not. Now I'd like to hook it up a bit more so that './Setup.hs > test' actually runs the tests. > > I haven't found a way to access that configuration flag i

Re: [Haskell-cafe] Running tests in Cabal

2010-07-18 Thread Magnus Therning
On 18/07/10 20:55, Rogan Creswick wrote: > On Sun, Jul 18, 2010 at 12:23 PM, Magnus Therning wrote: >> In my Cabal file I have defined a flag that controls whether tests are >> built or not. Now I'd like to hook it up a bit more so that './Setup.hs >> test' actually runs the tests. > > This will

Re: [Haskell-cafe] Running tests in Cabal

2010-07-18 Thread Rogan Creswick
On Sun, Jul 18, 2010 at 12:23 PM, Magnus Therning wrote: > In my Cabal file I have defined a flag that controls whether tests are > built or not.  Now I'd like to hook it up a bit more so that './Setup.hs > test' actually runs the tests. This will allow you to issue 'cabal test' to run the test s

[Haskell-cafe] Running tests in Cabal

2010-07-18 Thread Magnus Therning
In my Cabal file I have defined a flag that controls whether tests are built or not. Now I'd like to hook it up a bit more so that './Setup.hs test' actually runs the tests. I haven't found a way to access that configuration flag in my hook though. Is it not available in some way? Currently I'm