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 test cabal install remote-pkg for haskell#9697
In haskell#9697 we fixed passing local options to cabal install targets, but rebasing accidentally dropped one of the added the tests for that PR, which tested cabal install <target>, where <target> was only available from a remote repository.
- Loading branch information
Showing
4 changed files
with
54 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
5 changes: 5 additions & 0 deletions
5
...ite/PackageTests/Install/T7297-8909-7236/repo/external-lib-0.1.0.0/CHANGELOG.md
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 @@ | ||
# Revision history for external-lib0100 | ||
|
||
## 0.1.0.0 -- YYYY-mm-dd | ||
|
||
* First version. Released on an unsuspecting world. |
25 changes: 25 additions & 0 deletions
25
cabal-testsuite/PackageTests/Install/T7297-8909-7236/repo/external-lib-0.1.0.0/Main.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,25 @@ | ||
{-# LANGUAGE CPP #-} | ||
|
||
#ifdef TEST1 | ||
main = putStrLn "hi1" | ||
#endif | ||
|
||
#ifdef TEST2 | ||
main = putStrLn "hi2" | ||
#endif | ||
|
||
#ifdef TEST3 | ||
main = putStrLn "hi3" | ||
#endif | ||
|
||
#ifdef TEST4 | ||
main = putStrLn "hi4" | ||
#endif | ||
|
||
#ifdef TEST5 | ||
main = putStrLn "hi5" | ||
#endif | ||
|
||
#ifdef TEST6 | ||
main = putStrLn "hi6" | ||
#endif |
18 changes: 18 additions & 0 deletions
18
...stsuite/PackageTests/Install/T7297-8909-7236/repo/external-lib-0.1.0.0/external-lib.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,18 @@ | ||
cabal-version: 3.0 | ||
name: external-lib | ||
version: 0.1.0.0 | ||
license: NONE | ||
author: [email protected] | ||
maintainer: Matthew Pickering | ||
build-type: Simple | ||
extra-doc-files: CHANGELOG.md | ||
|
||
common warnings | ||
ghc-options: -Wall | ||
|
||
executable my-exe | ||
import: warnings | ||
main-is: Main.hs | ||
build-depends: base | ||
hs-source-dirs: . | ||
default-language: Haskell2010 |