1bpkg-pkg-test(1) General Commands Manual bpkg-pkg-test(1)
2
3
4
6 bpkg-pkg-test - test package
7
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
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
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
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 --jobs|-j num
70 Number of jobs to perform in parallel.
71
72 --no-result
73 Don't print informational messages about the outcome of perform‐
74 ing a command or some of its parts.
75
76 --no-progress
77 Suppress progress indicators for long-lasting operations, such
78 as network transfers, building, etc.
79
80 --build path
81 The build program to be used to build packages.
82
83 --build-option opt
84 Additional option to be passed to the build program.
85
86 --fetch path
87 The fetch program to be used to download resources.
88
89 --fetch-option opt
90 Additional option to be passed to the fetch program.
91
92 --fetch-timeout sec
93 The fetch and fetch-like (for example, git) program timeout.
94
95 --pkg-proxy url
96 HTTP proxy server to use when fetching package manifests and ar‐
97 chives from remote pkg repositories.
98
99 --git path
100 The git program to be used to fetch git repositories.
101
102 --git-option opt
103 Additional common option to be passed to the git program.
104
105 --sha256 path
106 The sha256 program to be used to calculate SHA256 sums.
107
108 --sha256-option opt
109 Additional option to be passed to the sha256 program.
110
111 --tar path
112 The tar program to be used to extract package archives.
113
114 --tar-option opt
115 Additional option to be passed to the tar program.
116
117 --openssl path
118 The openssl program to be used for crypto operations.
119
120 --openssl-option opt
121 Additional option to be passed to the openssl program.
122
123 --auth type
124 Types of repositories to authenticate.
125
126 --trust fingerprint
127 Trust repository certificate with a SHA256 fingerprint.
128
129 --trust-yes
130 Assume the answer to all authentication prompts is yes.
131
132 --trust-no
133 Assume the answer to all authentication prompts is no.
134
135 --pager path
136 The pager program to be used to show long text.
137
138 --pager-option opt
139 Additional option to be passed to the pager program.
140
141 --options-file file
142 Read additional options from file.
143
144 --default-options dir
145 The directory to load additional default options files from.
146
147 --no-default-options
148 Don't load default options files.
149
151 See bpkg-default-options-files(1) for an overview of the default op‐
152 tions files. For the pkg-test command the search start directory is the
153 configuration directory. The following options files are searched for
154 in each directory and, if found, loaded in the order listed:
155
156 bpkg.options
157 bpkg-pkg-test.options
158
159 The following pkg-test command options cannot be specified in the de‐
160 fault options files:
161
162 --directory|-d
163
165 Send bug reports to the users@build2.org mailing list.
166
168 Copyright (c) 2014-2021 the build2 authors.
169
170 Permission is granted to copy, distribute and/or modify this document
171 under the terms of the MIT License.
172
173
174
175bpkg 0.14.0 October 2021 bpkg-pkg-test(1)