ddssff / cabal-debian

Create a Debianization by examining a .cabal file.
Other
16 stars 10 forks source link

Test suite failure from Stackage #50

Open snoyberg opened 9 years ago

snoyberg commented 9 years ago
Test suite cabal-debian-tests: RUNNING...
^MCases: 7  Tried: 0  Errors: 0  Failures: 0^MCases: 7  Tried: 1  Errors: 0  Failures: 0^M
              ^M### Failure in: Debianization Tests:1:test5 - test-data/creativeprompts
test5 - test-data/creativeprompts
diff not empty:
Modified: "debian/control"
--- old/debian/control
+++ new/debian/control
@@
  libghc-mtl-dev,
  libghc-network-dev,
- libghc-old-locale-dev,
- libghc-old-time-dev,
@@
  libghc-parsec3-dev (>= 3) | libghc-parsec2-dev (<< 3),
  libghc-random-dev,

^MCases: 7  Tried: 2  Errors: 0  Failures: 1^M                                          ^M### Failure in: Debianization Tests:2:test6 - test-data/artvaluereport2
test6 - test-data/artvaluereport2
expected: (ExitSuccess,"","")
 but got: (ExitFailure 1,"","\ntest-data/artvaluereport2/input/debian/Debianize.hs:4:8:\n    Could not find module \8216Control.Lens\8217\n    Use -v to see a list of the files searched for.\n\ntest-data/artvaluereport2/input/debian/Debianize.hs:9:8:\n    Could not find module \8216Debian.Changes\8217\n    Use -v to see a list of the files searched for.\n\ntest-data/artvaluereport2/input/debian/Debianize.hs:10:8:\n    Could not find module \8216Debian.Debianize\8217\n
    Use -v to see a list of the files searched for.\n\ntest-data/artvaluereport2/input/debian/Debianize.hs:11:8:\n
Could not find module \8216Debian.Debianize.Finalize\8217\n    Use -v to see a list of the files searched for.\n\ntest-data/artvaluereport2/input/debian/Debianize.hs:12:8:\n    Could not find module \8216Debian.Debianize.Optparse\8217\n
    Use -v to see a list of the files searched for.\n\ntest-data/artvaluereport2/input/debian/Debianize.hs:13:8:\n
Could not find module \8216Debian.Pretty\8217\n    Use -v to see a list of the files searched for.\n\ntest-data/artvaluereport2/input/debian/Debianize.hs:14:8:\n    Could not find module \8216Debian.Policy\8217\n    Use -v to see a list of the files searched for.\n\ntest-data/artvaluereport2/input/debian/Debianize.hs:15:8:\n    Could not find module \8216Debian.Relation\8217\n    Use -v to see a list of the files searched for.\n\ntest-data/artvaluereport2/input/debian/Debianize.hs:16:8:\n    Could not find module \8216Debian.Version\8217\n    Perhaps you meant Data.Version (from base-4.8.1.0)\n    Use -v to see a list of the files searched for.\n")
^MCases: 7  Tried: 3  Errors: 0  Failures: 2^M                                          ^M### Failure in: Debianization Tests:3:test7 - debian/Debianize.hs
nomeata commented 9 years ago

David writes in #46:

This is a terrible test suite (I can say this because I wrote it.) I'm tempted to mark it Buildable: False. Its success is very dependent on the exact version of ghc and of many of the library packages that happen to be installed when it runs.

@snoyberg, I believe there is a way to ignore test suites in stackage? Maybe that would be something to be done here.

snoyberg commented 9 years ago

I've already done that in the short term pending an answer on this issue. I'm fine leaving that in place. The point where I disable the test suites refers back to this issue as well.

ddssff commented 9 years ago

I'm thinking if I make a flag

Flag tests
  Default: True

and then in the test suite say

if !flag(tests)
  Buildable: False

and make the test suite depend on base>=4.8.1.0 and/or ghc-7.10.2 it might fix things? I'm not 100% clear on the semantics of cabal flags.

snoyberg commented 9 years ago

To be clear, the test failed for me on GHC 7.10.2

On Mon, Aug 24, 2015, 8:35 PM David Fox notifications@github.com wrote:

I'm thinking if I make a flag

Flag tests Default: True

and then in the test suite say

if !flag(tests) Buildable: False

and make the test suite depend on base>=4.8.1.0 and/or ghc-7.10.2 it might fix things? I'm not 100% clear on the semantics of cabal flags.

— Reply to this email directly or view it on GitHub https://github.com/ddssff/cabal-debian/issues/50#issuecomment-134310970.

ddssff commented 9 years ago

Ok.