-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#7759) * Debug package hash inputs * Add test skeleton for #6906 * Improve output of hash inputs * Add tests over pks hash inputs * Correct typos and formatting * Add missing do * Add missing cabal result arg * Make consistent log about hash.txt * Update log msg creating file * Change var name to hashFileName
- Loading branch information
Showing
6 changed files
with
38 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
extra-include-dirs: foo | ||
extra-lib-dirs: bar |
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: . |
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 | ||
res <- cabalG' ["--config=cabal.config"] "v2-install" ["-v3"] | ||
assertOutputContains "creating file with the inputs used to compute the package hash:" res | ||
assertOutputContains "extra-lib-dirs: bar" res | ||
expectBroken 6906 $ assertOutputDoesNotContain "extra-lib-dirs: bar bar" res | ||
assertOutputContains "extra-include-dirs: foo" res | ||
expectBroken 6906 $ assertOutputDoesNotContain "extra-include-dirs: foo foo" res |
12 changes: 12 additions & 0 deletions
12
cabal-testsuite/PackageTests/Regression/T6906/issue6906.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,12 @@ | ||
cabal-version: 3.0 | ||
name: issue6906 | ||
version: 0 | ||
synopsis: No duplicate entries for extra-*-dirs config options in the inputs used to compute the package hash | ||
description: When informed in the global config | ||
author: Javier Neira | ||
category: Tests | ||
maintainer: [email protected] | ||
|
||
executable issue6906 | ||
build-depends: base | ||
main-is: 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 @@ | ||
main = putStrLn "Hello issue6906" |