Skip to content

Commit

Permalink
Add a negative test for multilibs
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed May 7, 2019
1 parent 6fa1b26 commit fcbe835
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cabal-testsuite/PackageTests/MultipleLibraries/cabal.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
- d-0.1.0.0 (lib:privatelib) (first run)
- p-0.1.0.0 (lib) (first run)
Configuring library 'privatelib' for d-0.1.0.0..
Preprocessing library 'privatelib' for d-0.1.0.0..
Building library 'privatelib' for d-0.1.0.0..
Configuring library for p-0.1.0.0..
cabal: Encountered missing or private dependencies:
d : {privatelib} ==0.1.0.0
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/MultipleLibraries/cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packages:
d
p

4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/MultipleLibraries/cabal.test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Test.Cabal.Prelude
main = cabalTest $
void $ fails (cabal' "v2-build" ["p"])

12 changes: 12 additions & 0 deletions cabal-testsuite/PackageTests/MultipleLibraries/d/d.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cabal-version: 3.0
name: d
version: 0.1.0.0

-- See issue #6038
library
default-language: Haskell2010

library privatelib
visibility: private
default-language: Haskell2010

8 changes: 8 additions & 0 deletions cabal-testsuite/PackageTests/MultipleLibraries/p/p.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cabal-version: 3.0
name: p
version: 0.1.0.0

library
build-depends: d:privatelib
default-language: Haskell2010

0 comments on commit fcbe835

Please sign in to comment.