(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / ReplNoLoad / cabal.test.hs
blobd4f373dfb431f770621ef14dc7b6fd78b5d2a9cc
1 import Test.Cabal.Prelude
3 main = do
4 cabalTest' "lib-normal" $ do
5 cabal' "clean" []
6 res <- cabalWithStdin "repl" [] ":show modules"
7 assertOutputContains "Ok, one module loaded." res
8 cabalTest' "lib-no-load" $ do
9 cabal' "clean" []
10 res <- cabalWithStdin "repl" ["--repl-no-load"] ":show modules"
11 assertOutputDoesNotContain "Ok, one module loaded." res
12 cabalTest' "exec-normal" $ do
13 cabal' "clean" []
14 res <- cabalWithStdin "repl" ["exec"] ":show modules"
15 assertOutputContains "Ok, two modules loaded." res
16 cabalTest' "exec-no-load" $ do
17 cabal' "clean" []
18 res <- cabalWithStdin "repl" ["--repl-no-load"] ":show modules"
19 assertOutputDoesNotContain "Ok, two modules loaded." res