Skip to content

Commit

Permalink
Test case for haskell#4986
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <[email protected]>
  • Loading branch information
ezyang committed Jan 2, 2018
1 parent 69d5512 commit 2eb3cf7
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T4986/cabal.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# cabal new-configure
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following would be built:
- happy-999.999.999 (exe:happy) (first run)
- client-0.1.0.0 (exe:hello-world) (first run)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: client, happy
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T4986/cabal.test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Test.Cabal.Prelude
main = cabalTest $
withSourceCopy $
cabal "new-configure" []
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main = return ()
14 changes: 14 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T4986/client/client.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: client
version: 0.1.0.0
synopsis: Checks build-tools are put in PATH
license: BSD3
category: Testing
build-type: Simple
cabal-version: >=1.10

executable hello-world
main-is: Hello.hs
build-depends: base
build-tools: happy
build-tool-depends: happy:happy
default-language: Haskell2010
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main = return ()
12 changes: 12 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T4986/happy/happy.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: happy
version: 999.999.999
synopsis: Checks double-dependency on build-tool works correctly
license: BSD3
category: Testing
build-type: Simple
cabal-version: >=1.10

executable happy
main-is: Main.hs
build-depends: base
default-language: Haskell2010

0 comments on commit 2eb3cf7

Please sign in to comment.