1bpkg-pkg-test(1)            General Commands Manual           bpkg-pkg-test(1)
2
3
4

NAME

6       bpkg-pkg-test - test package
7

SYNOPSIS

9       bpkg pkg-test|test [options] [vars] pkg...
10       bpkg pkg-test|test [options] [vars] --all|-a
11       bpkg pkg-test|test [options] [vars] (--all-pattern <pattern>)...
12

DESCRIPTION

14       The pkg-test command tests the specified packages (the first form), all
15       the held packages (the second form, see bpkg-pkg-status(1)), or all the
16       held  packages  that  match any of the specified wildcard patterns (the
17       third form). Additionally, immediate or all dependencies of these pack‐
18       ages  can  also  be tested by specifying the --immediate|-i or --recur‐
19       sive|-r options, respectively. Underneath, this command doesn't do much
20       more  than  run  b  test. In the first form the specified packages must
21       have been previously configured with bpkg-pkg-build(1) or bpkg-pkg-con‐
22       figure(1).
23
24       Additional  command  line  variables  (vars,  normally config.*) can be
25       passed to the build system. Such variables apply to all  the  specified
26       packages  but  can also be specified to only apply to specific packages
27       using the argument grouping  mechanism  (see  bpkg-argument-grouping(1)
28       for details).
29

PKG-TEST OPTIONS

31       --all|-a
32              Test all held packages.
33
34       --all-pattern pattern
35              Test  held  packages  that match the specified wildcard pattern.
36              Repeat this option to match multiple patterns. Note that you may
37              need to quote the pattern to prevent expansion by your shell.
38
39       --immediate|-i
40              Also test immediate dependencies.
41
42       --recursive|-r
43              Also test all dependencies, recursively.
44
45       --package-cwd
46              Change  the  current  working directory to the package directory
47              prior to running tests. This may help ported  third-party  pack‐
48              ages since its not uncommon for tests to expect they are running
49              form the project root directory.
50
51       --directory|-d dir
52              Assume configuration is in dir rather than in the current  work‐
53              ing directory.
54

COMMON OPTIONS

56       The  common  options are summarized below with a more detailed descrip‐
57       tion available in bpkg-common-options(1).
58
59       -v     Print essential underlying commands being executed.
60
61       -V     Print all underlying commands being executed.
62
63       --quiet|-q
64              Run quietly, only printing error messages.
65
66       --verbose level
67              Set the diagnostics verbosity to level between 0 and 6.
68
69       --stdout-format format
70              Representation format to use for printing to stdout.
71
72       --jobs|-j num
73              Number of jobs to perform in parallel.
74
75       --no-result
76              Don't print informational messages about the outcome of perform‐
77              ing a command or some of its parts.
78
79       --progress
80              Display progress indicators for long-lasting operations, such as
81              network transfers, building, etc.
82
83       --no-progress
84              Suppress progress indicators for long-lasting  operations,  such
85              as network transfers, building, etc.
86
87       --build path
88              The build program to be used to build packages.
89
90       --build-option opt
91              Additional option to be passed to the build program.
92
93       --fetch path
94              The fetch program to be used to download resources.
95
96       --fetch-option opt
97              Additional option to be passed to the fetch program.
98
99       --fetch-timeout sec
100              The fetch and fetch-like (for example, git) program timeout.
101
102       --pkg-proxy url
103              HTTP proxy server to use when fetching package manifests and ar‐
104              chives from remote pkg repositories.
105
106       --git path
107              The git program to be used to fetch git repositories.
108
109       --git-option opt
110              Additional common option to be passed to the git program.
111
112       --sha256 path
113              The sha256 program to be used to calculate SHA256 sums.
114
115       --sha256-option opt
116              Additional option to be passed to the sha256 program.
117
118       --tar path
119              The tar program to be used to extract package archives.
120
121       --tar-option opt
122              Additional option to be passed to the tar program.
123
124       --openssl path
125              The openssl program to be used for crypto operations.
126
127       --openssl-option opt
128              Additional option to be passed to the openssl program.
129
130       --auth type
131              Types of repositories to authenticate.
132
133       --trust fingerprint
134              Trust repository certificate with a SHA256 fingerprint.
135
136       --trust-yes
137              Assume the answer to all authentication prompts is yes.
138
139       --trust-no
140              Assume the answer to all authentication prompts is no.
141
142       --pager path
143              The pager program to be used to show long text.
144
145       --pager-option opt
146              Additional option to be passed to the pager program.
147
148       --options-file file
149              Read additional options from file.
150
151       --default-options dir
152              The directory to load additional default options files from.
153
154       --no-default-options
155              Don't load default options files.
156
157       --keep-tmp
158              Don't remove the bpkg's temporary directory at the  end  of  the
159              command execution and print its path at the verbosity level 2 or
160              higher.
161

DEFAULT OPTIONS FILES

163       See bpkg-default-options-files(1) for an overview of  the  default  op‐
164       tions files. For the pkg-test command the search start directory is the
165       configuration directory. The following options files are  searched  for
166       in each directory and, if found, loaded in the order listed:
167
168       bpkg.options
169       bpkg-pkg-test.options
170
171       The  following  pkg-test command options cannot be specified in the de‐
172       fault options files:
173
174       --directory|-d
175

BUGS

177       Send bug reports to the users@build2.org mailing list.
178
180       Copyright (c) 2014-2022 the build2 authors.
181
182       Permission is granted to copy, distribute and/or modify  this  document
183       under the terms of the MIT License.
184
185
186
187bpkg 0.15.0                        July 2022                  bpkg-pkg-test(1)
Impressum