Skip to content

Commit

Permalink
Add regression test for issue haskell#4154.
Browse files Browse the repository at this point in the history
  • Loading branch information
grayjay committed Jan 22, 2017
1 parent 6640387 commit 4fd86ea
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: .
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Test.Cabal.Prelude

-- Test that unqualified command line constraints do not constrain setup
-- dependencies. cabal should be able to install the local time-99999 by
-- building its setup script with the installed time, even though the installed
-- time doesn't fit the constraint.
main = cabalTest $ withRepo "repo" $
cabal "new-build" ["time", "--constraint=time==99999", "--dry-run"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Cabal
version: 99999
cabal-version: >=1.8
build-type: Simple

library
build-depends: base, time
10 changes: 10 additions & 0 deletions cabal-testsuite/PackageTests/Regression/T4154/time.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: time
version: 99999
cabal-version: >=1.8
build-type: Custom

custom-setup
setup-depends: base, Cabal == 99999

library
build-depends: base

0 comments on commit 4fd86ea

Please sign in to comment.