systemd/test/units
Frantisek Sumsal 5083e42765 test: verify our own units (where applicable)
This is inspired by one of our internal tests that does pretty much the
same thing. However, it is slightly more convoluted than I'd like it to
be, since I really don't want to duplicate the list of our units in
another place, so we need to, somehow, pass the list from the meson file
to the test script. I originally envisioned this to be a part of the
unit test suite, but this doesn't work for unit files with absolute
paths to binaries, as we'd have to install the build first (maybe using
a chroot would work?).

It doesn't check man pages (since they might not be installed on the
test machine) and also skip recursive dependencies (as that would trip
over issues in files that are not under our direct control), but it
should still cover typos and such.

There are currently two units for which the check had to be disabled -
syslog.socket, as the corresponding syslog.service might not be
installed, and rc-local.service as that's a compat API and the necessary
/etc/rc.d/rc.local file may not (and most likely won't be) present.
2024-02-20 15:45:50 +01:00
..
loopy.service.d
unit-.service.d
unit-with-.service.d
unit-with-multiple-.service.d
unit-with-multiple-dashes.service.d
a-conj.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
a.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
autorelabel.service test: drop remaining console output 2023-11-28 04:10:25 +09:00
b.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
basic.target
c.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
d.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
daughter.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
delegated_cgroup_filtering_payload.sh
delegated_cgroup_filtering_payload_child.sh
dml-discard-empty.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
dml-discard-set-ml.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
dml-discard.slice
dml-override-empty.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
dml-override.slice
dml-passthrough-empty.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
dml-passthrough-set-dml.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
dml-passthrough-set-ml.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
dml-passthrough.slice
dml.slice
e.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
end.service test: verify json format passed through varlink 2023-11-28 04:13:44 +09:00
end.sh pam-util: include cache ID of bus connection in the log message 2024-02-19 10:15:33 +00:00
f.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
g.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
generator-utils.sh
grandchild.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
h.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
i.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
loopy.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
loopy2.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
loopy3.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
loopy4.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
nomem.slice
nomemleaf.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
parent-deep.slice
parent.slice
sched_idle_bad.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
sched_idle_ok.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
sched_rr_bad.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
sched_rr_change.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
sched_rr_ok.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
shutdown.target
sockets.target
son.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
success-failure-test-failure.service
success-failure-test-success.service
success-failure-test.service
sysinit.target
test-control.sh test: support TEST_MATCH_* stuff in TEST-23-UNIT-FILE as well 2024-02-20 13:31:00 +01:00
testsuite-01.service
testsuite-01.sh test: systemd-update-utmp is optional 2024-02-07 11:00:20 +01:00
testsuite-02.service
testsuite-02.sh test: verify json format passed through varlink 2023-11-28 04:13:44 +09:00
testsuite-03.service
testsuite-03.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-04.bsod.sh test: properly preserve journal from sd-bsod tests 2024-02-16 10:37:37 +01:00
testsuite-04.corrupted-journals.sh
testsuite-04.fss.sh
testsuite-04.journal-append.sh
testsuite-04.journal-corrupt.sh test: temporarily enable session lingering for the test user 2024-02-19 11:43:54 +01:00
testsuite-04.journal-gatewayd.sh test: fix typo 2024-02-02 09:27:52 +09:00
testsuite-04.journal-remote.sh test: make sure the dummy CA certificate is marked as such 2023-12-23 13:42:09 +01:00
testsuite-04.journal.sh test: wait for verbose-success.service finished 2024-01-05 13:08:10 +01:00
testsuite-04.LogFilterPatterns.sh
testsuite-04.service
testsuite-04.sh test: don't truncate the final journal 2023-12-23 15:35:08 +01:00
testsuite-04.SYSTEMD_JOURNAL_COMPRESS.sh core: serialize and deserialize unit start ratelimits 2023-11-22 12:12:35 +00:00
testsuite-05.effective-limit.sh test: Add effective cgroup limits testing 2024-01-03 13:37:58 +01:00
testsuite-05.rlimit.sh test: Convert rlimit test to subtest of generic limit testing 2024-01-03 13:37:58 +01:00
testsuite-05.service test: Convert rlimit test to subtest of generic limit testing 2024-01-03 13:37:58 +01:00
testsuite-05.sh test: Convert rlimit test to subtest of generic limit testing 2024-01-03 13:37:58 +01:00
testsuite-06.service
testsuite-06.sh test: make TEST-06-SELINUX work with the refpolicy and beef it up a bit 2023-11-14 18:54:16 +01:00
testsuite-07.aux-scope.sh test: wait until the test binary starts the test aux scope 2024-02-03 02:57:52 +09:00
testsuite-07.exec-context.sh core: escape spaces when serializing as well 2024-02-14 02:22:58 +08:00
testsuite-07.exec-deserialization.sh test: fix typo 2024-01-05 19:08:12 +09:00
testsuite-07.issue-1981.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-07.issue-2467.sh
testsuite-07.issue-3166.sh
testsuite-07.issue-3171.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-07.issue-14566.sh
testsuite-07.issue-16115.sh
testsuite-07.issue-27953.sh
testsuite-07.issue-30412.sh test: flush the socket once the triggered unit exits 2023-12-24 13:00:56 +01:00
testsuite-07.main-PID-change.sh
testsuite-07.mount-invalid-chars.sh
testsuite-07.poll-limit.sh TEST-07: minor simplification 2024-01-09 11:18:11 +01:00
testsuite-07.pr-31351.sh core/exec-invoke: record correct exit status when failed to locate executable 2024-02-19 23:12:59 +08:00
testsuite-07.private-network.sh
testsuite-07.service
testsuite-07.sh
testsuite-07.type-exec-parallel.sh test: add integration test for Type=exec robustness 2024-01-19 16:51:55 +01:00
testsuite-08.service
testsuite-08.sh test: skip TEST-08-INITRD if systemd didn't run in the initrd 2023-12-15 16:51:25 +01:00
testsuite-09.journal.sh test: add test for seqnum and seqnum ID 2023-12-04 15:14:25 +09:00
testsuite-09.service
testsuite-09.sh test: add test for seqnum and seqnum ID 2023-12-04 15:14:25 +09:00
testsuite-13.machinectl.sh
testsuite-13.nspawn-oci.sh
testsuite-13.nspawn.sh test: make testcase_owneridmap() compatible with coverage runs 2024-02-18 13:44:24 +00:00
testsuite-13.nss-mymachines.sh local-addresses: ignore tentative addresses 2024-01-20 16:07:19 +09:00
testsuite-13.service
testsuite-13.sh
testsuite-15.service
testsuite-15.sh test: mount overlayfs over /usr in some tests 2023-12-13 17:55:45 +00:00
testsuite-16.service
testsuite-16.sh
testsuite-17.00.sh
testsuite-17.01.sh
testsuite-17.02.sh
testsuite-17.03.sh test: use dropin dir 2024-01-12 05:12:44 +09:00
testsuite-17.04.sh
testsuite-17.05.sh
testsuite-17.06.sh test: reset systemd-udevd.service restart counter 2023-12-08 18:14:05 +01:00
testsuite-17.07.sh
testsuite-17.08.sh
testsuite-17.09.sh
testsuite-17.10.sh test: add simple coverage tests for 'udevadm lock' 2023-12-30 05:28:04 +09:00
testsuite-17.11.sh
testsuite-17.12.sh
testsuite-17.13.sh tests: add test for udevadm control -p 2023-11-13 19:19:55 +01:00
testsuite-17.link-property.sh test: add test for [Link] Property= and friends 2024-01-10 04:33:55 +09:00
testsuite-17.service
testsuite-17.sh
testsuite-18.service
testsuite-18.sh
testsuite-19.cleanup-slice.sh
testsuite-19.delegate.sh test: test that delegation of some newer attrs that shall be delegated work 2023-12-13 10:10:56 +01:00
testsuite-19.ExitType-cgroup.sh
testsuite-19.service
testsuite-19.sh
testsuite-21.service
testsuite-21.sh test: avoid starting/stopping unwanted units during fuzzing 2023-12-29 21:26:49 +01:00
testsuite-22.01.sh
testsuite-22.02.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.03.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.04.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.05.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.06.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.07.sh
testsuite-22.08.sh
testsuite-22.09.sh
testsuite-22.10.sh
testsuite-22.11.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.12.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.13.sh
testsuite-22.14.sh
testsuite-22.15.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.16.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.17.sh
testsuite-22.18.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.19.sh TEST-22: add --dry-run calls 2024-02-12 13:34:32 +01:00
testsuite-22.service
testsuite-22.sh
testsuite-23-short-lived.sh
testsuite-23.clean-unit.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-23.exec-command-ex.sh
testsuite-23.ExecReload.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-23.ExecStopPost.sh
testsuite-23.JoinsNamespaceOf.sh
testsuite-23.oneshot-restart.sh core/service: allow RestartForceExitStatus= for oneshot services 2024-02-10 21:19:36 +08:00
testsuite-23.percentj-wantedby.sh
testsuite-23.runtime-bind-paths.sh
testsuite-23.RuntimeDirectoryPreserve.sh
testsuite-23.service
testsuite-23.sh
testsuite-23.StandardOutput.sh
testsuite-23.start-stop-no-reload.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-23.statedir.sh
testsuite-23.success-failure.sh
testsuite-23.type-exec.sh
testsuite-23.Upholds.sh
testsuite-23.utmp.sh test: add a test for #31384 2024-02-19 16:45:19 +00:00
testsuite-23.verify-unit-files.sh test: verify our own units (where applicable) 2024-02-20 15:45:50 +01:00
testsuite-23.whoami.sh
testsuite-24.service
testsuite-24.sh cryptenroll: allow to use a public key on a token 2024-02-03 03:00:51 +09:00
testsuite-25.service
testsuite-25.sh
testsuite-26.service
testsuite-26.sh journald: implement socket forwarding 2024-02-15 14:08:20 +00:00
testsuite-29.service
testsuite-29.sh portable: add --copy=mixed to copy images and link profiles 2024-02-08 21:11:26 +00:00
testsuite-30.service
testsuite-30.sh
testsuite-31.service
testsuite-31.sh test: slacken plugged -> dead test 2023-12-13 13:35:04 +00:00
testsuite-32.service
testsuite-32.sh
testsuite-34.service
testsuite-34.sh
testsuite-35.service
testsuite-35.sh TEST-35-LOGIN: test changes to list-sessions 2024-01-17 11:30:05 +08:00
testsuite-36.service
testsuite-36.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-38-sleep.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-38.service
testsuite-38.sh core: Fail to start/stop/reload unit if frozen 2024-01-30 11:18:16 -05:00
testsuite-43.service
testsuite-43.sh test: skip TEST-43-PRIVATEUSER-UNPRIV if unprivileged userns is restricted 2024-01-13 06:55:04 +09:00
testsuite-44.service test: drop invalid LogTarget= assignment 2023-11-25 21:59:57 +01:00
testsuite-44.sh test: sync the "foobaz" namespace as well 2024-01-07 05:27:14 +09:00
testsuite-45.service
testsuite-45.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-46.service
testsuite-46.sh TEST-46-HOMED: Add tests for blob directories 2024-02-19 11:18:11 +00:00
testsuite-50.service
testsuite-50.sh core: add support for vpick for ExtensionDirectories= 2024-02-17 11:20:00 +00:00
testsuite-52.service
testsuite-52.sh
testsuite-53.service
testsuite-53.sh
testsuite-54.service
testsuite-54.sh varlinkctl: if "call" verb is used, imply "-j" 2024-02-12 12:04:18 +01:00
testsuite-55-testbloat.service
testsuite-55-testchill.service
testsuite-55-testmunch.service
testsuite-55-workload.slice
testsuite-55.service
testsuite-55.sh test: use btrfs' mkswapfile on btrfs 2024-02-17 12:49:44 +01:00
testsuite-58.service
testsuite-58.sh repart: don't crash when looping over dropped partitions 2024-01-07 05:26:38 +09:00
testsuite-59.service
testsuite-59.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-60.service
testsuite-60.sh test: mount overlayfs over /usr in some tests 2023-12-13 17:55:45 +00:00
testsuite-62-1.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-62-2.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-62-3.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-62-4.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-62-5.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-62-6.service core: allow interface altnames in RestrictNetworkInterfaces= 2023-12-18 15:12:10 +01:00
testsuite-62.service
testsuite-62.sh core: allow interface altnames in RestrictNetworkInterfaces= 2023-12-18 15:12:10 +01:00
testsuite-63.service
testsuite-63.sh core: path: Re-enter waiting if target is deactivating 2024-01-21 10:34:45 +00:00
testsuite-64.service
testsuite-64.sh test-64: only look at plugged devices, not all of them 2024-01-03 13:47:57 +01:00
testsuite-65.service
testsuite-65.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-66-deviceisolation.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-66.service
testsuite-66.sh
testsuite-67.service
testsuite-67.sh core: serialize and deserialize unit start ratelimits 2023-11-22 12:12:35 +00:00
testsuite-68.service
testsuite-68.sh
testsuite-69.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-70.creds.sh
testsuite-70.cryptenroll.sh cryptenroll: Support rotating PIN on an existing TPM2 enrollment 2024-02-01 13:55:17 +00:00
testsuite-70.cryptsetup.sh test: skip --tpm2-device-key= tests with older OpenSSL 2023-11-13 20:37:36 +01:00
testsuite-70.measure.sh
testsuite-70.pcrextend.sh
testsuite-70.pcrlock.sh test: fix typo 2024-02-14 04:04:12 +09:00
testsuite-70.service
testsuite-70.sh
testsuite-70.tpm2-setup.sh
testsuite-71.service
testsuite-71.sh hostnamed: add simple Varlink API, too 2024-01-09 10:46:25 +01:00
testsuite-72.service
testsuite-72.sh
testsuite-73.service
testsuite-73.sh test: mount overlayfs over /usr in some tests 2023-12-13 17:55:45 +00:00
testsuite-74.battery-check.sh
testsuite-74.bootctl.sh Merge pull request #31286 from poettering/bootctl-varlink 2024-02-14 18:59:33 +00:00
testsuite-74.busctl.sh
testsuite-74.cgls.sh
testsuite-74.cgtop.sh
testsuite-74.coredump.sh
testsuite-74.delta.sh tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
testsuite-74.escape.sh
testsuite-74.firstboot.sh
testsuite-74.id128.sh id128: add --no-pager, --no-legend, --json=/-j switches to systemd-id128 tool 2024-01-11 17:54:19 +01:00
testsuite-74.machine-id-setup.sh
testsuite-74.modules-load.sh
testsuite-74.mount.sh core: create workdir/upperdir when mounting a Type=overlay mount unit 2023-12-08 11:22:14 +09:00
testsuite-74.network-generator.sh network-generator: pick up .netdev/.link/.network configuration via credentials 2024-01-08 12:59:08 +01:00
testsuite-74.networkctl.sh test: drop unnecessary sleep 2024-02-09 14:25:54 +09:00
testsuite-74.path.sh
testsuite-74.pstore.sh
testsuite-74.run.sh test: skip a systemd-run test if unprivileged userns is restricted 2024-01-19 10:21:57 -05:00
testsuite-74.service
testsuite-74.sh
testsuite-74.socket.sh test: fix typo 2024-02-14 04:03:09 +09:00
testsuite-74.ssh.sh test: create /run/sshd in TEST-74-AUX-UTILS 2024-01-15 10:28:05 +09:00
testsuite-74.varlinkctl.sh hostnamed: add simple Varlink API, too 2024-01-09 10:46:25 +01:00
testsuite-74.vpick.sh tests: add integration tests for vpick logic 2024-01-03 19:01:37 +01:00
testsuite-75.service test: drop remaining console output 2023-11-28 04:10:25 +09:00
testsuite-75.sh resolve: several follow-ups for resolving service via varlink 2024-02-19 22:13:07 +01:00
testsuite-76.service
testsuite-76.sh
testsuite-77-client.sh
testsuite-77-run.sh
testsuite-77-server.socket
testsuite-77-server@.service
testsuite-77.service
testsuite-77.sh
testsuite-78.service
testsuite-78.sh
testsuite-79.service
testsuite-79.sh
testsuite-80.service test: drop remaining console output 2023-11-28 04:10:25 +09:00
testsuite-80.sh test: drop remaining console output 2023-11-28 04:10:25 +09:00
testsuite-81.debug-generator.sh Add systemd.default_debug_tty= 2024-02-09 11:47:53 +01:00
testsuite-81.environment-d-generator.sh
testsuite-81.fstab-generator.sh fstab-generator: drop unapplicable options for /usr/ too 2024-01-26 01:06:41 +08:00
testsuite-81.getty-generator.sh
testsuite-81.run-generator.sh
testsuite-81.service
testsuite-81.sh
testsuite-81.system-update-generator.sh
testsuite-82.service
testsuite-82.sh core: relax dependency on RootImage= storage from Requires= to Wants= 2023-12-08 11:16:31 +09:00
testsuite-83.service
testsuite-83.sh
testsuite-84.service
testsuite-84.sh storagetm: expose more useful metadata for nvme block devices 2023-11-13 19:32:34 +00:00
testsuite.target
timers.target
unit-with-multiple-dashes.service tests: use relative paths in ExecStart= and friends 2024-01-09 11:14:16 +01:00
util.sh test: fix mixed indent 2024-02-20 13:31:00 +01:00