Reimplement `cabal check` (#8427)
[cabal.git] / cabal-testsuite / PackageTests / InternalLibraries / setup.test.hs
blob83341ad85f8ee5176d5f4130b0b771749dcc3239
1 import Test.Cabal.Prelude
2 -- Basic test for internal libraries (in p); package q is to make
3 -- sure that the internal library correctly is used, not the
4 -- external library.
5 main = setupAndCabalTest $ do
6 withPackageDb $ do
7 withDirectory "q" $ setup_install []
8 withDirectory "p" $ do
9 setup_install []
10 setup "clean" []
11 r <- runInstalledExe' "foo" []
12 assertOutputContains "I AM THE ONE" r