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 3, 2018
1 parent 2e449f4 commit 3012134
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: client, happy
3 changes: 3 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T4986/cabal.test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Test.Cabal.Prelude
main = cabalTest $ do
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 3012134

Please sign in to comment.