Skip to content

Commit

Permalink
Add test of all:benches
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Jan 2, 2025
1 parent 0e5df5d commit bd3d6c9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions cabal-testsuite/PackageTests/Target/cabal.all-benches.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# cabal clean
# cabal v2-target
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Fully qualified target forms:
- a:bench:a-bench
- b:bench:b-bench
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/Target/cabal.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ main = do
cabalTest' "all-tests" $ do
cabal "clean" []
cabal "v2-target" ["all:tests"]

cabalTest' "all-benches" $ do
cabal "clean" []
cabal "v2-target" ["all:benches"]
5 changes: 4 additions & 1 deletion cabal-testsuite/PackageTests/Target/dir-a/a.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ library a-sublib
executable a-exe
test-suite a-test
type: exitcode-stdio-1.0
main-is: Test.hs
main-is: Test.hs
benchmark a-bench
type: exitcode-stdio-1.0
main-is: Bench.hs
5 changes: 4 additions & 1 deletion cabal-testsuite/PackageTests/Target/dir-b/b.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ library b-sublib
executable b-exe
test-suite b-test
type: exitcode-stdio-1.0
main-is: Test.hs
main-is: Test.hs
benchmark b-bench
type: exitcode-stdio-1.0
main-is: Bench.hs

0 comments on commit bd3d6c9

Please sign in to comment.