haskell-suite / haskell-names

Haskell suite library for name resolution
52 stars 17 forks source link

test failure, missing extra-source-file #78

Closed bergmark closed 7 years ago

bergmark commented 8 years ago

Missing extra-source-file, see https://github.com/bergmark/blog/blob/master/2016/package-faq.md for a solution.

> /tmp/stackage-build8/haskell-names-0.7.0$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup configure --enable-tests --package-db=clear --package-db=global --package-db=/var/stackage/work/builds/nightly/pkgdb --libdir=/var/stackage/work/builds/nightly/lib --bindir=/var/stackage/work/builds/nightly/bin --datadir=/var/stackage/work/builds/nightly/share --libexecdir=/var/stackage/work/builds/nightly/libexec --sysconfdir=/var/stackage/work/builds/nightly/etc --docdir=/var/stackage/work/builds/nightly/doc/haskell-names-0.7.0 --htmldir=/var/stackage/work/builds/nightly/doc/haskell-names-0.7.0 --haddockdir=/var/stackage/work/builds/nightly/doc/haskell-names-0.7.0 --flags=
Configuring haskell-names-0.7.0...
> /tmp/stackage-build8/haskell-names-0.7.0$ runghc -clear-package-db -global-package-db -package-db=/var/stackage/work/builds/nightly/pkgdb Setup build
Building haskell-names-0.7.0...
Preprocessing library haskell-names-0.7.0...

src/Language/Haskell/Names/Open/Instances.hs:4:14: warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
[ 1 of 19] Compiling Paths_haskell_names ( dist/build/autogen/Paths_haskell_names.hs, dist/build/Paths_haskell_names.o )
[ 2 of 19] Compiling Language.Haskell.Names.Types ( src/Language/Haskell/Names/Types.hs, dist/build/Language/Haskell/Names/Types.o )

src/Language/Haskell/Names/Types.hs:10:1: warning: [-Wunused-imports]
    The import of ‘Data.Traversable’ is redundant
      except perhaps to import instances from ‘Data.Traversable’
    To import instances alone, use: import Data.Traversable()
[ 3 of 19] Compiling Language.Haskell.Names.SyntaxUtils ( src/Language/Haskell/Names/SyntaxUtils.hs, dist/build/Language/Haskell/Names/SyntaxUtils.o )
[ 4 of 19] Compiling Language.Haskell.Names.Environment ( src/Language/Haskell/Names/Environment.hs, dist/build/Language/Haskell/Names/Environment.o )

src/Language/Haskell/Names/Environment.hs:21:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()

src/Language/Haskell/Names/Environment.hs:25:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[ 5 of 19] Compiling Language.Haskell.Names.Open.Derived ( src/Language/Haskell/Names/Open/Derived.hs, dist/build/Language/Haskell/Names/Open/Derived.o )
[ 6 of 19] Compiling Language.Haskell.Names.LocalSymbolTable ( src/Language/Haskell/Names/LocalSymbolTable.hs, dist/build/Language/Haskell/Names/LocalSymbolTable.o )

src/Language/Haskell/Names/LocalSymbolTable.hs:11:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
[ 7 of 19] Compiling Language.Haskell.Names.GlobalSymbolTable ( src/Language/Haskell/Names/GlobalSymbolTable.hs, dist/build/Language/Haskell/Names/GlobalSymbolTable.o )
[ 8 of 19] Compiling Language.Haskell.Names.RecordWildcards ( src/Language/Haskell/Names/RecordWildcards.hs, dist/build/Language/Haskell/Names/RecordWildcards.o )
[ 9 of 19] Compiling Language.Haskell.Names.ScopeUtils ( src/Language/Haskell/Names/ScopeUtils.hs, dist/build/Language/Haskell/Names/ScopeUtils.o )

src/Language/Haskell/Names/ScopeUtils.hs:3:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[10 of 19] Compiling Language.Haskell.Names.Imports ( src/Language/Haskell/Names/Imports.hs, dist/build/Language/Haskell/Names/Imports.o )

src/Language/Haskell/Names/Imports.hs:12:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[11 of 19] Compiling Language.Haskell.Names.GetBound ( src/Language/Haskell/Names/GetBound.hs, dist/build/Language/Haskell/Names/GetBound.o )

src/Language/Haskell/Names/GetBound.hs:78:10: warning: [-Wredundant-constraints]
    • Redundant constraint: Data l
    • In the instance declaration for ‘GetBound (GadtDecl l) l’

src/Language/Haskell/Names/GetBound.hs:95:10: warning: [-Wredundant-constraints]
    • Redundant constraint: Data l
    • In the instance declaration for ‘GetBound (FieldDecl l) l’

src/Language/Haskell/Names/GetBound.hs:98:10: warning: [-Wredundant-constraints]
    • Redundant constraint: Data l
    • In the instance declaration for ‘GetBound (ClassDecl l) l’

src/Language/Haskell/Names/GetBound.hs:106:10: warning: [-Wredundant-constraints]
    • Redundant constraint: Data l
    • In the instance declaration for ‘GetBound (Match l) l’
[12 of 19] Compiling Language.Haskell.Names.ModuleSymbols ( src/Language/Haskell/Names/ModuleSymbols.hs, dist/build/Language/Haskell/Names/ModuleSymbols.o )

src/Language/Haskell/Names/ModuleSymbols.hs:47:1: warning: [-Wredundant-constraints]
    • Redundant constraint: Eq l
    • In the type signature for:
           getTopDeclSymbols :: (Eq l, Data l) =>
                                Global.Table -> ModuleName l -> Decl l -> [Symbol]
[13 of 19] Compiling Language.Haskell.Names.Open.Base ( src/Language/Haskell/Names/Open/Base.hs, dist/build/Language/Haskell/Names/Open/Base.o )

src/Language/Haskell/Names/Open/Base.hs:16:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[14 of 19] Compiling Language.Haskell.Names.Open.Instances ( src/Language/Haskell/Names/Open/Instances.hs, dist/build/Language/Haskell/Names/Open/Instances.o )

src/Language/Haskell/Names/Open/Instances.hs:21:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()

src/Language/Haskell/Names/Open/Instances.hs:469:10: warning: [-Wredundant-constraints]
    • Redundant constraints: (SrcInfo l, D.Data l)
    • In the instance declaration for ‘Resolvable (Op l)’
[15 of 19] Compiling Language.Haskell.Names.Open ( src/Language/Haskell/Names/Open.hs, dist/build/Language/Haskell/Names/Open.o )
[16 of 19] Compiling Language.Haskell.Names.Exports ( src/Language/Haskell/Names/Exports.hs, dist/build/Language/Haskell/Names/Exports.o )

src/Language/Haskell/Names/Exports.hs:9:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[17 of 19] Compiling Language.Haskell.Names.Annotated ( src/Language/Haskell/Names/Annotated.hs, dist/build/Language/Haskell/Names/Annotated.o )

src/Language/Haskell/Names/Annotated.hs:29:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[18 of 19] Compiling Language.Haskell.Names.Recursive ( src/Language/Haskell/Names/Recursive.hs, dist/build/Language/Haskell/Names/Recursive.o )
[19 of 19] Compiling Language.Haskell.Names ( src/Language/Haskell/Names.hs, dist/build/Language/Haskell/Names.o )
Preprocessing test suite 'test' for haskell-names-0.7.0...

tests/run.hs:1:33: warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS

tests/run.hs:4:16: warning:
    -fcontext-stack=50 is deprecated: use -freduction-depth=50 instead
[1 of 1] Compiling Main             ( tests/run.hs, dist/build/test/test-tmp/Main.o )

tests/run.hs:1:33: warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS

tests/run.hs:4:16: warning:
    -fcontext-stack=50 is deprecated: use -freduction-depth=50 instead
Linking dist/build/test/test ...
> /tmp/stackage-build8/haskell-names-0.7.0$ dist/build/test/test
Tests
  exports
    tests/exports/DataFamilies.hs:             OK (0.12s)
    tests/exports/ExportList.hs:               OK
    tests/exports/ExportList2.hs:              OK
    tests/exports/ExportListMembers.hs:        OK
    tests/exports/ExportListWildcards.hs:      OK
    tests/exports/ImplicitExportList.hs:       OK
    tests/exports/ModuleReExport.hs:           OK
    tests/exports/Prelude.hs:                  OK
    tests/exports/Rec1.hs:                     OK
    tests/exports/Rec2.hs:                     OK
    tests/exports/Rec3.hs:                     OK
    tests/exports/SelfReExport.hs:             OK
    tests/exports/SimpleData.hs:               OK
    tests/exports/SimpleTypes.hs:              OK
    tests/exports/SimpleValue.hs:              OK
  imports
    tests/imports/ExplicitPrelude.hs:          OK
    tests/imports/ExplicitPreludeQualified.hs: OK
    tests/imports/Hiding.hs:                   OK
    tests/imports/ImplicitPrelude.hs:          OK
    tests/imports/ImportAll.hs:                OK
    tests/imports/ImportList.hs:               OK
    tests/imports/NoImplicitPrelude.hs:        OK
    tests/imports/SimpleImport.hs:             OK
  annotations
    tests/annotations/Arrows.hs:               OK (0.18s)
    tests/annotations/Case.hs:                 OK
    tests/annotations/ClassConstraints.hs:     OK
    tests/annotations/ClassInstances.hs:       OK
    tests/annotations/Export.hs:               OK
    tests/annotations/FnBind.hs:               OK
    tests/annotations/Global.hs:               OK
    tests/annotations/Infix.hs:                OK
    tests/annotations/Lambda.hs:               OK
    tests/annotations/Let.hs:                  OK
    tests/annotations/ListComp.hs:             OK
    tests/annotations/ParListComp.hs:          OK
    tests/annotations/Pats.hs:                 OK
    tests/annotations/QualifiedMethods.hs:     OK
    tests/annotations/Records.hs:              OK (0.02s)
    tests/annotations/Special.hs:              OK
    tests/annotations/TypeSignature.hs:        OK
    tests/annotations/Types.hs:                OK
    tests/annotations/ViewPats.hs:             OK
    tests/annotations/Wildcards.hs:            OK
  tests/environment/Prelude.symbols:           FAIL (0.11s)
    tests/environment/Prelude.symbols.out: openBinaryFile: does not exist (No such file or directory)

1 out of 44 tests failed (0.56s)
bergmark commented 8 years ago

The test-suite is disabled on stackage because of this, please ping me or send a PR to stackage to re-enable if this gets fixed.

phischu commented 7 years ago

Should be fixed now. Problem is: the tests need an installed instance to find some data-files. Configure, build, test is not enough.