5 dh_auto_test - automatically runs a package's test suites
10 use Debian::Debhelper::Dh_Buildsystems;
14 B<dh_auto_test> [S<I<build system options>>] [S<I<debhelper options>>] [S<B<--> I<params>>]
18 dh_auto_test is a debhelper program that tries to automatically run a
19 package's test suite. It does so by running the appropriate command for the
20 build system it detects the package uses. For example, if there's a
21 Makefile and it contains a "test" or "check" target, then this is done by
22 running make (or MAKE, if the environment variable is set). If the test
23 suite fails, the command will exit nonzero. If there's no test suite, it
24 will exit zero without doing anything.
26 This is intended to work for about 90% of packages with a test suite. If it
27 doesn't work, you're encouraged to skip using dh_auto_test at all, and
28 just run the test suite manually.
32 See L<debhelper(7)/BUILD SYSTEM OPTIONS> for a list of common build
33 system selection and control options.
39 Pass "params" to the program that is run. These can be used to supplement
40 or override the any standard parameters that dh_auto_test passes.
46 If the DEB_BUILD_OPTIONS environment variable contains "nocheck", no
47 tests will be performed.
51 if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS} =~ /nocheck/) {
62 This program is a part of debhelper.
66 Joey Hess <joeyh@debian.org>