Merge pull request #10493 from Sdywolf/doc-refine/repl
[cabal.git] / cabal-testsuite / PackageTests / BuildDeps / InternalLibrary3 / setup.test.hs
blob549e8bf8bb457a22aee51459bddedf50335ee105
1 import Test.Cabal.Prelude
2 -- Test that internal library is preferred to an installed on
3 -- with the same name and LATER version
4 main = setupAndCabalTest . withPackageDb $ do
5 withDirectory "to-install" $ setup_install []
6 setup_build []
7 r <- runExe' "lemon" []
8 assertEqual
9 ("executable should have linked with the internal library")
10 ("foo foo myLibFunc internal")
11 (concatOutput (resultOutput r))