summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)AuthorFilesLines
2018-04-06Rewrite build system to support a "target build system"Niels Thykier1-7/+7
Several of the build systems consists of a configure step that generates a buildscript for another build tool. Notable examples being "cmake" and "meson", which even supports multiple backend tools. This change makes it natively possible for debhelper to support such build systems with multiple backends. Note that only build systems with multiple backends have been rewritten. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-29make_symlink: Fix corner cases for link namesNiels Thykier1-0/+55
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-07t: Add test for compat 8 handling of sequencesNiels Thykier1-1/+25
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-07t: Refactor testNiels Thykier1-6/+19
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-31t: Remove some uid_0_test_is_ok guardsNiels Thykier6-30/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-28Rely on DEB_RULES_REQUIRES_ROOT for R³ supportNiels Thykier8-42/+43
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-28dh: Rename optimize_sequence to unpack_sequenceNiels Thykier1-13/+13
It is not a super name, but "optimize" implies that dh will work if you skip the call. By renaming it to unpack we avoid that implication. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-14Update test to match previous commitNiels Thykier2-2/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-03t/dh-sequencer.t: Less is more - remove redundant codeNiels Thykier1-13/+11
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-03dh_install{init,systemd}: Re-order service autosnippetsNiels Thykier4-13/+72
Depends on e6870ceafb9d51800de86a7106cdfb4ce9c9dad8 Closes: Debian#885998, #885998 Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-03Dh_Lib: Support ordering for service handling autosnippetsNiels Thykier1-1/+21
This is part 1 of 2 for solving Debian#814285 and Debian#885998 Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-02dh: Do not re-run completed targetsNiels Thykier1-13/+24
This is part of 2 of the dh sequence rewrite. Part 1 is cb2caa7f67837294b0681d881f52dd23df487f33. This change ensures that dh no longer attempts to run a target that is already marked as complete (e.g. via the stamp file). Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-02dh: Rewrite sequence handlingNiels Thykier1-0/+127
Rewrite the way we compute the sequences to ensure that: 1) Rules target remain opaque (particularly "subtargets" are now also opaque). 2) Opaque targets are run first, so they can run their subtargets before dh runs a command that depends on it. This is the first half of fixing Debian#880840. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-12-31dh_compress: Avoid compressing examples [c12]Niels Thykier1-17/+18
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-12-30dh_missing: Support wildcards in d/not-installedNiels Thykier1-0/+37
Closes: Debian#884556 Closes: nthykier/debhelper#1 Signed-off-by: Niels Thykier <niels@thykier.net>
2017-12-16dh_installsystemd: Enable dh_installsystemd in old compat levelsNiels Thykier1-16/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-25t: Make tests work without fakeroot when R³ is enabledNiels Thykier2-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-25dh_installdeb: Basic validation of {rm,mv}_conffileNiels Thykier1-1/+35
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-11Replace some string evals with a simple requireNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-26Dh_Lib: Fix parse error for empty line before source paragraphNiels Thykier3-0/+60
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-22Dh_Lib: Fix use of uninitialized variables in find_hardlinksNiels Thykier1-0/+22
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-22Test::DH: Ensure we do not call an undefined error subNiels Thykier1-1/+2
2017-10-21makefile.pm: Support R³ for calling make install as rootNiels Thykier1-0/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13dh_installsystemd: if --name is given, only generate maintainer scripts for ↵Felipe Sateler1-0/+15
matching files Closes: #870768
2017-10-13dh_installsystemd: Properly quote unit names in autoscriptsNiels Thykier1-4/+11
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13Even more testsFelipe Sateler1-3/+22
2017-10-13More tests for dh_installsystemdFelipe Sateler1-2/+27
2017-10-13t: Correct dh_installsystemd testNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13Add test that enables/starts happen the expected number of timesFelipe Sateler1-0/+40
2017-10-13dh_installsystemd.t: Remove some unnecessary make_pathsNiels Thykier1-4/+1
The dh_installsystemd is required to create directories it uses by itself, so there is not point in having the test create them for it. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13Add dh_installsystemd script with a simple testFelipe Sateler1-0/+46
2017-10-13Spelling fixesVille Skyttä1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-10dh_systemd_*: Properly quote unit names in autoscriptsNiels Thykier1-4/+12
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-10t: Add tests for dh_systemd_*Felipe Sateler5-0/+161
These are based heavily on the tests written by Felipe Sateler for dh_installsystemd. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-08-24t/pod.t: Also check POD of "dh" and debhelper.podNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-08-24Support building on case-insensitive filesystemsGeoffrey Thomas3-3/+3
Move Debian/ to lib subdirectory to support building on non-case-sensitive filesystems.
2017-07-31Revert "t: Update test related to the autoconf buildsystem"Niels Thykier1-5/+5
This reverts commit 18a301de0e6baf81d110d1b07d71d005a6ba7ee7.
2017-07-27t: Update test related to the autoconf buildsystemNiels Thykier1-5/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-22autoscript: Support hashref for substitutionNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-15autopkgtest-pkg-perl: fix smoke test.gregor herrmann5-6/+14
autopkgtest-pkg-perl's smoke test fails all over the place because debhelper's testsuite has many assumptions that it is run from the source tree, while autopkgtest-pkg-perl's smoke test copies (by default) the t/ directory to a new empty directory and runs the tests from there. Add debian/tests/pkg-perl/smoke-files to copy more files from the source tree which are used in tests. Add debian/tests/pkg-perl/smoke-skip to skip t/size.t which fails when run under autopkgtest-pkg-perl because it tests all /usr/bin/dh_* helpers, and at least dh_autotools-dev_updateconfig is too large. Change t/buildsystems/03-bs-auto-buildable.t, t/buildsystems/buildsystem_tests.t, t/override_target.t, t/size.t, and t/syntax/syntax-progs.t to look for scripts and modules not in the source tree but in the installed directories when run under autopkgtest. With these changes, the test suite passes both during build and during autokpkgtest. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-13install_{file,lib,prog}: Replace dangling symlinksNiels Thykier1-0/+30
The "install" command they emulate did as well. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-12t: Fix test under prove without passing "t" dirNiels Thykier1-1/+1
Fix a test that failed when "prove" was called without the "t" dir explicitly. I.e. prove -lr t # works prove -lr # failed Now both works. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03Set Emacs file variables directory-wideSven Joachim22-115/+0
Set the local variables for Emacs in the central placed intended for it, rather than in (currently) 95 individual files. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03t: Avoid redefining dirnameNiels Thykier14-14/+14
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03t: Split up dh_link testNiels Thykier2-12/+35
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03t: Split syntax check testNiels Thykier2-5/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03t: Split buildsystem_tests in to smaller bitsNiels Thykier8-349/+513
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03Test::DH: Expose $ROOT_DIRNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03t: Split out a separate test for make jobserver flagsNiels Thykier2-45/+64
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03t: Split dh_missing testNiels Thykier8-19/+70
Signed-off-by: Niels Thykier <niels@thykier.net>