Commit Graph

12 Commits

Author SHA1 Message Date
Luca Boccassi
af85b660a4 autopkgtest: update unit-config test for new relative symlinking
Required by https://github.com/systemd/systemd/pull/22649
2022-04-02 11:36:26 +02:00
Martin Pitt
8d72f4f1c3 Revert "debian/tests/unit-config: Tolerate path variations"
The double slashes got fixed properly upstream again:
https://github.com/systemd/systemd/commit/23bdba61b

This reverts commit 3da52a0fab.
2019-03-14 13:29:49 +01:00
Martin Pitt
3da52a0fab debian/tests/unit-config: Tolerate path variations
Since https://github.com/systemd/systemd/commit/1c2c7c6cb it can happen
that pkg-config paths start with '//'. These are not really meaningful,
so normalize the path before comparison.
2019-02-27 22:38:47 +01:00
Martin Pitt
50e0787a4d debian/tests/unit-config: Query pkg-config for system unit dir
This fixes confusion on merged-/usr systems where both /usr/lib/systemd and
/lib/systemd exist. It's actually useful to verify that systemd.pc says the
truth.
2016-11-09 11:46:12 +01:00
Martin Pitt
f2031001b0 debian/tests/unit-config: More checks for linked units
Check disabling of a "systemctl link"ed unit, and check "systemctl enable" on a
unit with full path which is not in the standard directories.
2016-04-11 20:56:32 +02:00
Martin Pitt
6ebdc0dcfa debian/tests/unit-config: Use systemd-sysv-install instead of update-rc.d directly
So that the test works under Fedora too.
2016-04-07 22:38:19 +02:00
Martin Pitt
4384ae3ea6 debian/tests/unit-config: Detect if system units are in /usr/
So that the test works on systems with merged /usr.
2016-04-07 22:32:38 +02:00
Martin Pitt
12085d6ac6 debian/tests/unit-config: Check that enable/disable commands are idempotent 2016-04-07 21:49:45 +02:00
Martin Pitt
400b6df031 debian/tests/unit-config: Call "daemon-reload" to clean up generated units in between tests 2016-04-07 21:40:28 +02:00
Martin Pitt
73691eab7d Add debian/tests/unit-config: Test "systemctl link"
This reproduces https://launchpad.net/bugs/1480310
2015-08-12 15:05:40 +02:00
Martin Pitt
19135a9607 debian/tests/unit-config: Add tests for systemctl enable/disable on a SysV-only unit
Reproduces LP #1447807.
2015-05-05 20:45:36 +02:00
Martin Pitt
d227128f77 Add unit-config autopkgtest
This checks systemd unit/sysv init enabling and disabling via systemctl. This
also reproduces #777613.
2015-02-11 10:00:59 +01:00