summaryrefslogtreecommitdiff
path: root/t/dh_installsystemd
AgeCommit message (Collapse)AuthorFilesLines
2018-09-03Make dh_install{init,systemd}'s autoscripts independent [c12]Niels Thykier1-2/+20
Have dh_installinit use the new --skip-systemd-native parameter and let dh_installsystemd always generate autoscript snippets for systemd services. This ensures that dh_installsystemd's snippet will be used for starting the services and will among other ensure that services are properly unmasked before started. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23t: Fix warningNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-20dh_installsystemd: Fix handling of symlinked alias units, add relevant testsDaniele Nicolodi1-1/+35
2018-06-20t/dh_installsystemd: Use consistent string quotingDaniele Nicolodi1-5/+5
2018-06-16dh_installsystemd: SimplifyDaniele Nicolodi1-2/+2
Simplify and move to a function the code responsible to list all installed units. It is much simpler to refer to unit files simply as their file name without keeping track of their complete path as the later can be readily computed because all unit files must be installed into usr/lib/systemd/system. This removes some confusion and highlight a bug where code blocks for handling units installed at the wrong location would be emitted if relative file paths were specified on the command line. Fix the tests accordingly.
2018-06-16t/dh_installsystemd: Add tests for a simpler source packageDaniele Nicolodi4-9/+71
Extend the tests to verify that dh_installsystemd comand line arguments handling works in the simplified form allowed by source packages building only one binary package.
2018-01-31t: Remove some uid_0_test_is_ok guardsNiels Thykier3-15/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-28Rely on DEB_RULES_REQUIRES_ROOT for R³ supportNiels Thykier3-28/+28
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-03dh_install{init,systemd}: Re-order service autosnippetsNiels Thykier3-10/+69
Depends on e6870ceafb9d51800de86a7106cdfb4ce9c9dad8 Closes: Debian#885998, #885998 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-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-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>