Merge pull request #10493 from Sdywolf/doc-refine/repl
[cabal.git] / cabal-testsuite / PackageTests / Regression / T9756 / cabal.test.hs
blob65b1acb5b7041c7c80fb852e720361e6d9febb98
1 import Test.Cabal.Prelude
3 -- We are testing if the build-tools program is found in path before programs e.g. in extra-prog-path or the system path
4 -- For that, we need
5 -- * A repo with a build tool that is up to date
6 -- * An older version of the build tool in the extra-prog-path
7 -- * A project that requires the more up-to-date version of the build-tool
9 main = cabalTest $ withRepo "repo" $ do
10 dir <- testWorkDir <$> getTestEnv
11 cabal "v2-install" ["mybuilder-0.1.0.0", "--installdir=" ++ dir ++ "/install", "--overwrite-policy=always"]
12 cabal "v2-build" ["cabal-bug-build-tool", "--extra-prog-path=" ++ dir ++ "/install"]