(cabal check) Add "Autogen include" test for ts
[cabal.git] / cabal-testsuite / PackageTests / Outdated / outdated-project-file.test.hs
blob84c2a1d58c8abd89503b6a0b2df2902b6acec55a
1 import Test.Cabal.Prelude
2 main = cabalTest $ withRepo "repo" $ do
3 res <- cabal' "outdated" ["--v2-freeze-file", "--project-file", "variant.project"]
4 assertOutputContains "base" res
5 assertOutputDoesNotContain "template-haskell" res
6 assertOutputDoesNotContain "binary" res
8 -- Test last-one-wins behaviour.
9 res <- cabal' "outdated" ["--v2-freeze-file", "--project-file", "cabal.project", "--project-file", "variant.project"]
10 assertOutputContains "base" res
11 assertOutputDoesNotContain "template-haskell" res
12 assertOutputDoesNotContain "binary" res
14 -- Test for erroring on --project-file without --v2-freeze-file
15 fails $ cabal "outdated" ["--project-file", "variant.project"]