2021-11-28 13:57:09 +01:00
|
|
|
# autopkgtest
|
|
|
|
|
|
|
|
> Run tests on Debian packages.
|
2025-04-27 10:35:40 +03:00
|
|
|
> More information: <https://manpages.debian.org/bookworm/autopkgtest/autopkgtest.1.en.html>.
|
2021-11-28 13:57:09 +01:00
|
|
|
|
|
|
|
- Build the package in the current directory and run all tests directly on the system:
|
|
|
|
|
|
|
|
`autopkgtest -- {{null}}`
|
|
|
|
|
|
|
|
- Run a specific test for the package in the current directory:
|
|
|
|
|
|
|
|
`autopkgtest --test-name={{test_name}} -- {{null}}`
|
|
|
|
|
|
|
|
- Download and build a specific package with `apt-get`, then run all tests:
|
|
|
|
|
|
|
|
`autopkgtest {{package}} -- {{null}}`
|
|
|
|
|
|
|
|
- Test the package in the current directory using a new root directory:
|
|
|
|
|
|
|
|
`autopkgtest -- {{chroot}} {{path/to/new/root}}`
|
|
|
|
|
|
|
|
- Test the package in the current directory without rebuilding it:
|
|
|
|
|
2025-04-27 10:35:40 +03:00
|
|
|
`autopkgtest {{[-B|--no-built-binaries]}} -- {{null}}`
|