Skip to content

Commit

Permalink
add PackageTest
Browse files Browse the repository at this point in the history
  • Loading branch information
bacchanalia committed May 19, 2024
1 parent 3433d72 commit 714acec
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cabal-testsuite/PackageTests/NewBuild/T8875/T8875.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cabal-version: 3.0
name: T8875
version: 0.1.0.0

executable foo
main-is: Main.hs
build-depends: base
hs-source-dirs: "a app"
default-language: Haskell2010
1 change: 1 addition & 0 deletions cabal-testsuite/PackageTests/NewBuild/T8875/a app/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main = return ()
8 changes: 8 additions & 0 deletions cabal-testsuite/PackageTests/NewBuild/T8875/cabal.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
- T8875-0.1.0.0 (exe:foo) (first run)
Configuring executable 'foo' for T8875-0.1.0.0...
Preprocessing executable 'foo' for T8875-0.1.0.0...
Building executable 'foo' for T8875-0.1.0.0...
1 change: 1 addition & 0 deletions cabal-testsuite/PackageTests/NewBuild/T8875/cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: .
5 changes: 5 additions & 0 deletions cabal-testsuite/PackageTests/NewBuild/T8875/cabal.test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Test.Cabal.Prelude

main = cabalTest . void $ do
-- Building a target that contains whitespace
cabal' "v2-build" ["a app/Main.hs"]

0 comments on commit 714acec

Please sign in to comment.