(cabal check) Add "Version signatures" test
[cabal.git] / cabal-testsuite / PackageTests / NewBuild / CmdBuild / OnlyConfigure / cabal.test.hs
blob98be02a3d60c5ac8b7091069a12f9040cabd9a4f
1 import Test.Cabal.Prelude
3 main = cabalTest $ do
4 res <- cabal' "v2-build" ["--only-configure"]
5 assertOutputContains "Configuring library for" res
6 assertOutputContains "Configuring executable 'foo' for" res
7 assertOutputDoesNotContain "Configuring test suite 'bar' for" res
8 assertOutputDoesNotContain "Configuring benchmark 'baz' for" res
9 assertOutputDoesNotContain "Building" res
11 res <- cabal' "v2-build" ["--only-configure", "--enable-tests"]
12 assertOutputContains "Configuring library for" res
13 assertOutputContains "Configuring executable 'foo' for" res
14 assertOutputContains "Configuring test suite 'bar' for" res
15 assertOutputDoesNotContain "Configuring benchmark 'baz' for" res
16 assertOutputDoesNotContain "Building" res
18 res <- cabal' "v2-build"
19 [ "--only-configure", "--enable-tests", "--enable-benchmarks"]
20 assertOutputContains "Configuring library for" res
21 assertOutputContains "Configuring executable 'foo' for" res
22 assertOutputContains "Configuring test suite 'bar' for" res
23 assertOutputContains "Configuring benchmark 'baz' for" res
24 assertOutputDoesNotContain "Building" res