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