Skip to content

Commit 8c5ec32

Browse files
committed
Update certain integration tests
1 parent 0f1696f commit 8c5ec32

File tree

17 files changed

+40
-37
lines changed

17 files changed

+40
-37
lines changed

test/integration/tests/1265-extensible-snapshots/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ main = do
66
stackErr ["build", "zlib-bindings"]
77
stack ["build", "--stack-yaml", "stack-modify-lts.yaml", "async"]
88
stack ["build", "--stack-yaml", "stack-local-snapshot.yaml", "async"]
9-
stack ["build", "--stack-yaml", "stack-remote-snapshot.yaml", "async"]
9+
stack ["build", "--stack-yaml", "stack-remote-snapshot.yaml", "acme-missiles"]
1010
stackErr ["build", "--stack-yaml", "stack-modify-lts.yaml", "zlib-bindings"]
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
resolver: ghc-9.4.5
22
name: test-snapshot-2
33
packages:
4-
- stm-2.5.0.0
5-
- async-2.1.0
6-
- zlib-0.6.2.1@sha256:201b3f7d4edd0a6a0b235105a4d1aa8d30dcb7c8b4043102487407a4753657ef,4508
4+
- stm-2.5.1.0
5+
- async-2.2.4
6+
- hashable-1.4.2.0
7+
- zlib-0.6.3.0@sha256:9adce39e4ca0b7a87d45df0a243134816c57059a08e28cff5469c98ae1f54dfc,5367
78
# FIXME: test these here
89
flags: {}
910
ghc-options: {}

test/integration/tests/1265-extensible-snapshots/files/snapshots/remote-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
resolver: lts-21.0
33
name: remote-snapshot
44
packages:
5-
- archive: https://s3.amazonaws.com/hackage.fpcomplete.com/package/ghc-prim-0.8.0.tar.gz
5+
- archive: https://s3.amazonaws.com/hackage.fpcomplete.com/package/acme-missiles-0.3.tar.gz

test/integration/tests/3926-ghci-with-sublibraries/files/files.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
cabal-version: 2.0
2+
13
name: files
24
version: 0.1.0.0
35
build-type: Simple
4-
cabal-version: >= 2.0
56

67
library
78
hs-source-dirs: src
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
resolver: ghc-9.4.5
22
extra-deps:
3-
- stm-2.4.4.1
4-
- mtl-2.2.1
3+
- stm-2.5.1.0
4+
- mtl-2.2.2

test/integration/tests/3942-solver-error-output/files/test-stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.23
1+
resolver: nightly-2023-06-18
22

33
packages: []
44

test/integration/tests/4101-dependency-tree/Main.hs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,34 @@ main =
1212
stackCheckStdout ["ls", "dependencies", "tree"] $ \stdOut -> do
1313
let expected = unlines [ "Packages"
1414
, "├─┬ files 0.1.0.0"
15-
, "│ ├─┬ base 4.16.4.0"
15+
, "│ ├─┬ base 4.17.1.0"
1616
]
1717
unless (expected `isPrefixOf` stdOut) $
1818
error $ unlines [ "Expected:", expected, "Actual:", stdOut ]
1919

2020
stackCheckStdout ["ls", "dependencies", "tree", "--depth=1"] $ \stdOut -> do
2121
let expected = unlines [ "Packages"
2222
, "├─┬ files 0.1.0.0"
23-
, "│ ├── base 4.16.4.0"
23+
, "│ ├── base 4.17.1.0"
2424
, "│ ├── filelock 0.1.1.2"
2525
, "│ ├── mtl 2.2.2"
2626
, "│ └── subproject 0.1.0.0"
2727
, "└─┬ subproject 0.1.0.0"
28-
, " └── base 4.16.4.0"
28+
, " └── base 4.17.1.0"
2929
]
3030
when (stdOut /= expected) $
3131
error $ unlines [ "Expected:", expected, "Actual:", stdOut ]
3232

3333
stackCheckStdout ["ls", "dependencies", "tree", "subproject"] $ \stdOut -> do
3434
let expected = unlines [ "Packages"
3535
, "└─┬ subproject 0.1.0.0"
36-
, " └─┬ base 4.16.4.0"
37-
," ├─┬ ghc-bignum 1.2"
38-
," │ └─┬ ghc-prim 0.8.0"
39-
," │ └── rts 1.0.2"
40-
," ├─┬ ghc-prim 0.8.0"
41-
," │ └── rts 1.0.2"
42-
," └── rts 1.0.2"
36+
, " └─┬ base 4.17.1.0"
37+
, " ├─┬ ghc-bignum 1.3"
38+
, " │ └─┬ ghc-prim 0.9.0"
39+
, " │ └── rts 1.0.2"
40+
, " ├─┬ ghc-prim 0.9.0"
41+
, " │ └── rts 1.0.2"
42+
, " └── rts 1.0.2"
4343
]
4444
when (stdOut /= expected) $
4545
error $ unlines [ "Expected:", expected, "Actual:", stdOut ]

test/integration/tests/cabal-non-buildable-bug/Main.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ main = do
1414
-- and build will fail (because Cabal will be using its broken
1515
-- logic).
1616
writeFile "stack.yaml" "resolver: ghc-7.10.3"
17-
stackErr ["build"]
18-
stackErr ["build", "--dry-run"]
17+
-- The '--install-ghc' flag is passed here, because IntegrationSpec.runApp
18+
-- sets up `config.yaml` with `system-ghc: true` and `install-ghc: false`.
19+
stackErr ["--install-ghc", "build"]
20+
stackErr ["--install-ghc", "build", "--dry-run"]

test/integration/tests/cabal-sublibrary-dependency/Main.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import StackTest
77
-- sub, each of which exposes a module that exports a function.
88

99
main :: IO ()
10-
-- The '--install-ghc' flag is passed here, because etc/scripts/release.hs
11-
-- passes `--no-install-ghc` when `--alpine` is passed to its 'check' command.
12-
-- (See stack.yaml; using GHC 9.4.4.)
13-
main = stackErrStderr ["build", "--install-ghc"] $ \str ->
10+
-- The '--install-ghc' flag is passed here, because IntegrationSpec.runApp sets
11+
-- up `config.yaml` with `system-ghc: true` and `install-ghc: false`.
12+
-- (See stack.yaml; using GHC 9.4.5.)
13+
main = stackErrStderr ["--install-ghc", "build"] $ \str ->
1414
let msg = "Sublibrary dependency is not supported, this will almost \
1515
\certainly fail."
1616
in unless (msg `isInfixOf` str) $

test/integration/tests/cyclic-test-deps/Main.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import StackTest
22

33
main :: IO ()
44
main = do
5-
removeDirIgnore "text-2.0"
6-
stack ["unpack", "text-2.0"]
7-
stack ["unpack", "QuickCheck-2.14.2"]
5+
removeDirIgnore "text-2.0.2"
6+
stack ["unpack", "text-2.0.2"]
7+
stack ["unpack", "QuickCheck-2.14.3"]
88
removeFileIgnore "stack.yaml"
99
stack ["init", defaultResolverArg]
1010
stack ["test", "--dry-run"]

0 commit comments

Comments
 (0)