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.
- Loading branch information
Showing
8 changed files
with
58 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
8 changes: 8 additions & 0 deletions
8
cabal-install/tests/IntegrationTests/custom-setup/Cabal-99998/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,8 @@ | ||
name: Cabal | ||
version: 99998 | ||
build-type: Simple | ||
cabal-version: >= 1.2 | ||
|
||
library | ||
build-depends: base | ||
exposed-modules: CabalMessage |
3 changes: 3 additions & 0 deletions
3
cabal-install/tests/IntegrationTests/custom-setup/Cabal-99998/CabalMessage.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,3 @@ | ||
module CabalMessage where | ||
|
||
message = "This is Cabal-99998" |
8 changes: 8 additions & 0 deletions
8
cabal-install/tests/IntegrationTests/custom-setup/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,8 @@ | ||
name: Cabal | ||
version: 99999 | ||
build-type: Simple | ||
cabal-version: >= 1.2 | ||
|
||
library | ||
build-depends: base | ||
exposed-modules: CabalMessage |
3 changes: 3 additions & 0 deletions
3
cabal-install/tests/IntegrationTests/custom-setup/Cabal-99999/CabalMessage.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,3 @@ | ||
module CabalMessage where | ||
|
||
message = "This is Cabal-99999" |
5 changes: 5 additions & 0 deletions
5
cabal-install/tests/IntegrationTests/custom-setup/custom-setup/Setup.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,5 @@ | ||
import CabalMessage (message) | ||
import System.Exit | ||
import System.IO | ||
|
||
main = hPutStrLn stderr message >> exitFailure |
9 changes: 9 additions & 0 deletions
9
cabal-install/tests/IntegrationTests/custom-setup/custom-setup/custom-setup.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,9 @@ | ||
name: custom-setup | ||
version: 1.0 | ||
build-type: Custom | ||
cabal-version: >= 99999 | ||
|
||
custom-setup | ||
setup-depends: base, Cabal >= 99999 | ||
|
||
library |
15 changes: 15 additions & 0 deletions
15
cabal-install/tests/IntegrationTests/custom-setup/installs_Cabal_as_setup_dep.sh
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,15 @@ | ||
# Regression test for issue #3436 | ||
|
||
. ./common.sh | ||
cabal sandbox init | ||
cabal install ./Cabal-99998 | ||
cabal sandbox add-source Cabal-99999 | ||
|
||
# Install custom-setup, which has a setup dependency on Cabal-99999. | ||
# cabal should build the setup script with Cabal-99999, but then | ||
# configure should fail because Setup just prints an error message | ||
# imported from Cabal and exits. | ||
! cabal install custom-setup/ > output 2>&1 | ||
|
||
cat output | ||
grep -q "This is Cabal-99999" output || die "Expected output from Cabal-99999" |