NAME

bdep-test – test project in build configurations

SYNOPSIS

bdep test [options] [pkg-spec] [cfg-spec] [cfg-var...]

cfg-spec = (@cfg-name | --config|-c cfg-dir)... | --all|-a
pkg-spec = (--directory|-d pkg-dir)... | prj-spec
prj-spec = --directory|-d prj-dir

DESCRIPTION

The test command tests the project packages in one or more build configurations. Additionally, immediate or all dependencies of the project packages can be tested by specifying the --immediate|-i or --recursive|-r options, respectively.

Underneath test executes the bpkg-pkg-test(1) command which itself is not much more than the build system test operation (see b(1) for details). As a result, the main utility of this command is the ability to refer to build configurations by names and to project packages implicitly via the current working directory as well as to test dependencies.

If no project or package directory is specified, then the current working directory is assumed. If no configuration is specified, then the default configuration is assumed. See bdep-projects-configs(1) for details on specifying projects and configurations. Optional cfg-var... are the additional configuration variables to pass to the build system.

TEST OPTIONS

--immediate|-i
Also test immediate dependencies.
--recursive|-r
Also test all dependencies, recursively.
--all|-a
Use all build configurations.
--config|-c dir
Specify the build configuration as a directory.
--directory|-d dir
Assume project/package is in the specified directory rather than in the current working directory.
--config-name|-n name
Specify the build configuration as a name.
--config-id num
Specify the build configuration as an id.

COMMON OPTIONS

The common options are summarized below with a more detailed description available in bdep-common-options(1).

-v
Print essential underlying commands being executed.
-V
Print all underlying commands being executed.
--quiet|-q
Run quietly, only printing error messages.
--verbose level
Set the diagnostics verbosity to level between 0 and 6.
--bpkg path
The package manager program to be used for build configuration management.
--bpkg-option opt
Additional option to be passed to the package manager program.
--build path
The build program to be used to build packages.
--build-option opt
Additional option to be passed to the build program.
--curl path
The curl program to be used for network operations.
--curl-option opt
Additional option to be passed to the curl program.
--pager path
The pager program to be used to show long text.
--pager-option opt
Additional option to be passed to the pager program.
--options-file file
Read additional options from file.

BUGS

Send bug reports to the users@build2.org mailing list.