cabal test seems broken with cabal-install HEAD

Hi, I tried to use cabal-install from today's HEAD but it doesn't seem to pick up test-suites anymore: $ ../cabal/cabal-install/dist/build/cabal/cabal clean cleaning... $ ../cabal/cabal-install/dist/build/cabal/cabal configure --enable-tests --enable-library-coverage Resolving dependencies... Configuring hashable-1.1.2.3... $ ../cabal/cabal-install/dist/build/cabal/cabal build Building hashable-1.1.2.3... Preprocessing library hashable-1.1.2.3... [1 of 1] Compiling Data.Hashable ( Data/Hashable.hs, dist/build/Data/Hashable.o ) Registering hashable-1.1.2.3... $ ../cabal/cabal-install/dist/build/cabal/cabal test --test-option=--plain --test-option=--jxml=dist/unit-tests.xml cabal: No test suites enabled. Did you remember to configure with '--enable-tests'? This is using the hashable package from https://github.com/tibbe/hashable -- Johan

On Wed, Feb 22, 2012 at 7:20 PM, Johan Tibell
Hi,
I tried to use cabal-install from today's HEAD but it doesn't seem to pick up test-suites anymore:
$ ../cabal/cabal-install/dist/build/cabal/cabal clean cleaning... $ ../cabal/cabal-install/dist/build/cabal/cabal configure --enable-tests --enable-library-coverage Resolving dependencies... Configuring hashable-1.1.2.3... $ ../cabal/cabal-install/dist/build/cabal/cabal build Building hashable-1.1.2.3... Preprocessing library hashable-1.1.2.3... [1 of 1] Compiling Data.Hashable ( Data/Hashable.hs, dist/build/Data/Hashable.o ) Registering hashable-1.1.2.3... $ ../cabal/cabal-install/dist/build/cabal/cabal test --test-option=--plain --test-option=--jxml=dist/unit-tests.xml cabal: No test suites enabled. Did you remember to configure with '--enable-tests'?
Sorry! I posted the patch for this to the list a few days ago, but I hadn't gone back to bug someone about committing it. I'm attaching it again; if it works for you, I'll push harder. Thanks! -- Thomas Tuegel

On Wed, Feb 22, 2012 at 5:41 PM, Thomas Tuegel
Sorry! I posted the patch for this to the list a few days ago, but I hadn't gone back to bug someone about committing it. I'm attaching it again; if it works for you, I'll push harder.
Works for me. Can you push it yourself? -- Johan

On Wed, Feb 22, 2012 at 8:27 PM, Johan Tibell
On Wed, Feb 22, 2012 at 5:41 PM, Thomas Tuegel
wrote: Sorry! I posted the patch for this to the list a few days ago, but I hadn't gone back to bug someone about committing it. I'm attaching it again; if it works for you, I'll push harder.
Works for me. Can you push it yourself?
No, I don't have commit access. Andres, I didn't realize that I broke 'cabal configure' when we changed how test dependencies are done. Would you push this patch? http://code.haskell.org/~ttuegel/cabal-configure-enable-tests.dpatch It didn't occur to me that 'cabal configure' would rely so heavily on the dependency solver. Thanks! -- Thomas Tuegel

Hi Thomas and Johan.
Andres, I didn't realize that I broke 'cabal configure' when we changed how test dependencies are done. Would you push this patch?
http://code.haskell.org/~ttuegel/cabal-configure-enable-tests.dpatch
It didn't occur to me that 'cabal configure' would rely so heavily on the dependency solver.
Yes, sorry. Turns out I just had forgotten to push. Cheers, Andres -- Andres Löh, Haskell Consultant Well-Typed LLP, http://www.well-typed.com
participants (3)
-
Andres Löh
-
Johan Tibell
-
Thomas Tuegel