bpkg-pkg-test(1)
π bpkg-pkg-test(1) β the general commands manual, but make it a group chat π
okay bestie, so this is bpkg-pkg-test(1) β the manual page for the pkg-test command. it tests packages. that's the whole vibe. but there's β¨layersβ¨. let's get into it. π¦
πΈ NAME πΈ
bpkg-pkg-test β test package. periodt.
β¨ SYNOPSIS β¨
bpkg pkg-test|test [options] [vars] pkg...
bpkg pkg-test|test [options] [vars] --all|-a
bpkg pkg-test|test [options] [vars] (--all-pattern <pattern>)...
π DESCRIPTION π
so like, pkg-test tests packages, and it does it in three different ways depending on which form you use:
- first form β you name specific packages and it tests those packages. very main character, very "i know exactly what i want".
- second form β you pass
--all|-aand it tests all the held packages (peepbpkg-pkg-status(1)if you're like "held?? what does that mean??"). - third form β you pass one or more
--all-pattern <pattern>and it tests all the held packages that match any of those wildcard patterns.
and bestie, it gets even better β you can also test the dependencies of those packages by adding --immediate|-i (immediate deps) or --recursive|-r (all deps, all the way down, no cap). π«Ά
ngl, underneath all of this, the command isn't doing much more than running b test. like, that's literally it. that's the whole job. iconic behaviour honestly.
β οΈ in the first form specifically, the packages you name must have already been configured withbpkg-pkg-build(1)orbpkg-pkg-configure(1). don't come for me if you skipped that step. π
you can also pass additional command line variables (vars, usually config.* β you know the ones) straight through to the build system. these variables apply to all the packages you specified. but β¨plot twistβ¨ you can make them apply to only specific packages using the argument grouping mechanism β go read bpkg-argument-grouping(1) for the tea.
π PKG-TEST OPTIONS π
--all,-aβ test all held packages. go off.--all-patternpattern β test held packages matching the wildcard pattern. repeat this option as many times as you want to match multiple patterns, you greedy little thing. π heads up though: you might need to quote the pattern so your shell doesn't go expanding it behind your back. π--immediate,-iβ also test immediate dependencies. just the close friends.--recursive,-rβ also test all dependencies, recursively. the whole friend group. the extended network. everyone. π--package-cwdβ change the current working directory to the package directory before running tests. this one's for the ported third-party packages out there, since it's not uncommon for tests to expect they're running from the project root directory. little diva behaviour, but we accommodate. β¨--directory,-ddir β assume the configuration lives in dir instead of in the current working directory.
π COMMON OPTIONS π
here's the summarized version β the full, detailed lore lives in bpkg-common-options(1) if you want to go deep.
-vβ print the essential underlying commands being executed. the important ones only.-Vβ print all the underlying commands being executed. no secrets, full transparency. π--quiet,-qβ run quietly. only error messages get to speak. π€«--verboselevel β set the diagnostics verbosity to level, somewhere between0and6.--stdout-formatformat β the representation format to use when printing tostdout.--jobs,-jnum β number of jobs to perform in parallel. multitasking queen. π--no-resultβ don't print informational messages about the outcome of performing a command or some of its parts. we're keeping it lowkey.--structured-resultfmt β write the result of performing a command in a structured form.--progressβ display progress indicators for long-lasting operations, like network transfers, building, etc.--no-progressβ suppress those progress indicators for long-lasting operations, like network transfers, building, etc.--diag-colorβ use color in diagnostics. π yes please.--no-diag-colorβ don't use color in diagnostics.--buildpath β the build program to be used to build packages.--build-optionopt β an additional option to pass to the build program.--fetchpath β the fetch program to be used to download resources.--fetch-optionopt β an additional option to pass to the fetch program.--fetch-timeoutsec β the timeout for the fetch and fetch-like (for example,git) programs.--pkg-proxyurl β HTTP proxy server to use when fetching package manifests and archives from remotepkgrepositories.--gitpath β thegitprogram to be used to fetch git repositories.--git-optionopt β an additional common option to pass to thegitprogram.--sha256path β thesha256program to be used to calculate SHA256 sums.--sha256-optionopt β an additional option to pass to thesha256program.--tarpath β thetarprogram to be used to extract package archives.--tar-optionopt β an additional option to pass to thetarprogram.--opensslpath β theopensslprogram to be used for crypto operations.--openssl-optionopt β an additional option to pass to theopensslprogram.--authtype β types of repositories to authenticate.--trustfingerprint β trust a repository certificate with the SHA256 fingerprint.--trust-yesβ assume the answer to all authentication prompts is yes. yes queen, we trust. π«Ά--trust-noβ assume the answer to all authentication prompts is no. absolutely not, blocked. π«--git-capabilitiesup=pc β protocol capabilities (pc) for a git repository URL prefix (up).--pagerpath β the pager program to be used to show long text.--pager-optionopt β an additional option to pass to the pager program.--options-filefile β read additional options from file.--default-optionsdir β the directory to load additional default options files from.--no-default-optionsβ don't load default options files at all. not today.--keep-tmpβ don't remove bpkg's temporary directory at the end of the command execution, and print its path at verbosity level2or higher.
π¦ DEFAULT OPTIONS FILES π¦
go check bpkg-default-options-files(1) for the whole overview of default options files, bestie. but for pkg-test specifically, the search start directory is the configuration directory.
in each directory, these options files get searched for, and if they're found, loaded in this exact order:
bpkg.options
bpkg-pkg-test.options
π¨ and here's the catch: thispkg-testcommand option cannot be specified in the default options files: ---directory,-d
π BUGS π
send bug reports to the users@build2.org mailing list. tell them i sent you. π
β COPYRIGHT β
Copyright (c) 2014-2024 the build2 authors.
Permission is granted to copy, distribute and/or modify this document under the terms of the MIT License.
and that's the whole page, bestie!! π this was bpkg 0.17.0, from June 2024, and it's the bpkg-pkg-test(1) manual. go test some packages and slay. β¨π
π₯
π¦ where this page comes from
- fedora 43: bpkg 0.17.0-5.fc43 Β· MIT
- fedora 44: bpkg 0.17.0-7.fc44 Β· MIT
- nixos 26.05: bpkg 0.17.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms