HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

autopkgtest — Run tests on Debian packages. More information: <https://manned.org/autopkgtest>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrundebianclitestsautopkgtestmorepackages
linux

Problem

How to use the autopkgtest command: Run tests on Debian packages. More information: <https://manned.org/autopkgtest>.

Solution

autopkgtest — Run tests on Debian packages. More information: <https://manned.org/autopkgtest>.

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:
autopkgtest {{[-B|--no-built-binaries]}} -- {{null}}

Code Snippets

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

autopkgtest {{[-B|--no-built-binaries]}} -- {{null}}

Context

tldr-pages: linux/autopkgtest

Revisions (0)

No revisions yet.