Add a check of the current behaviour importing duplicates
[cabal.git] / cabal-testsuite / PackageTests / MultiRepl / KeepTempFiles / cabal.test.hs
blob26c90db7ab14aa0bc1136268adccd86b5459b03c
1 import Test.Cabal.Prelude
3 main = do
4 cabalTest' "yes" $ do
5 skipUnlessGhcVersion ">= 9.4"
6 cabal' "clean" []
7 res <-
8 cabalWithStdin
9 "v2-repl"
10 [ "--keep-temp-files"
11 , "--enable-multi-repl"
12 , "pkg-b"
13 , "pkg-a"
15 "Bar.bar"
16 assertOutputContains "foo is 42" res
17 void $ assertGlobMatchesTestDir testDistDir "multi-out*/"
19 cabalTest' "no" $ do
20 skipUnlessGhcVersion ">= 9.4"
21 cabal' "clean" []
22 res <-
23 cabalWithStdin
24 "v2-repl"
25 [ "--enable-multi-repl"
26 , "pkg-b"
27 , "pkg-a"
29 "Bar.bar"
30 assertOutputContains "foo is 42" res
31 void $ assertGlobDoesNotMatchTestDir testDistDir "multi-out*/"