diff --git a/test/integration/tests/2433-ghc-by-version/files/run.sh b/test/integration/tests/2433-ghc-by-version/files/run.sh index 807cb6ffc8..cd1ebd0625 100755 --- a/test/integration/tests/2433-ghc-by-version/files/run.sh +++ b/test/integration/tests/2433-ghc-by-version/files/run.sh @@ -2,12 +2,10 @@ set -exuo pipefail -export PATH=$(pwd)/fake-path:$($STACK_EXE path --resolver ghc-8.2.2 --compiler-bin):$($STACK_EXE path --resolver ghc-8.4.4 --compiler-bin):$PATH +export PATH=$(pwd)/fake-path:$($STACK_EXE path --resolver ghc-8.2.2 --compiler-bin):$PATH export STACK_ROOT=$(pwd)/fake-root which ghc $STACK_EXE --system-ghc --no-install-ghc --resolver ghc-8.2.2 ghc -- --info -$STACK_EXE --system-ghc --no-install-ghc --resolver ghc-8.4.4 ghc -- --info - $STACK_EXE --system-ghc --no-install-ghc --resolver ghc-8.2.2 runghc foo.hs diff --git a/test/integration/tests/2465-init-no-packages/Main.hs b/test/integration/tests/2465-init-no-packages/Main.hs index f4c6831c4d..95258958ab 100644 --- a/test/integration/tests/2465-init-no-packages/Main.hs +++ b/test/integration/tests/2465-init-no-packages/Main.hs @@ -5,7 +5,6 @@ import Control.Monad (unless) main :: IO () main = do removeFileIgnore "stack.yaml" - stack ["init"] + stack ["init", "--resolver", "ghc-8.2.2"] exists <- doesFileExist "stack.yaml" unless exists $ error "stack.yaml not created!" - stack ["build"] diff --git a/test/integration/tests/3861-ignore-bounds-in-snapshots/Main.hs b/test/integration/tests/3861-ignore-bounds-in-snapshots/Main.hs index fb5cebdb29..d7c6df4452 100644 --- a/test/integration/tests/3861-ignore-bounds-in-snapshots/Main.hs +++ b/test/integration/tests/3861-ignore-bounds-in-snapshots/Main.hs @@ -2,10 +2,6 @@ import StackTest main :: IO () main = do - removeDirIgnore "primitive-0.6.2.0" - removeFileIgnore "primitive-0.6.2.0.tar.gz" - stack ["unpack", "primitive-0.6.2.0@rev:0"] - run "tar" ["cf", "primitive-0.6.2.0.tar.gz", "primitive-0.6.2.0"] stack ["clean", "--stack-yaml", "stack-good.yaml", "--full"] stackErr ["build", "--stack-yaml", "stack-bad.yaml"] stack ["build", "--stack-yaml", "stack-good.yaml"] diff --git a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/.gitignore b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/.gitignore index e13493e0b3..0afa51175a 100644 --- a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/.gitignore +++ b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/.gitignore @@ -1,3 +1 @@ foo.cabal -/primitive-0.6.2.0/ -/primitive-0.6.2.0.tar.gz diff --git a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/bad-bounds.tar b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/bad-bounds.tar new file mode 100644 index 0000000000..0c95e410e0 Binary files /dev/null and b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/bad-bounds.tar differ diff --git a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/package.yaml b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/package.yaml index db3516d206..aaa0f35c7c 100644 --- a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/package.yaml +++ b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/package.yaml @@ -3,6 +3,6 @@ version: 0 dependencies: - base -- primitive +- bad-bounds library: {} diff --git a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/snapshot.yaml b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/snapshot.yaml index f5472b23c4..d86eb18a17 100644 --- a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/snapshot.yaml +++ b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/snapshot.yaml @@ -1,3 +1,8 @@ resolver: ghc-8.2.2 packages: -- ./primitive-0.6.2.0.tar.gz +- ./bad-bounds.tar + +# Include a flag to get a different snapshot hash +flags: + bad-bounds: + unimportant: false diff --git a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/stack-bad.yaml b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/stack-bad.yaml index 2f7ea799ee..e90159ae26 100644 --- a/test/integration/tests/3861-ignore-bounds-in-snapshots/files/stack-bad.yaml +++ b/test/integration/tests/3861-ignore-bounds-in-snapshots/files/stack-bad.yaml @@ -1,5 +1,8 @@ resolver: ghc-8.2.2 extra-deps: -- ./primitive-0.6.2.0.tar.gz -# Include an extra package to get a different snapshot hash -- acme-missiles-0.3 +- ./bad-bounds.tar + +# Include a flag to get a different snapshot hash +flags: + bad-bounds: + unimportant: true diff --git a/test/integration/tests/mutable-deps/Main.hs b/test/integration/tests/mutable-deps/Main.hs index c9e93edd38..287f09afbb 100644 --- a/test/integration/tests/mutable-deps/Main.hs +++ b/test/integration/tests/mutable-deps/Main.hs @@ -3,7 +3,7 @@ import Data.List (isInfixOf) import StackTest main :: IO () -main = do +main = unless isWindows $ do -- depedency issues on Windows let expectRecompilation pkgs stderr = forM_ pkgs $ \p -> unless ((p ++ ": build") `isInfixOf` stderr) $ error $ "package " ++ show p ++ " recompilation was expected"