[Hackage] #930: cabal test is dropping --test-option flags

Hackage cvs-ghc at haskell.org
Mon Mar 12 16:25:23 CET 2012

#930: cabal test is dropping --test-option flags
  Reporter:  tibbe          |        Owner:  ttuegel 
      Type:  defect         |       Status:  new     
  Priority:  normal         |    Milestone:          
 Component:  Cabal library  |      Version:
  Severity:  normal         |     Keywords:          
Difficulty:  unknown        |   Ghcversion:          
  Platform:                 |  
 Adding two `--test-option` flags doesn't work correctly. For example, this

 cabal test --test-option=--plain

 causes cabal to (correctly) pass the `--plain` flag to the underlying
 test-framework binary. However, this

 cabal test --test-option=--plain --test-option=--jxml=dist/unit-tests.xml

 drops it on the ground. Some debug output

 cabal test --test-option=--plain --test-option=--jxml=dist/unit-tests.xml
 Using external setup method with build-type Custom
 Creating ./dist/setup (and its parents)
 Using Cabal library version 1.14.0
 Using ./Setup.hs as setup script.
 ./dist/setup/setup test --verbose=3 --test-options=--jxml=dist/unit-

 There looks like there's an extra newline in the `./dist/setup/setup`
 invocation, perhaps that's the issue?

 The problem can be reproduced on Cabal's own test suite.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/930>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list