← 返回命令列表

Linux command

autopkgtest 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

autopkgtest -- null

Example

autopkgtest --test-name=[test_name] -- null

Example

autopkgtest [package] -- null

Example

autopkgtest -- chroot [path/to/new_root]

Example

autopkgtest -B -- null

说明

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.

参数

--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

FAQ

What is the autopkgtest command used for?

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.

How do I run a basic autopkgtest example?

Run `autopkgtest -- null` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --test-name=_name_ do in autopkgtest?

Run only the specified test