diff --git a/test/test-systemctl-enable.sh b/test/test-systemctl-enable.sh index 3fc59f6f9e..d099b6f41e 100644 --- a/test/test-systemctl-enable.sh +++ b/test/test-systemctl-enable.sh @@ -713,7 +713,37 @@ test ! -h "$root/etc/systemd/system/another-target@.target.wants/some-some-link7 test ! -h "$root/etc/systemd/system/target2@some-some-link7.target.requires/some-some-link7.socket" test ! -h "$root/etc/systemd/system/another-target2@.target.requires/some-some-link7.socket" -# TODO: repeat the tests above for presets +: '-------specifiers in presets------------------------------------' +# Repeat the check above, but via 'systemctl preset' instead +# of calling enable/disable directly. We reuse the same unit file, which is +# currently disabled (no symlinks) from the block above. + +mkdir -p "$root/etc/systemd/system-preset" +cat >"$root/etc/systemd/system-preset/99-test.preset" <"$root/etc/systemd/system-preset/99-test.preset" <