Skip to content

Commit

Permalink
Add else.project test
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 17, 2024
1 parent 25194f2 commit 7de8298
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# cabal v2-build
Warning: <ROOT>/else.project, else.project: Unrecognized section '_' on line 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Test.Cabal.Prelude

main = cabalTest . recordMode RecordMarked $ do
let log = recordHeader . pure

outElse <- fails $ cabal' "v2-build" [ "all", "--dry-run", "--project-file=else.project" ]
assertOutputContains
(normalizeWindowsOutput "When using configuration from: \
\ - else.project \
\ - dir-else/else.config")
outElse

return ()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if false
else
_
packages: no-pkg-here
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import: dir-else/else.config

0 comments on commit 7de8298

Please sign in to comment.