36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
1 |
#!/usr/bin/perl -w
|
2 |
||
3 |
=head1 NAME
|
|
4 |
||
5 |
dh_auto_test - automatically runs a package's test suites
|
|
6 |
||
7 |
=cut
|
|
8 |
||
9 |
use strict; |
|
1.4.34
by Joey Hess
* dh: Now you can use override_dh_command-arch and override_dh_command-indep |
10 |
use Debian::Debhelper::Dh_Lib; |
1.3.1
by Joey Hess
* Add ant buildsystem support. Closes: #537021 |
11 |
use Debian::Debhelper::Dh_Buildsystems; |
36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
12 |
|
13 |
=head1 SYNOPSIS
|
|
14 |
||
1.3.1
by Joey Hess
* Add ant buildsystem support. Closes: #537021 |
15 |
B<dh_auto_test> [S<I<build system options>>] [S<I<debhelper options>>] [S<B<--> I<params>>]
|
36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
16 |
|
17 |
=head1 DESCRIPTION
|
|
18 |
||
1.4.21
by Joey Hess, Joey Hess, Valery Perrin
[ Joey Hess ] |
19 |
B<dh_auto_test> is a debhelper program that tries to automatically run a
|
1.3.1
by Joey Hess
* Add ant buildsystem support. Closes: #537021 |
20 |
package's test suite. It does so by running the appropriate command for the
|
21 |
build system it detects the package uses. For example, if there's a
|
|
1.4.21
by Joey Hess, Joey Hess, Valery Perrin
[ Joey Hess ] |
22 |
Makefile and it contains a B<test> or B<check> target, then this is done by
|
23 |
running B<make> (or B<MAKE>, if the environment variable is set). If the test
|
|
1.3.1
by Joey Hess
* Add ant buildsystem support. Closes: #537021 |
24 |
suite fails, the command will exit nonzero. If there's no test suite, it
|
25 |
will exit zero without doing anything.
|
|
36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
26 |
|
27 |
This is intended to work for about 90% of packages with a test suite. If it
|
|
1.4.21
by Joey Hess, Joey Hess, Valery Perrin
[ Joey Hess ] |
28 |
doesn't work, you're encouraged to skip using B<dh_auto_test> at all, and
|
36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
29 |
just run the test suite manually.
|
30 |
||
31 |
=head1 OPTIONS
|
|
32 |
||
1.4.21
by Joey Hess, Joey Hess, Valery Perrin
[ Joey Hess ] |
33 |
See L<debhelper(7)/B<BUILD SYSTEM OPTIONS>> for a list of common build
|
1.3.1
by Joey Hess
* Add ant buildsystem support. Closes: #537021 |
34 |
system selection and control options.
|
35 |
||
36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
36 |
=over 4
|
37 |
||
38 |
=item B<--> I<params>
|
|
39 |
||
1.4.35
by Joey Hess
* dh_fixperms: Operate on .ali files throughout /usr/lib, including |
40 |
Pass I<params> to the program that is run, after the parameters that
|
41 |
B<dh_auto_test> usually passes.
|
|
36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
42 |
|
43 |
=back
|
|
44 |
||
1.2.9
by Joey Hess
* Examples files updated to add dh_bugfiles, remove obsolete |
45 |
=head1 NOTES
|
46 |
||
1.4.21
by Joey Hess, Joey Hess, Valery Perrin
[ Joey Hess ] |
47 |
If the B<DEB_BUILD_OPTIONS> environment variable contains B<nocheck>, no
|
1.2.9
by Joey Hess
* Examples files updated to add dh_bugfiles, remove obsolete |
48 |
tests will be performed.
|
49 |
||
1.4.57
by Joey Hess
* dh_shlibdeps: Warn if -V flag is passed, to avoid it accidentially being |
50 |
dh_auto_test does not run the test suite when a package is being cross
|
51 |
compiled.
|
|
52 |
||
36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
53 |
=cut
|
54 |
||
1.4.57
by Joey Hess
* dh_shlibdeps: Warn if -V flag is passed, to avoid it accidentially being |
55 |
if (get_buildoption("nocheck") |
56 |
|| (dpkg_architecture_value("DEB_HOST_GNU_TYPE") ne dpkg_architecture_value("DEB_BUILD_GNU_TYPE"))) { |
|
1.2.9
by Joey Hess
* Examples files updated to add dh_bugfiles, remove obsolete |
57 |
exit 0; |
58 |
}
|
|
59 |
||
1.3.1
by Joey Hess
* Add ant buildsystem support. Closes: #537021 |
60 |
buildsystems_init(); |
61 |
buildsystems_do(); |
|
36
by Martin Pitt
* Merge with Debian unstable. Remaining Ubuntu changes: |
62 |
|
63 |
=head1 SEE ALSO
|
|
64 |
||
65 |
L<debhelper(7)>
|
|
66 |
||
67 |
This program is a part of debhelper.
|
|
68 |
||
69 |
=head1 AUTHOR
|
|
70 |
||
71 |
Joey Hess <joeyh@debian.org>
|
|
72 |
||
73 |
=cut
|