Commit ad424609 authored by Duncan Coutts's avatar Duncan Coutts

Update a couple tests

Due to a change in behaviour: giving no target no longer means build
everything, instead there is an explicit 'all' target.
parent 942fc0e5
...@@ -303,6 +303,11 @@ A target can take any of the following forms: ...@@ -303,6 +303,11 @@ A target can take any of the following forms:
a specific component (e.g., a library, executable, test suite or a specific component (e.g., a library, executable, test suite or
benchmark) to be built. benchmark) to be built.
- All packages: ``all``, which specifies all packages within the project.
- Components of a particular type: ``ctype``, ``package:ctype``, ``all:ctype``:
which specifies all components of the given type.
In component targets, ``package:`` and ``ctype:`` (valid component types In component targets, ``package:`` and ``ctype:`` (valid component types
are ``lib``, ``exe``, ``test`` and ``bench``) can be used to are ``lib``, ``exe``, ``test`` and ``bench``) can be used to
disambiguate when multiple packages define the same component, or the disambiguate when multiple packages define the same component, or the
......
...@@ -7,4 +7,4 @@ main = cabalTest $ do ...@@ -7,4 +7,4 @@ main = cabalTest $ do
recordMode DoNotRecord $ do recordMode DoNotRecord $ do
-- TODO: Hack, delete me -- TODO: Hack, delete me
withEnvFilter (/= "HOME") $ do withEnvFilter (/= "HOME") $ do
cabal "new-build" [] cabal "new-build" ["all"]
...@@ -4,5 +4,5 @@ main = cabalTest $ do ...@@ -4,5 +4,5 @@ main = cabalTest $ do
-- isn't in the system database and thus we can't see if the -- isn't in the system database and thus we can't see if the
-- depsolver incorrectly chooses it. Worth fixing if we figure -- depsolver incorrectly chooses it. Worth fixing if we figure
-- out how to simulate the "global" database without root. -- out how to simulate the "global" database without root.
r <- fails $ cabal' "new-build" [] r <- fails $ cabal' "new-build" ["all"]
assertOutputContains "This is Cabal-99999" r assertOutputContains "This is Cabal-99999" r
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment