summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)AuthorFilesLines
2017-07-01dh_install.t: Optimize out some fork+execNiels Thykier1-28/+41
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-01Run dh_install.t in a temp dirNiels Thykier2-1/+36
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-30Test::DH: Prove a run_dh_tool sub that DTRTNiels Thykier2-14/+41
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-30Test::DH: Set PERL5LIBNiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-30Add test case for #866570Niels Thykier1-1/+11
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-30dh_install.t: Run the tests against all relevant compat levelsNiels Thykier1-74/+117
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-30Add simple Test::DH module in the test suiteNiels Thykier1-0/+67
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-29Revert "dh_installdocs: Install use dir of mainpackage (C11)"Niels Thykier1-12/+1
This reverts commit 71007f72da682dd9d7f932d81ca2ecd5d46a0e70 (plus effectively 6c946cd0bb239a4fd02e7acbcb797ecccfb0e3cb). The policy said "X-doc => X" not "X-doc => main package", so the current implementation was insufficient. Roll it back while we figure out a better way to do this.
2017-06-28dh_installdocs: Do less under nodoc profileNiels Thykier1-1/+20
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-04dh_install: Pass --exclude/-X to dh_missing. (Closes: #863447)Iain Lane2-1/+9
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08t: Quiet dh_missing.t testNiels Thykier1-1/+1
2017-04-08Move dh_install’s --{list,fail}-missing to dh_missingMichael Stapelberg7-0/+84
This commit splits dh_install’s --list-missing and --fail-missing functionality into the separate helper dh_missing. To make this work, dh_install logs its source patterns and dh_missing reads these patterns, treating them as installed. This allows us to address #415396, i.e. recognize files installed by other helpers (e.g. dh_installman) as installed. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-04t: Add "auto buildable" tests for meson + ninjaNiels Thykier1-1/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-04Add ninja to build systems and fix a testNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-12-15installinit: do not process systemd files from compat 11 onwardsFelipe Sateler5-0/+88
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-08t: Fix test after change of autoconf build systemNiels Thykier1-4/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-08t/syntax: Print the failing toolNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02t: Fix test issues with the new compat deprecationsNiels Thykier4-4/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-08-14t: Disable third-party build systemsNiels Thykier1-1/+1
Not all auto-selectable third-party build systems can handle being loaded in the conditions of the debhelper test suite. Also, it seems prudent for the tests to work independently of the build environment having extra build systems installed. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-31t/maintscript.t: Rename + Mark as executableNiels Thykier1-1/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-16Add some tests for for dh_installdocsSven Joachim5-0/+105
This is a small test suite for dh_installdocs, motivated by the problems found in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830309. It catches both the bug introduced in commit 71007f72da682dd9d7f932d81ca and the regression caused by commit 863ef397c939340e863be1e96c822934a. The tests verify that the correct /usr/share/doc symlinks and directories are set up with and without the --link-doc option, in both compat level 9 and 11. Since dh_installdocs runs chown(1), the tests are skipped if run by an ordinary user and fakeroot is unavailable. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-02Handle renamed/changed make parallel optionsNiels Thykier1-25/+37
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-01t/size.t: Add use strict + use warningsNiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-01t: Migrate to 3-arg openNiels Thykier3-9/+12
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-04-02t/override_target.t: Avoid calling dh_autoreconfNiels Thykier1-1/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-02-22dh_auto_test: Add VERBOSE=1 when using autoconfGergely Nagy2-5/+10
When the build system is autoconf, assume that one also uses automake, and pass VERBOSE=1 to make check too. Without VERBOSE=1, newer automake-generated makefiles will not display the actual test errors, but store them in a file. This makes build logs considerably less useful when it comes to discovering test failures. With VERBOSE=1 set, test failures are displayed. It should have no ill effects when used with a non-automake makefile + autoconf combination. The test suite was updated to reflect the changes, and new tests were added to verify the new functionality. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org> Signed-off-by: Niels Thykier <niels@thykier.net>
2016-02-22t: Rename tests so prove can find themNiels Thykier8-0/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-11-06t/override_target: Copy more aux files into test dirNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-09-26fix file lists and abspaths for dh_compress w/testRafael Kitover1-0/+93
Fix dh_compress to accept file names on the command line that it would otherwise compress anyway, by removing duplicates. Also allow dh_compress to accept absolute paths, by stripping the leading slashes. Add tests for the desired behavior in t/dh_compress.t . Fix an undefined warning in dh_compress that is sometimes triggered. Add a . -> lib symlink so that prove -vwlr t works. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-06-15t/size: Do not penalize empty linesNiels Thykier1-1/+1
At worst it leads to removal of arbitrary empty lines to obey the line limit at the cost of readability. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-07configure gets --*-silent-rules depending on DH_QUIETBernhard R. Link1-0/+1
If DH_QUIET is set, give configure a --enable-silent-rules. If it is not set, always give --disable-silent-rules (Closing #551463 for good).
2015-01-01Add editor hints to test scriptsNiels Thykier8-0/+48
Signed-off-by: Niels Thykier <niels@thykier.net>
2014-12-29Revert "t/size: Ignore empty lines when counting size of a tool"Niels Thykier1-1/+1
This reverts commit 93d8ba917f5bcb972cc1c791d4ba892277554fb3.
2014-12-21t/size: Ignore empty lines when counting size of a toolNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-07-19dh_python: Removed this deprecated and unused command. Closes: #717374 ↵Joey Hess1-2/+1
(Thanks, Luca Falavigna)
2012-09-09Make it possible to pass perl code to autoscript.Marcin Owsiany1-0/+31
The shell-quoted sed code passed as parameter 4 is fragile (see Bug#665296). Make it possible to pass a sub that operates on each line via $_ instead. Also add a basic unit test for Dh_Lib, for now just with tests for autoscript.
2011-08-06hide deprecation noticeJoey Hess1-1/+1
Can this test be written w/o using --after?
2011-08-05makefile.pm: remove build directory even if Makefile does not exist yet.Modestas Vainius1-1/+1
Assume that the package can be cleaned (i.e. the build directory can be removed) as long as it is built out-of-source tree and can be configured. This is useful for derivative buildsystems which generate Makefiles.
2011-07-17adjust test number for new build systemJoey Hess1-1/+1
2010-11-02maintscript filesJoey Hess1-0/+19
dh_installdeb: Support debian/package.maintscript files, which can contain dpkg-maintscript-helper commands. This can be used to automate moving or removing conffiles, or anything added to dpkg-maintscript-helper later on. Closes: #574443 (Thanks, Colin Watson)
2010-09-29stop testing jobserver availability codeJoey Hess1-20/+3
Testing this is sensative to what FDs are inherited by the test script. After the recent fix, it started breaking another way.
2010-09-13Avoid open fd 5 or 6 breaking buildsystem test suite. Closes: #596679Joey Hess1-0/+9
2010-01-30adjust for new buildsystemJoey Hess1-1/+1
2009-12-04Typo in the code.Modestas Vainius1-2/+2
How perl didn't fail one this is beyond me.
2009-12-04Add --parallel option.Modestas Vainius1-5/+11
This patch adds --parallel option that enables parallel builds and does not impose limits on maximum concurrent processes. --max-parallel (that implies --parallel) can be used to specify that maximum limit. Also make necessary adjustments to debhelper.pod and buildsystem_tests for this option.
2009-12-04Sometimes SIGINTing the test suite leaves Makefile behind.Modestas Vainius1-1/+1
So use -f for ln. It is safe. (cherry picked from commit d89a2c6d2c7148f6e890c0c11e64b92982d3f869)
2009-12-04Remove legacy punctuation hacks tests which no longer work by design.Modestas Vainius1-40/+4
I assume backwards compatibility in this area was broken by design. Adding --max-parallel to these in 6dd27753803ae2091a9fc3aedc8e70548ea87675 was wrong and negated their whole point, i.e. testing of backwards compatibility when parallel options were not supported. (cherry picked from commit ca0ad4922ada7ae013b035cfe1550a257a330809)
2009-12-04Drop tests previously written for dpkg-buildpackage -jX detection.Modestas Vainius1-63/+1
dpkg-buildpackage -jX detection is gone so these tests were redundant. (cherry picked from commit fd6880eddac9bde6ecdec514a83a169f36316b6a)
2009-11-23releasing version 7.4.87.4.8Joey Hess1-1/+1
2009-11-23update for no-paralle-by-default changeJoey Hess1-9/+9