Update manual about (package ...) fields in alias stanzas
This commit is contained in:
parent
477a5997ca
commit
b48f545b5f
|
@ -559,7 +559,7 @@ The syntax is as follows:
|
||||||
|
|
||||||
=<name>= is an alias name such as =runtest=.
|
=<name>= is an alias name such as =runtest=.
|
||||||
|
|
||||||
=<deps-conf list>= specifies the dependencies of the rule. See the
|
=<deps-conf list>= specifies the dependencies of the alias. See the
|
||||||
[[Dependency
|
[[Dependency
|
||||||
specification][dependency specification section]] for more details.
|
specification][dependency specification section]] for more details.
|
||||||
|
|
||||||
|
@ -568,10 +568,10 @@ The syntax is as follows:
|
||||||
- =<action>=, an action to run when constructing the alias. See the
|
- =<action>=, an action to run when constructing the alias. See the
|
||||||
[[User actions][actions section]] for more details.
|
[[User actions][actions section]] for more details.
|
||||||
|
|
||||||
- =(package <name>)=. If there are no ambiguities, you can omit this
|
- =(package <name>)= indicates that this alias stanza is part of
|
||||||
field. Otherwise you need it to specify which package this alias is a part of.
|
package =<name>= and should be filtered out if =<name>= is filtered
|
||||||
The package is not ambiguous when the first parent directory to contain a
|
out from the command line, either with =--only-packages <pkgs>= or
|
||||||
=<package>.opam= file contains exactly one =<package>.opam= file
|
=-p <pkgs>=
|
||||||
|
|
||||||
The typical use of the =alias= stanza is to define tests:
|
The typical use of the =alias= stanza is to define tests:
|
||||||
|
|
||||||
|
@ -583,6 +583,11 @@ The typical use of the =alias= stanza is to define tests:
|
||||||
|
|
||||||
See the [[Running tests][section about running tests]] for details.
|
See the [[Running tests][section about running tests]] for details.
|
||||||
|
|
||||||
|
Note that if your project contains several packages and you run test
|
||||||
|
the tests from the opam file using a =build-test= field, then all your
|
||||||
|
=runtest= alias stanzas should have a =(package ...)= field in order
|
||||||
|
to partition the set of tests.
|
||||||
|
|
||||||
**** install
|
**** install
|
||||||
|
|
||||||
The =install= stanza is what lets you describe what Jbuilder should
|
The =install= stanza is what lets you describe what Jbuilder should
|
||||||
|
|
Loading…
Reference in New Issue