Ticket #811 (closed defect: fixed)
test-suite type not detected
| Reported by: | basvandijk | Owned by: | ttuegel |
|---|---|---|---|
| Priority: | normal | Milestone: | Cabal-1.10 |
| Component: | Cabal library | Version: | 1.10.1.0 |
| Severity: | normal | Keywords: | |
| Cc: | Difficulty: | unknown | |
| GHC Version: | Platform: |
Description
I just installed the latest cabal:
$ cabal --version cabal-install version 0.10.2 using version 1.10.1.0 of the Cabal library
I'm trying to rewrite the custom test-suite of my threads package to the new Cabal test-suite feature. The original .cabal contains:
... executable test-threads main-is: test.hs ...
When I rewrite that to:
... test-suite test-threads type: exitcode-stdio-1.0 main-is: test.hs ...
And than configure it, I get the following error:
$ cabal configure cabal: threads.cabal:60: The 'type' field is required for test suites. The available test types are: exitcode-stdio-1.0
I attached the package.
Duncan on #haskell figured out that if a .cabal contains conditionals, like the one I have, the bug appears.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

