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
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"]