-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into m-renaud-docs-remove-v2-prefix
- Loading branch information
Showing
35 changed files
with
351 additions
and
167 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
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
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
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
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
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
4 changes: 3 additions & 1 deletion
4
cabal-testsuite/PackageTests/Backpack/Includes2/setup-external.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
6 changes: 4 additions & 2 deletions
6
cabal-testsuite/PackageTests/Backpack/Includes2/setup-per-component.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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = setupTest $ do | ||
skipIf "ghc < 7.8" =<< ghcVersionIs (< mkVersion [7,8]) | ||
skipIf "ghc < 7.8" =<< isGhcVersion "< 7.8" | ||
setup "configure" [] | ||
res <- setup' "build" [] | ||
assertOutputContains "= Post common block elimination =" res |
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
import Test.Cabal.Prelude | ||
main = setupTest $ do | ||
skipUnless "no Cabal for GHC" =<< hasCabalForGhc | ||
-- On Travis OSX, Cabal shipped with GHC 7.8 does not work | ||
-- with error "setup: /usr/bin/ar: permission denied"; see | ||
-- also https://github.com/haskell/cabal/issues/3938 | ||
-- This is a hack to make the test not run in this case. | ||
skipIf "osx and ghc < 7.10" =<< liftM2 (&&) isOSX (ghcVersionIs (< mkVersion [7,10])) | ||
setup' "configure" [] >>= assertOutputContains "ThisIsCustomYeah" | ||
setup' "build" [] >>= assertOutputContains "ThisIsCustomYeah" |
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 @@ | ||
module Four where |
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,6 @@ | ||
module Main where | ||
|
||
import One | ||
import Two | ||
import Three | ||
import Four |
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 @@ | ||
module One where |
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 @@ | ||
module Three where |
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 @@ | ||
module Two where |
2 changes: 2 additions & 0 deletions
2
cabal-testsuite/PackageTests/DuplicateExperimental/cabal.project
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,2 @@ | ||
packages: | ||
./ |
35 changes: 35 additions & 0 deletions
35
cabal-testsuite/PackageTests/DuplicateExperimental/duplicate.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,35 @@ | ||
cabal-version: 3.0 | ||
name: duplicate | ||
version: 0 | ||
synopsis: Test of de-duping multiple warnings for experimental features | ||
category: Tests | ||
license: MIT | ||
|
||
library | ||
build-depends: base, one, two, three, four | ||
exposed-modules: Main | ||
default-language: Haskell2010 | ||
|
||
library one | ||
visibility: public | ||
exposed-modules: One | ||
build-depends: base | ||
default-language: Haskell2010 | ||
|
||
library two | ||
visibility: public | ||
exposed-modules: Two | ||
build-depends: base | ||
default-language: Haskell2010 | ||
|
||
library three | ||
visibility: public | ||
exposed-modules: Three | ||
build-depends: base | ||
default-language: Haskell2010 | ||
|
||
library four | ||
visibility: public | ||
exposed-modules: Four | ||
build-depends: base | ||
default-language: Haskell2010 |
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,2 @@ | ||
# cabal build | ||
# cabal build |
9 changes: 9 additions & 0 deletions
9
cabal-testsuite/PackageTests/DuplicateExperimental/setup.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,9 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ do | ||
-- check output is summarized in -v1 (-v normal) | ||
res <- cabal' "build" ["--only-configure","duplicate","-vnormal"] | ||
assertOutputContains "(and 3 more occurrences)" res | ||
|
||
-- check output is _not_ summarized in -v2 (verbose) | ||
res <- cabal' "build" ["--only-configure","duplicate","-vverbose"] | ||
assertOutputDoesNotContain "(and 3 more occurrences)" res |
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
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/NewBuild/CmdRun/ScriptWithProjectBlock/cabal.out
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 @@ | ||
# cabal v2-run | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O2 | ||
In order, the following will be built: | ||
- fake-package-0 (exe:cabal-script-s.hs) (first run) | ||
Configuring executable 'cabal-script-s.hs' for fake-package-0.. | ||
Building executable 'cabal-script-s.hs' for fake-package-0.. |
Oops, something went wrong.