forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for issue haskell#4154.
- Loading branch information
Showing
4 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
packages: . |
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/Regression/T4154/install-time-with-constraint.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/Regression/T4154/repo/Cabal-99999/Cabal.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |