autopkgtest
Run DEP-8 tests for Debian packages
TLDR
Build the package and run all tests directly on the system
SYNOPSIS
autopkgtest [options] source -- virtualization
DESCRIPTION
autopkgtest runs tests defined in Debian source packages according to the DEP-8 (autopkgtest) specification. It supports various virtualization backends for isolated testing environments.
The tool separates the test specification from the execution environment using a -- separator. The virtualization backend (null, chroot, schroot, lxc, qemu, etc.) determines how tests are isolated.
PARAMETERS
--test-name=name
Run only the specified test-B, --no-built-binaries
Do not build the package before testing--shell-fail
Open a shell on test failure for debugging-o directory
Write test output to the specified directory
VIRTUALIZATION BACKENDS
null
Run tests directly on the current system (no isolation)chroot path
Use a chroot environmentschroot name
Use a schroot environmentlxc container
Use an LXC containerqemu image
Use a QEMU virtual machine
CAVEATS
The null backend modifies the system directly and may leave changes behind. Chroot and other backends provide better isolation. Test definitions must follow the DEP-8 specification in debian/tests/control.
SEE ALSO
dpkg-buildpackage(1), lxc(1), schroot(1)
