Add migration guide for #9718 (#10578)
[cabal.git] / cabal-testsuite / PackageTests / ProjectDir / cabal.test.hs
blob5ac2fe9cc6ab3acf20b7211dee65dcbb60687b88
1 import Test.Cabal.Prelude
3 main :: IO ()
4 main = cabalTest $ recordMode DoNotRecord $ do
5 env <- getTestEnv
7 let cwd = testCurrentDir env
9 -- Relative directory
10 cabal "v2-build" [ "--project-dir=proj", "all" ]
12 -- Absolute directory
13 cabal "v2-build" [ "--project-dir", (cwd </> "proj"), "all" ]
15 cabal "v2-clean" [ "--project-dir=proj" ]
17 withProjectFile "nix/cabal.project" $ do
18 cabal "v2-build" [ "--project-dir=proj", "extra" ]
20 cabal "v2-clean" [ "--project-dir=proj" ]
22 -- App with no cabal.project
23 void $ cabal_raw' [ "run", "--project-dir=app", "app" ] Nothing