Re: [Haskell-cafe] Running tests in Cabal

2010-07-19 Thread Johan Tibell
On Sun, Jul 18, 2010 at 9:23 PM, Magnus Therning mag...@therning.orgwrote: 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

Re: [Haskell-cafe] Running tests in Cabal

2010-07-19 Thread Magnus Therning
On 19/07/10 07:14, Johan Tibell wrote: On Sun, Jul 18, 2010 at 9:23 PM, Magnus Therning mag...@therning.orgwrote: 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

[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

Re: [Haskell-cafe] Running tests in Cabal

2010-07-18 Thread Rogan Creswick
On Sun, Jul 18, 2010 at 12:23 PM, Magnus Therning mag...@therning.org 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'

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 mag...@therning.org 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.