Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Feb 8, 2025
1 parent 773e8cb commit e2bd875
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/Freeze/freeze-lock.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-freeze
Resolving dependencies...
6 changes: 6 additions & 0 deletions cabal-testsuite/PackageTests/Freeze/freeze-lock.test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Test.Cabal.Prelude
main = cabalTest $ do
withRepo "repo" $ do
cabal "v2-freeze" ["--lock"]
cwd <- fmap testCurrentDir getTestEnv
assertFileDoesContain (cwd </> "cabal.project.freeze") "reject-unconstrained-dependencies: all"

0 comments on commit e2bd875

Please sign in to comment.