Merge pull request #10625 from cabalism/fix/project-config-path-haddock
[cabal.git] / cabal-testsuite / PackageTests / MultiRepl / CustomSetupKeepTempFiles / cabal.test.hs
blobea0851f1f2c640d2f3b7f5509dba96075a698028
1 import Test.Cabal.Prelude
3 main = do
4 cabalTest' "yes" $ do
5 skipUnlessAnyCabalVersion ">= 3.11"
6 skipUnlessGhcVersion ">= 9.4"
7 cabal' "clean" []
8 res <-
9 cabalWithStdin
10 "v2-repl"
11 [ "--keep-temp-files"
12 , "--enable-multi-repl"
13 , "pkg-b"
14 , "pkg-a"
16 "Bar.bar"
17 assertOutputContains "foo is 42" res
18 void $ assertGlobMatchesTestDir testDistDir "multi-out*/"
20 cabalTest' "no" $ do
21 skipUnlessAnyCabalVersion ">= 3.11"
22 skipUnlessGhcVersion ">= 9.4"
23 cabal' "clean" []
24 res <-
25 cabalWithStdin
26 "v2-repl"
27 [ "--enable-multi-repl"
28 , "pkg-b"
29 , "pkg-a"
31 "Bar.bar"
32 assertOutputContains "foo is 42" res
33 void $ assertGlobDoesNotMatchTestDir testDistDir "multi-out*/"