-
Notifications
You must be signed in to change notification settings - Fork 701
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
1 parent
2619733
commit 16a2b24
Showing
12 changed files
with
136 additions
and
11 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
10 changes: 8 additions & 2 deletions
10
cabal-testsuite/PackageTests/VersionPriority/0-local.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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest . withRepo "repo" . withProjectFile "0-local.project" $ do | ||
fails $ cabal "v2-build" ["--dry-run"] | ||
main = cabalTest . withRepo "repo" . withProjectFile "0-local.project" . recordMode RecordMarked $ do | ||
let log = recordHeader . pure | ||
log "--version-win not supplied, default" | ||
fails $ cabal "v2-build" ["--dry-run"] | ||
log "--version-win=shallowest" | ||
fails $ cabal "v2-build" ["--dry-run", "--version-win=shallowest"] | ||
log "--version-win=latest" | ||
cabal "v2-build" ["--dry-run", "--version-win=latest"] |
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,8 +1,22 @@ | ||
# cabal v2-update | ||
Downloading the latest package list from test-local-repo | ||
# --version-win not supplied, default | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following would be built: | ||
- hashable-1.4.2.0 (lib) (requires build) | ||
- cabal-version-override-0.1.0.0 (exe:cabal-version-override) (first run) | ||
# --version-win=shallowest | ||
# cabal v2-build | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following would be built: | ||
- hashable-1.4.2.0 (lib) (requires build) | ||
- cabal-version-override-0.1.0.0 (exe:cabal-version-override) (first run) | ||
# --version-win=latest | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following would be built: | ||
- hashable-1.4.3.0 (lib) (requires build) | ||
- cabal-version-override-0.1.0.0 (exe:cabal-version-override) (first run) |
10 changes: 8 additions & 2 deletions
10
cabal-testsuite/PackageTests/VersionPriority/1-local.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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest . withRepo "repo" . withProjectFile "1-local.project" $ do | ||
cabal "v2-build" ["--dry-run"] | ||
main = cabalTest . withRepo "repo" . withProjectFile "1-local.project" . recordMode RecordMarked $ do | ||
let log = recordHeader . pure | ||
log "--version-win not supplied, default" | ||
cabal "v2-build" ["--dry-run"] | ||
log "--version-win=shallowest" | ||
cabal "v2-build" ["--dry-run", "--version-win=shallowest"] | ||
log "--version-win=latest" | ||
cabal "v2-build" ["--dry-run", "--version-win=latest"] |
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,8 +1,22 @@ | ||
# cabal v2-update | ||
Downloading the latest package list from test-local-repo | ||
# --version-win not supplied, default | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Build profile: -w ghc-9.6.3 -O1 | ||
In order, the following would be built: | ||
- hashable-1.4.2.0 (lib) (requires build) | ||
- cabal-version-override-0.1.0.0 (exe:cabal-version-override) (first run) | ||
# --version-win=shallowest | ||
# cabal v2-build | ||
Build profile: -w ghc-9.6.3 -O1 | ||
In order, the following would be built: | ||
- hashable-1.4.2.0 (lib) (requires build) | ||
- cabal-version-override-0.1.0.0 (exe:cabal-version-override) (first run) | ||
# --version-win=latest | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Build profile: -w ghc-9.6.3 -O1 | ||
In order, the following would be built: | ||
- hashable-1.4.3.0 (lib) (requires build) | ||
- cabal-version-override-0.1.0.0 (exe:cabal-version-override) (first run) |
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,8 +1,14 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest . withRepo "repo" . withProjectFile "1-web.project" $ do | ||
main = cabalTest . withRepo "repo" . withProjectFile "1-web.project" . recordMode RecordMarked $ do | ||
-- To avoid this diff: | ||
-- -Build profile: -w ghc-9.6.3 -O1 | ||
-- +Build profile: -w ghc-<GHCVER> -O1 | ||
skipIfGhcVersion "== 9.6.3" | ||
let log = recordHeader . pure | ||
log "--version-win not supplied, default" | ||
cabal "v2-build" ["--dry-run"] | ||
log "--version-win=shallowest" | ||
cabal "v2-build" ["--dry-run", "--version-win=shallowest"] | ||
log "--version-win=latest" | ||
cabal "v2-build" ["--dry-run", "--version-win=latest"] |
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
10 changes: 8 additions & 2 deletions
10
cabal-testsuite/PackageTests/VersionPriority/2-local.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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest . withRepo "repo" . withProjectFile "2-local.project" $ do | ||
cabal "v2-build" ["--dry-run"] | ||
main = cabalTest . withRepo "repo" . withProjectFile "2-local.project" . recordMode RecordMarked $ do | ||
let log = recordHeader . pure | ||
log "--version-win not supplied, default" | ||
cabal "v2-build" ["--dry-run"] | ||
log "--version-win=shallowest" | ||
cabal "v2-build" ["--dry-run", "--version-win=shallowest"] | ||
log "--version-win=latest" | ||
cabal "v2-build" ["--dry-run", "--version-win=latest"] |
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,8 +1,14 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest . withRepo "repo" . withProjectFile "2-web.project" $ do | ||
main = cabalTest . withRepo "repo" . withProjectFile "2-web.project" . recordMode RecordMarked $ do | ||
-- To avoid this diff: | ||
-- -Build profile: -w ghc-9.6.3 -O1 | ||
-- +Build profile: -w ghc-<GHCVER> -O1 | ||
skipIfGhcVersion "== 9.6.3" | ||
cabal "v2-build" ["--dry-run"] | ||
let log = recordHeader . pure | ||
log "--version-win not supplied, default" | ||
cabal "v2-build" ["--dry-run"] | ||
log "--version-win=shallowest" | ||
cabal "v2-build" ["--dry-run", "--version-win=shallowest"] | ||
log "--version-win=latest" | ||
cabal "v2-build" ["--dry-run", "--version-win=latest"] |
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,8 +1,14 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest . withRepo "repo" . withProjectFile "3-web.project" $ do | ||
main = cabalTest . withRepo "repo" . withProjectFile "3-web.project" . recordMode RecordMarked $ do | ||
-- To avoid this diff: | ||
-- -Build profile: -w ghc-9.6.3 -O1 | ||
-- +Build profile: -w ghc-<GHCVER> -O1 | ||
skipIfGhcVersion "== 9.6.3" | ||
cabal "v2-build" ["--dry-run"] | ||
let log = recordHeader . pure | ||
log "--version-win not supplied, default" | ||
cabal "v2-build" ["--dry-run"] | ||
log "--version-win=shallowest" | ||
cabal "v2-build" ["--dry-run", "--version-win=shallowest"] | ||
log "--version-win=latest" | ||
cabal "v2-build" ["--dry-run", "--version-win=latest"] |