1 import Test
.Cabal
.Prelude
2 main
= cabalTest
$ withRepo
"repo" $ do
3 forM_
["--v2-freeze-file", "--freeze-file"] $ \arg
-> do
4 cabal
' "outdated" [arg
] >>=
6 assertOutputContains
"base" out
7 assertOutputContains
"template-haskell" out
8 assertOutputContains
"binary" out
)
10 cabal
' "outdated" [arg
, "--ignore=base,template-haskell,binary"] >>=
12 assertOutputDoesNotContain
"base" out
13 assertOutputDoesNotContain
"template-haskell" out
14 assertOutputDoesNotContain
"binary" out
)
16 cabal
' "outdated" [arg
, "--minor=base,template-haskell,binary"] >>=
18 assertOutputDoesNotContain
"base" out
19 assertOutputContains
"template-haskell" out
20 assertOutputContains
"binary" out
)
22 fails
$ cabal
' "outdated" ["--project-file=cabal.project.missing.freeze", "--v2-freeze-file"]