[Hackage] #940: cabal build silently ignores test-suites without Build-Depends

#940: cabal build silently ignores test-suites without Build-Depends ----------------------------+----------------------------------------------- Reporter: edsko | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.2.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: 7.4.1 Platform: Mac OS | ----------------------------+----------------------------------------------- A section such as Test-Suite foo Type: exitcode-stdio-1.0 Main-Is: test-foo.hs without a Build-Depends will not be built by "cabal build", and a subsequent "cabal test" will then complain "cabal: No test suites enabled. Did you remember to configure with '--enable-tests'?" -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/940 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#940: cabal build silently ignores test-suites without Build-Depends ----------------------------+----------------------------------------------- Reporter: edsko | Owner: ttuegel Type: defect | Status: new Priority: normal | Milestone: Cabal-1.16 Component: Cabal library | Version: 1.14.0 Severity: normal | Keywords: test-suite Difficulty: unknown | Ghcversion: 7.4.1 Platform: Mac OS | ----------------------------+----------------------------------------------- Changes (by kosmikus): * keywords: => test-suite * owner: => ttuegel * version: 1.10.2.0 => 1.14.0 * milestone: => Cabal-1.16 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/940#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#940: cabal build silently ignores test-suites without Build-Depends ----------------------------+----------------------------------------------- Reporter: edsko | Owner: ttuegel Type: defect | Status: new Priority: normal | Milestone: Cabal-1.16 Component: Cabal library | Version: 1.14.0 Severity: normal | Keywords: test-suite, solver Difficulty: unknown | Ghcversion: 7.4.1 Platform: Mac OS | ----------------------------+----------------------------------------------- Changes (by ttuegel): * keywords: test-suite => test-suite, solver Comment: This is caused by the modular solver not passing the '--enable-tests' flag to configure when the build depends are empty. Using '--solver=topdown' works around the problem, so I'm keywording the bug. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/940#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#940: cabal build silently ignores test-suites without Build-Depends ---------------------------------+------------------------------------------ Reporter: edsko | Owner: kosmikus Type: defect | Status: new Priority: normal | Milestone: cabal-install-0.14.2 Component: cabal-install tool | Version: 1.14.0 Severity: normal | Keywords: test-suite, solver Difficulty: unknown | Ghcversion: 7.4.1 Platform: Mac OS | ---------------------------------+------------------------------------------ Changes (by kosmikus): * owner: ttuegel => kosmikus * component: Cabal library => cabal-install tool * milestone: Cabal-1.16 => cabal-install-0.14.2 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/940#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#940: cabal build silently ignores test-suites without Build-Depends
---------------------------------+------------------------------------------
Reporter: edsko | Owner: kosmikus
Type: defect | Status: closed
Priority: normal | Milestone: cabal-install-0.14.2
Component: cabal-install tool | Version: 1.14.0
Severity: normal | Resolution: fixed
Keywords: test-suite, solver | Difficulty: unknown
Ghcversion: 7.4.1 | Platform: Mac OS
---------------------------------+------------------------------------------
Changes (by kosmikus):
* status: new => closed
* resolution: => fixed
Comment:
Thanks for the analysis, Thomas.
I think I've fixed it:
{{{
commit 4c360d4e6e3a558334880dd0498837171229721b
Author: Andres Loeh
participants (1)
-
Hackage