]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Rename testsuite-XX units to match test name
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 11 May 2024 17:17:13 +0000 (19:17 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 May 2024 10:43:28 +0000 (12:43 +0200)
Having these named differently than the test itself mostly creates
unecessary confusion and makes writing logic against the tests harder
so let's rename the testsuite-xx units and scripts to just use the
test name itself.

395 files changed:
mkosi.images/system/mkosi.conf
test/TEST-03-JOBS/TEST-03-JOBS.units/always-activating.service [moved from test/testsuite-03.units/always-activating.service with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/always-activating.socket [moved from test/testsuite-03.units/always-activating.socket with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/fails-on-restart-restartdirect.service [moved from test/testsuite-03.units/fails-on-restart-restartdirect.service with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/fails-on-restart-restartdirect.target [moved from test/testsuite-03.units/fails-on-restart-restartdirect.target with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/fails-on-restart.service [moved from test/testsuite-03.units/fails-on-restart.service with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/fails-on-restart.target [moved from test/testsuite-03.units/fails-on-restart.target with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/hello-after-sleep.target [moved from test/testsuite-03.units/hello-after-sleep.target with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/hello.service [moved from test/testsuite-03.units/hello.service with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/propagatestopto-and-pullin.target [moved from test/testsuite-03.units/propagatestopto-and-pullin.target with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/propagatestopto-indirect.target [moved from test/testsuite-03.units/propagatestopto-indirect.target with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/propagatestopto-only.target [moved from test/testsuite-03.units/propagatestopto-only.target with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/sleep-infinity-simple.service [moved from test/testsuite-03.units/sleep-infinity-simple.service with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/sleep.service [moved from test/testsuite-03.units/sleep.service with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/succeeds-on-restart-restartdirect.service [moved from test/testsuite-03.units/succeeds-on-restart-restartdirect.service with 66% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/succeeds-on-restart-restartdirect.target [moved from test/testsuite-03.units/succeeds-on-restart-restartdirect.target with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/succeeds-on-restart.service [moved from test/testsuite-03.units/succeeds-on-restart.service with 66% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/succeeds-on-restart.sh [moved from test/testsuite-03.units/succeeds-on-restart.sh with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/succeeds-on-restart.target [moved from test/testsuite-03.units/succeeds-on-restart.target with 100% similarity]
test/TEST-03-JOBS/TEST-03-JOBS.units/unstoppable.service [moved from test/testsuite-03.units/unstoppable.service with 100% similarity]
test/TEST-03-JOBS/meson.build
test/TEST-04-JOURNAL/TEST-04-JOURNAL.units/delegated-cgroup-filtering.service [moved from test/testsuite-04.units/delegated-cgroup-filtering.service with 100% similarity]
test/TEST-04-JOURNAL/TEST-04-JOURNAL.units/forever-print-hola.service [moved from test/testsuite-04.units/forever-print-hola.service with 100% similarity]
test/TEST-04-JOURNAL/TEST-04-JOURNAL.units/logs-filtering.service [moved from test/testsuite-04.units/logs-filtering.service with 100% similarity]
test/TEST-04-JOURNAL/TEST-04-JOURNAL.units/silent-success.service [moved from test/testsuite-04.units/silent-success.service with 100% similarity]
test/TEST-04-JOURNAL/TEST-04-JOURNAL.units/verbose-success.service [moved from test/testsuite-04.units/verbose-success.service with 100% similarity]
test/TEST-04-JOURNAL/meson.build
test/TEST-04-JOURNAL/test.sh
test/TEST-06-SELINUX/TEST-06-SELINUX.units/hola.service [moved from test/testsuite-06.units/hola.service with 100% similarity]
test/TEST-06-SELINUX/meson.build
test/TEST-07-PID1/TEST-07-PID1.units/issue14566-repro.service [moved from test/testsuite-07.units/issue14566-repro.service with 67% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue14566-repro.sh [moved from test/testsuite-07.units/issue14566-repro.sh with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue16115-repro-1.service [moved from test/testsuite-07.units/issue16115-repro-1.service with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue16115-repro-2.service [moved from test/testsuite-07.units/issue16115-repro-2.service with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue16115-repro-3.service [moved from test/testsuite-07.units/issue16115-repro-3.service with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue2467.service [moved from test/testsuite-07.units/issue2467.service with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue2467.socket [moved from test/testsuite-07.units/issue2467.socket with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue2730-alias.mount [moved from test/testsuite-07.units/issue2730-alias.mount with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue2730.mount [moved from test/testsuite-07.units/issue2730.mount with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue27953.service [moved from test/testsuite-07.units/issue27953.service with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/issue3166-fail-on-restart.service [moved from test/testsuite-07.units/issue3166-fail-on-restart.service with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/local-fs.target.wants/issue2730.mount [moved from test/testsuite-07.units/local-fs.target.wants/issue2730.mount with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/pass-fds-to-exec-no.socket [moved from test/testsuite-07.units/pass-fds-to-exec-no.socket with 100% similarity]
test/TEST-07-PID1/TEST-07-PID1.units/pass-fds-to-exec-yes.socket [moved from test/testsuite-07.units/pass-fds-to-exec-yes.socket with 100% similarity]
test/TEST-07-PID1/meson.build
test/TEST-08-INITRD/test.sh
test/TEST-13-NSPAWN/test.sh
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/extend-timeout.sh [moved from test/testsuite-16.units/extend-timeout.sh with 100% similarity]
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/fail-runtime.service [moved from test/testsuite-16.units/fail-runtime.service with 86% similarity]
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/fail-start.service [moved from test/testsuite-16.units/fail-start.service with 86% similarity]
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/fail-stop.service [moved from test/testsuite-16.units/fail-stop.service with 90% similarity]
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/success-all.service [moved from test/testsuite-16.units/success-all.service with 87% similarity]
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/success-runtime.service [moved from test/testsuite-16.units/success-runtime.service with 84% similarity]
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/success-start.service [moved from test/testsuite-16.units/success-start.service with 85% similarity]
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/success-stop.service [moved from test/testsuite-16.units/success-stop.service with 85% similarity]
test/TEST-16-EXTEND-TIMEOUT/meson.build
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-binds-to.service [moved from test/testsuite-23.units/testsuite-23-binds-to.service with 52% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-bound-by.service [moved from test/testsuite-23.units/testsuite-23-bound-by.service with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-fail.service [moved from test/testsuite-23.units/testsuite-23-fail.service with 70% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-1.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-1.service with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-2.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-2.service with 73% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-3.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-3.service with 73% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-4.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-4.service with 77% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-5.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-5.service with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-6.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-6.service with 77% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-7.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-7.service with 77% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-8.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-8.service with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-9.service [moved from test/testsuite-23.units/testsuite-23-joins-namespace-of-9.service with 77% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-namespaced.service [moved from test/testsuite-23.units/testsuite-23-namespaced.service with 88% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-non-namespaced.service [moved from test/testsuite-23.units/testsuite-23-non-namespaced.service with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-oneshot-restartforce.sh [moved from test/testsuite-23.units/testsuite-23-oneshot-restartforce.sh with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-openfile-server.socket [moved from test/testsuite-23.units/testsuite-23-openfile-server.socket with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-openfile-server@.service [moved from test/testsuite-23.units/testsuite-23-openfile-server@.service with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-prop-stop-one.service [new file with mode: 0644]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-prop-stop-two.service [moved from test/testsuite-23.units/testsuite-23-prop-stop-two.service with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-retry-fail.service [moved from test/testsuite-23.units/testsuite-23-retry-fail.service with 60% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-retry-upheld.service [moved from test/testsuite-23.units/testsuite-23-retry-upheld.service with 60% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-retry-uphold.service [moved from test/testsuite-23.units/testsuite-23-retry-uphold.service with 70% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-short-lived.service [moved from test/testsuite-23.units/testsuite-23-short-lived.service with 74% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-specifier-j-depends-wants.service [moved from test/testsuite-23.units/testsuite-23-specifier-j-depends-wants.service with 100% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-specifier-j-wants.service [moved from test/testsuite-23.units/testsuite-23-specifier-j-wants.service with 65% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-success.service [moved from test/testsuite-23.units/testsuite-23-success.service with 72% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-upheldby-install.service [moved from test/testsuite-23.units/testsuite-23-upheldby-install.service with 76% similarity]
test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-uphold.service [moved from test/testsuite-23.units/testsuite-23-uphold.service with 71% similarity]
test/TEST-23-UNIT-FILE/meson.build
test/TEST-30-ONCLOCKCHANGE/TEST-30-ONCLOCKCHANGE.units/systemd-timedated.service.d/watchdog.conf [moved from test/testsuite-30.units/systemd-timedated.service.d/watchdog.conf with 100% similarity]
test/TEST-30-ONCLOCKCHANGE/meson.build
test/TEST-52-HONORFIRSTSHUTDOWN/TEST-52-HONORFIRSTSHUTDOWN.units/test-honor-first-shutdown.service [moved from test/testsuite-52.units/test-honor-first-shutdown.service with 73% similarity]
test/TEST-52-HONORFIRSTSHUTDOWN/TEST-52-HONORFIRSTSHUTDOWN.units/test-honor-first-shutdown.sh [moved from test/testsuite-52.units/test-honor-first-shutdown.sh with 100% similarity]
test/TEST-52-HONORFIRSTSHUTDOWN/meson.build
test/TEST-63-PATH/TEST-63-PATH.units/test63-glob.path [moved from test/testsuite-63.units/test63-glob.path with 100% similarity]
test/TEST-63-PATH/TEST-63-PATH.units/test63-glob.service [moved from test/testsuite-63.units/test63-glob.service with 100% similarity]
test/TEST-63-PATH/TEST-63-PATH.units/test63-issue-24577-dep.service [moved from test/testsuite-63.units/test63-issue-24577-dep.service with 100% similarity]
test/TEST-63-PATH/TEST-63-PATH.units/test63-issue-24577.path [moved from test/testsuite-63.units/test63-issue-24577.path with 100% similarity]
test/TEST-63-PATH/TEST-63-PATH.units/test63-issue-24577.service [moved from test/testsuite-63.units/test63-issue-24577.service with 100% similarity]
test/TEST-63-PATH/TEST-63-PATH.units/test63-pr-30768.path [moved from test/testsuite-63.units/test63-pr-30768.path with 100% similarity]
test/TEST-63-PATH/TEST-63-PATH.units/test63-pr-30768.service [moved from test/testsuite-63.units/test63-pr-30768.service with 100% similarity]
test/TEST-63-PATH/TEST-63-PATH.units/test63.path [moved from test/testsuite-63.units/test63.path with 100% similarity]
test/TEST-63-PATH/TEST-63-PATH.units/test63.service [moved from test/testsuite-63.units/test63.service with 100% similarity]
test/TEST-63-PATH/meson.build
test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/fdstore-nopin.service [moved from test/testsuite-80.units/fdstore-nopin.service with 54% similarity]
test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/fdstore-pin.service [moved from test/testsuite-80.units/fdstore-pin.service with 53% similarity]
test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/fdstore-pin.sh [moved from test/testsuite-80.units/fdstore-pin.sh with 100% similarity]
test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/fdstore-pin.target [moved from test/testsuite-80.units/fdstore-pin.target with 100% similarity]
test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/notify.service [new file with mode: 0644]
test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/test.sh [moved from test/testsuite-80.units/test.sh with 100% similarity]
test/TEST-80-NOTIFYACCESS/meson.build
test/integration-test-wrapper.py
test/meson.build
test/test-functions
test/testsuite-23.units/testsuite-23-prop-stop-one.service [deleted file]
test/testsuite-80.units/notify.service [deleted file]
test/units/TEST-01-BASIC.service [moved from test/units/testsuite-01.service with 100% similarity]
test/units/TEST-01-BASIC.sh [moved from test/units/testsuite-01.sh with 100% similarity]
test/units/TEST-02-UNITTESTS.service [moved from test/units/testsuite-02.service with 100% similarity]
test/units/TEST-02-UNITTESTS.sh [moved from test/units/testsuite-02.sh with 100% similarity]
test/units/TEST-03-JOBS.service [moved from test/units/testsuite-03.service with 100% similarity]
test/units/TEST-03-JOBS.sh [moved from test/units/testsuite-03.sh with 100% similarity]
test/units/TEST-04-JOURNAL.LogFilterPatterns.sh [moved from test/units/testsuite-04.LogFilterPatterns.sh with 100% similarity]
test/units/TEST-04-JOURNAL.SYSTEMD_JOURNAL_COMPRESS.sh [moved from test/units/testsuite-04.SYSTEMD_JOURNAL_COMPRESS.sh with 100% similarity]
test/units/TEST-04-JOURNAL.bsod.sh [moved from test/units/testsuite-04.bsod.sh with 100% similarity]
test/units/TEST-04-JOURNAL.cat.sh [moved from test/units/testsuite-04.cat.sh with 100% similarity]
test/units/TEST-04-JOURNAL.corrupted-journals.sh [moved from test/units/testsuite-04.corrupted-journals.sh with 100% similarity]
test/units/TEST-04-JOURNAL.fss.sh [moved from test/units/testsuite-04.fss.sh with 100% similarity]
test/units/TEST-04-JOURNAL.journal-append.sh [moved from test/units/testsuite-04.journal-append.sh with 100% similarity]
test/units/TEST-04-JOURNAL.journal-corrupt.sh [moved from test/units/testsuite-04.journal-corrupt.sh with 100% similarity]
test/units/TEST-04-JOURNAL.journal-gatewayd.sh [moved from test/units/testsuite-04.journal-gatewayd.sh with 100% similarity]
test/units/TEST-04-JOURNAL.journal-remote.sh [moved from test/units/testsuite-04.journal-remote.sh with 100% similarity]
test/units/TEST-04-JOURNAL.journal.sh [moved from test/units/testsuite-04.journal.sh with 100% similarity]
test/units/TEST-04-JOURNAL.service [moved from test/units/testsuite-04.service with 100% similarity]
test/units/TEST-04-JOURNAL.sh [moved from test/units/testsuite-04.sh with 100% similarity]
test/units/TEST-05-RLIMITS.effective-limit.sh [moved from test/units/testsuite-05.effective-limit.sh with 100% similarity]
test/units/TEST-05-RLIMITS.rlimit.sh [moved from test/units/testsuite-05.rlimit.sh with 77% similarity]
test/units/TEST-05-RLIMITS.service [moved from test/units/testsuite-19.service with 85% similarity]
test/units/TEST-05-RLIMITS.sh [moved from test/units/testsuite-05.sh with 100% similarity]
test/units/TEST-06-SELINUX.service [moved from test/units/testsuite-06.service with 100% similarity]
test/units/TEST-06-SELINUX.sh [moved from test/units/testsuite-06.sh with 100% similarity]
test/units/TEST-07-PID1.aux-scope.sh [moved from test/units/testsuite-07.aux-scope.sh with 100% similarity]
test/units/TEST-07-PID1.exec-context.sh [moved from test/units/testsuite-07.exec-context.sh with 100% similarity]
test/units/TEST-07-PID1.exec-deserialization.sh [moved from test/units/testsuite-07.exec-deserialization.sh with 100% similarity]
test/units/TEST-07-PID1.exec-timestamps.sh [moved from test/units/testsuite-07.exec-timestamps.sh with 100% similarity]
test/units/TEST-07-PID1.issue-14566.sh [moved from test/units/testsuite-07.issue-14566.sh with 100% similarity]
test/units/TEST-07-PID1.issue-16115.sh [moved from test/units/testsuite-07.issue-16115.sh with 100% similarity]
test/units/TEST-07-PID1.issue-1981.sh [moved from test/units/testsuite-07.issue-1981.sh with 100% similarity]
test/units/TEST-07-PID1.issue-2467.sh [moved from test/units/testsuite-07.issue-2467.sh with 100% similarity]
test/units/TEST-07-PID1.issue-27953.sh [moved from test/units/testsuite-07.issue-27953.sh with 100% similarity]
test/units/TEST-07-PID1.issue-30412.sh [moved from test/units/testsuite-07.issue-30412.sh with 100% similarity]
test/units/TEST-07-PID1.issue-3166.sh [moved from test/units/testsuite-07.issue-3166.sh with 100% similarity]
test/units/TEST-07-PID1.issue-3171.sh [moved from test/units/testsuite-07.issue-3171.sh with 100% similarity]
test/units/TEST-07-PID1.main-PID-change.sh [moved from test/units/testsuite-07.main-PID-change.sh with 88% similarity]
test/units/TEST-07-PID1.mount-invalid-chars.sh [moved from test/units/testsuite-07.mount-invalid-chars.sh with 100% similarity]
test/units/TEST-07-PID1.poll-limit.sh [moved from test/units/testsuite-07.poll-limit.sh with 100% similarity]
test/units/TEST-07-PID1.pr-31351.sh [moved from test/units/testsuite-07.pr-31351.sh with 100% similarity]
test/units/TEST-07-PID1.private-network.sh [moved from test/units/testsuite-07.private-network.sh with 100% similarity]
test/units/TEST-07-PID1.service [moved from test/units/testsuite-07.service with 100% similarity]
test/units/TEST-07-PID1.sh [moved from test/units/testsuite-07.sh with 100% similarity]
test/units/TEST-07-PID1.socket-pass-fds.sh [moved from test/units/testsuite-07.socket-pass-fds.sh with 100% similarity]
test/units/TEST-07-PID1.type-exec-parallel.sh [moved from test/units/testsuite-07.type-exec-parallel.sh with 100% similarity]
test/units/TEST-08-INITRD.service [moved from test/units/testsuite-08.service with 100% similarity]
test/units/TEST-08-INITRD.sh [moved from test/units/testsuite-08.sh with 100% similarity]
test/units/TEST-09-REBOOT.journal.sh [moved from test/units/testsuite-09.journal.sh with 100% similarity]
test/units/TEST-09-REBOOT.service [moved from test/units/testsuite-09.service with 100% similarity]
test/units/TEST-09-REBOOT.sh [moved from test/units/testsuite-09.sh with 100% similarity]
test/units/TEST-13-NSPAWN.importctl.sh [moved from test/units/testsuite-13.importctl.sh with 100% similarity]
test/units/TEST-13-NSPAWN.machinectl.sh [moved from test/units/testsuite-13.machinectl.sh with 100% similarity]
test/units/TEST-13-NSPAWN.nspawn-oci.sh [moved from test/units/testsuite-13.nspawn-oci.sh with 99% similarity]
test/units/TEST-13-NSPAWN.nspawn.sh [moved from test/units/testsuite-13.nspawn.sh with 96% similarity]
test/units/TEST-13-NSPAWN.nss-mymachines.sh [moved from test/units/testsuite-13.nss-mymachines.sh with 100% similarity]
test/units/TEST-13-NSPAWN.service [moved from test/units/testsuite-13.service with 100% similarity]
test/units/TEST-13-NSPAWN.sh [moved from test/units/testsuite-13.sh with 100% similarity]
test/units/TEST-15-DROPIN.service [moved from test/units/testsuite-15.service with 100% similarity]
test/units/TEST-15-DROPIN.sh [moved from test/units/testsuite-15.sh with 98% similarity]
test/units/TEST-16-EXTEND-TIMEOUT.service [moved from test/units/testsuite-16.service with 100% similarity]
test/units/TEST-16-EXTEND-TIMEOUT.sh [moved from test/units/testsuite-16.sh with 100% similarity]
test/units/TEST-17-UDEV.00.sh [moved from test/units/testsuite-17.00.sh with 100% similarity]
test/units/TEST-17-UDEV.01.sh [moved from test/units/testsuite-17.01.sh with 100% similarity]
test/units/TEST-17-UDEV.02.sh [moved from test/units/testsuite-17.02.sh with 100% similarity]
test/units/TEST-17-UDEV.03.sh [moved from test/units/testsuite-17.03.sh with 100% similarity]
test/units/TEST-17-UDEV.04.sh [moved from test/units/testsuite-17.04.sh with 100% similarity]
test/units/TEST-17-UDEV.05.sh [moved from test/units/testsuite-17.05.sh with 100% similarity]
test/units/TEST-17-UDEV.06.sh [moved from test/units/testsuite-17.06.sh with 100% similarity]
test/units/TEST-17-UDEV.07.sh [moved from test/units/testsuite-17.07.sh with 100% similarity]
test/units/TEST-17-UDEV.08.sh [moved from test/units/testsuite-17.08.sh with 100% similarity]
test/units/TEST-17-UDEV.09.sh [moved from test/units/testsuite-17.09.sh with 100% similarity]
test/units/TEST-17-UDEV.10.sh [moved from test/units/testsuite-17.10.sh with 100% similarity]
test/units/TEST-17-UDEV.11.sh [moved from test/units/testsuite-17.11.sh with 100% similarity]
test/units/TEST-17-UDEV.12.sh [moved from test/units/testsuite-17.12.sh with 100% similarity]
test/units/TEST-17-UDEV.13.sh [moved from test/units/testsuite-17.13.sh with 100% similarity]
test/units/TEST-17-UDEV.credentials.sh [moved from test/units/testsuite-17.credentials.sh with 100% similarity]
test/units/TEST-17-UDEV.link-property.sh [moved from test/units/testsuite-17.link-property.sh with 100% similarity]
test/units/TEST-17-UDEV.service [moved from test/units/testsuite-17.service with 100% similarity]
test/units/TEST-17-UDEV.sh [moved from test/units/testsuite-17.sh with 100% similarity]
test/units/TEST-18-FAILUREACTION.service [moved from test/units/testsuite-18.service with 100% similarity]
test/units/TEST-18-FAILUREACTION.sh [moved from test/units/testsuite-18.sh with 100% similarity]
test/units/TEST-19-CGROUP.ExitType-cgroup.sh [moved from test/units/testsuite-19.ExitType-cgroup.sh with 100% similarity]
test/units/TEST-19-CGROUP.cleanup-slice.sh [moved from test/units/testsuite-19.cleanup-slice.sh with 100% similarity]
test/units/TEST-19-CGROUP.delegate.sh [moved from test/units/testsuite-19.delegate.sh with 100% similarity]
test/units/TEST-19-CGROUP.service [moved from test/units/testsuite-05.service with 85% similarity]
test/units/TEST-19-CGROUP.sh [moved from test/units/testsuite-19.sh with 100% similarity]
test/units/TEST-21-DFUZZERE.service [moved from test/units/testsuite-21.service with 100% similarity]
test/units/TEST-21-DFUZZERE.sh [moved from test/units/testsuite-21.sh with 100% similarity]
test/units/TEST-22-TMPFILES.01.sh [moved from test/units/testsuite-22.01.sh with 100% similarity]
test/units/TEST-22-TMPFILES.02.sh [moved from test/units/testsuite-22.02.sh with 100% similarity]
test/units/TEST-22-TMPFILES.03.sh [moved from test/units/testsuite-22.03.sh with 100% similarity]
test/units/TEST-22-TMPFILES.04.sh [moved from test/units/testsuite-22.04.sh with 100% similarity]
test/units/TEST-22-TMPFILES.05.sh [moved from test/units/testsuite-22.05.sh with 100% similarity]
test/units/TEST-22-TMPFILES.06.sh [moved from test/units/testsuite-22.06.sh with 100% similarity]
test/units/TEST-22-TMPFILES.07.sh [moved from test/units/testsuite-22.07.sh with 100% similarity]
test/units/TEST-22-TMPFILES.08.sh [moved from test/units/testsuite-22.08.sh with 100% similarity]
test/units/TEST-22-TMPFILES.09.sh [moved from test/units/testsuite-22.09.sh with 100% similarity]
test/units/TEST-22-TMPFILES.10.sh [moved from test/units/testsuite-22.10.sh with 100% similarity]
test/units/TEST-22-TMPFILES.11.sh [moved from test/units/testsuite-22.11.sh with 100% similarity]
test/units/TEST-22-TMPFILES.12.sh [moved from test/units/testsuite-22.12.sh with 100% similarity]
test/units/TEST-22-TMPFILES.13.sh [moved from test/units/testsuite-22.13.sh with 100% similarity]
test/units/TEST-22-TMPFILES.14.sh [moved from test/units/testsuite-22.14.sh with 100% similarity]
test/units/TEST-22-TMPFILES.15.sh [moved from test/units/testsuite-22.15.sh with 100% similarity]
test/units/TEST-22-TMPFILES.16.sh [moved from test/units/testsuite-22.16.sh with 100% similarity]
test/units/TEST-22-TMPFILES.17.sh [moved from test/units/testsuite-22.17.sh with 100% similarity]
test/units/TEST-22-TMPFILES.18.sh [moved from test/units/testsuite-22.18.sh with 100% similarity]
test/units/TEST-22-TMPFILES.19.sh [moved from test/units/testsuite-22.19.sh with 100% similarity]
test/units/TEST-22-TMPFILES.service [moved from test/units/testsuite-22.service with 100% similarity]
test/units/TEST-22-TMPFILES.sh [moved from test/units/testsuite-22.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE-openfile-child.sh [moved from test/units/testsuite-23-openfile-child.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE-short-lived.sh [new file with mode: 0755]
test/units/TEST-23-UNIT-FILE.ExecReload.sh [moved from test/units/testsuite-23.ExecReload.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.ExecStopPost.sh [moved from test/units/testsuite-23.ExecStopPost.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.JoinsNamespaceOf.sh [new file with mode: 0755]
test/units/TEST-23-UNIT-FILE.RuntimeDirectoryPreserve.sh [moved from test/units/testsuite-23.RuntimeDirectoryPreserve.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.StandardOutput.sh [moved from test/units/testsuite-23.StandardOutput.sh with 80% similarity]
test/units/TEST-23-UNIT-FILE.Upholds.sh [new file with mode: 0755]
test/units/TEST-23-UNIT-FILE.clean-unit.sh [moved from test/units/testsuite-23.clean-unit.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.exec-command-ex.sh [moved from test/units/testsuite-23.exec-command-ex.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.oneshot-restart.sh [moved from test/units/testsuite-23.oneshot-restart.sh with 90% similarity]
test/units/TEST-23-UNIT-FILE.openfile.sh [moved from test/units/testsuite-23.openfile.sh with 79% similarity]
test/units/TEST-23-UNIT-FILE.percentj-wantedby.sh [moved from test/units/testsuite-23.percentj-wantedby.sh with 69% similarity]
test/units/TEST-23-UNIT-FILE.runtime-bind-paths.sh [new file with mode: 0755]
test/units/TEST-23-UNIT-FILE.service [moved from test/units/testsuite-23.service with 84% similarity]
test/units/TEST-23-UNIT-FILE.sh [moved from test/units/testsuite-23.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.start-stop-no-reload.sh [new file with mode: 0755]
test/units/TEST-23-UNIT-FILE.statedir.sh [moved from test/units/testsuite-23.statedir.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.success-failure.sh [moved from test/units/testsuite-23.success-failure.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.type-exec.sh [moved from test/units/testsuite-23.type-exec.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.utmp.sh [moved from test/units/testsuite-23.utmp.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.verify-unit-files.sh [moved from test/units/testsuite-23.verify-unit-files.sh with 100% similarity]
test/units/TEST-23-UNIT-FILE.whoami.sh [moved from test/units/testsuite-23.whoami.sh with 66% similarity]
test/units/TEST-24-CRYPTSETUP.service [moved from test/units/testsuite-24.service with 100% similarity]
test/units/TEST-24-CRYPTSETUP.sh [moved from test/units/testsuite-24.sh with 100% similarity]
test/units/TEST-25-IMPORT.service [moved from test/units/testsuite-25.service with 100% similarity]
test/units/TEST-25-IMPORT.sh [moved from test/units/testsuite-25.sh with 100% similarity]
test/units/TEST-26-SYSTEMCTL.service [moved from test/units/testsuite-26.service with 100% similarity]
test/units/TEST-26-SYSTEMCTL.sh [moved from test/units/testsuite-26.sh with 100% similarity]
test/units/TEST-29-PORTABLE.service [moved from test/units/testsuite-29.service with 100% similarity]
test/units/TEST-29-PORTABLE.sh [moved from test/units/testsuite-29.sh with 100% similarity]
test/units/TEST-30-ONCLOCKCHANGE.service [moved from test/units/testsuite-30.service with 100% similarity]
test/units/TEST-30-ONCLOCKCHANGE.sh [moved from test/units/testsuite-30.sh with 100% similarity]
test/units/TEST-31-DEVICE-ENUMERATION.service [moved from test/units/testsuite-31.service with 100% similarity]
test/units/TEST-31-DEVICE-ENUMERATION.sh [moved from test/units/testsuite-31.sh with 100% similarity]
test/units/TEST-32-OOMPOLICY.service [moved from test/units/testsuite-32.service with 100% similarity]
test/units/TEST-32-OOMPOLICY.sh [moved from test/units/testsuite-32.sh with 92% similarity]
test/units/TEST-34-DYNAMICUSERMIGRATE.service [moved from test/units/testsuite-34.service with 100% similarity]
test/units/TEST-34-DYNAMICUSERMIGRATE.sh [moved from test/units/testsuite-34.sh with 100% similarity]
test/units/TEST-35-LOGIN.service [moved from test/units/testsuite-35.service with 100% similarity]
test/units/TEST-35-LOGIN.sh [moved from test/units/testsuite-35.sh with 100% similarity]
test/units/TEST-36-NUMAPOLICY.service [moved from test/units/testsuite-36.service with 100% similarity]
test/units/TEST-36-NUMAPOLICY.sh [moved from test/units/testsuite-36.sh with 100% similarity]
test/units/TEST-38-FREEZER-sleep.service [moved from test/units/testsuite-38-sleep.service with 100% similarity]
test/units/TEST-38-FREEZER.service [moved from test/units/testsuite-38.service with 100% similarity]
test/units/TEST-38-FREEZER.sh [moved from test/units/testsuite-38.sh with 99% similarity]
test/units/TEST-43-PRIVATEUSER-UNPRIV.service [moved from test/units/testsuite-43.service with 100% similarity]
test/units/TEST-43-PRIVATEUSER-UNPRIV.sh [moved from test/units/testsuite-43.sh with 100% similarity]
test/units/TEST-44-LOG-NAMESPACE.service [moved from test/units/testsuite-44.service with 90% similarity]
test/units/TEST-44-LOG-NAMESPACE.sh [moved from test/units/testsuite-44.sh with 100% similarity]
test/units/TEST-45-TIMEDATE.service [moved from test/units/testsuite-45.service with 100% similarity]
test/units/TEST-45-TIMEDATE.sh [moved from test/units/testsuite-45.sh with 100% similarity]
test/units/TEST-46-HOMED.service [moved from test/units/testsuite-46.service with 100% similarity]
test/units/TEST-46-HOMED.sh [moved from test/units/testsuite-46.sh with 100% similarity]
test/units/TEST-50-DISSECT.DDI.sh [moved from test/units/testsuite-50.DDI.sh with 100% similarity]
test/units/TEST-50-DISSECT.dissect.sh [moved from test/units/testsuite-50.dissect.sh with 100% similarity]
test/units/TEST-50-DISSECT.mountfsd.sh [moved from test/units/testsuite-50.mountfsd.sh with 100% similarity]
test/units/TEST-50-DISSECT.service [moved from test/units/testsuite-50.service with 100% similarity]
test/units/TEST-50-DISSECT.sh [moved from test/units/testsuite-50.sh with 99% similarity]
test/units/TEST-50-DISSECT.sysext.sh [moved from test/units/testsuite-50.sysext.sh with 100% similarity]
test/units/TEST-52-HONORFIRSTSHUTDOWN.service [moved from test/units/testsuite-52.service with 76% similarity]
test/units/TEST-52-HONORFIRSTSHUTDOWN.sh [moved from test/units/testsuite-52.sh with 100% similarity]
test/units/TEST-53-ISSUE-16347.service [moved from test/units/testsuite-53.service with 100% similarity]
test/units/TEST-53-ISSUE-16347.sh [moved from test/units/testsuite-53.sh with 100% similarity]
test/units/TEST-54-CREDS.service [moved from test/units/testsuite-64.service with 86% similarity]
test/units/TEST-54-CREDS.sh [moved from test/units/testsuite-54.sh with 100% similarity]
test/units/TEST-55-OOMD-testbloat.service [moved from test/units/testsuite-55-testbloat.service with 90% similarity]
test/units/TEST-55-OOMD-testchill.service [moved from test/units/testsuite-55-testchill.service with 79% similarity]
test/units/TEST-55-OOMD-testmunch.service [moved from test/units/testsuite-55-testmunch.service with 85% similarity]
test/units/TEST-55-OOMD-workload.slice [moved from test/units/testsuite-55-workload.slice with 100% similarity]
test/units/TEST-55-OOMD.service [moved from test/units/testsuite-55.service with 88% similarity]
test/units/TEST-55-OOMD.sh [moved from test/units/testsuite-55.sh with 74% similarity]
test/units/TEST-58-REPART.service [moved from test/units/testsuite-58.service with 100% similarity]
test/units/TEST-58-REPART.sh [moved from test/units/testsuite-58.sh with 99% similarity]
test/units/TEST-59-RELOADING-RESTART.service [moved from test/units/testsuite-59.service with 100% similarity]
test/units/TEST-59-RELOADING-RESTART.sh [moved from test/units/testsuite-59.sh with 100% similarity]
test/units/TEST-60-MOUNT-RATELIMIT.service [moved from test/units/testsuite-60.service with 100% similarity]
test/units/TEST-60-MOUNT-RATELIMIT.sh [moved from test/units/testsuite-60.sh with 96% similarity]
test/units/TEST-62-RESTRICT-IFACES-1.service [moved from test/units/testsuite-62-1.service with 100% similarity]
test/units/TEST-62-RESTRICT-IFACES-2.service [moved from test/units/testsuite-62-2.service with 100% similarity]
test/units/TEST-62-RESTRICT-IFACES-3.service [moved from test/units/testsuite-62-3.service with 100% similarity]
test/units/TEST-62-RESTRICT-IFACES-4.service [moved from test/units/testsuite-62-4.service with 100% similarity]
test/units/TEST-62-RESTRICT-IFACES-5.service [moved from test/units/testsuite-62-5.service with 100% similarity]
test/units/TEST-62-RESTRICT-IFACES-6.service [moved from test/units/testsuite-62-6.service with 100% similarity]
test/units/TEST-62-RESTRICT-IFACES.service [moved from test/units/testsuite-62.service with 100% similarity]
test/units/TEST-62-RESTRICT-IFACES.sh [moved from test/units/testsuite-62.sh with 81% similarity]
test/units/TEST-63-PATH.service [moved from test/units/testsuite-63.service with 100% similarity]
test/units/TEST-63-PATH.sh [moved from test/units/testsuite-63.sh with 100% similarity]
test/units/TEST-64-UDEV-STORAGE.service [moved from test/units/testsuite-54.service with 83% similarity]
test/units/TEST-64-UDEV-STORAGE.sh [moved from test/units/testsuite-64.sh with 100% similarity]
test/units/TEST-65-ANALYZE.service [moved from test/units/testsuite-65.service with 100% similarity]
test/units/TEST-65-ANALYZE.sh [moved from test/units/testsuite-65.sh with 100% similarity]
test/units/TEST-66-DEVICE-ISOLATION-device-isolation.service [moved from test/units/testsuite-66-deviceisolation.service with 66% similarity]
test/units/TEST-66-DEVICE-ISOLATION.sh [moved from test/units/testsuite-66.sh with 64% similarity]
test/units/TEST-66-DEVICEISOLATION.service [new file with mode: 0644]
test/units/TEST-67-INTEGRITY.service [moved from test/units/testsuite-67.service with 100% similarity]
test/units/TEST-67-INTEGRITY.sh [moved from test/units/testsuite-67.sh with 100% similarity]
test/units/TEST-68-PROPAGATE-EXIT-STATUS.service [moved from test/units/testsuite-68.service with 100% similarity]
test/units/TEST-68-PROPAGATE-EXIT-STATUS.sh [moved from test/units/testsuite-68.sh with 100% similarity]
test/units/TEST-69-SHUTDOWN.service [moved from test/units/testsuite-69.service with 100% similarity]
test/units/TEST-70-TPM2.creds.sh [moved from test/units/testsuite-70.creds.sh with 100% similarity]
test/units/TEST-70-TPM2.cryptenroll.sh [moved from test/units/testsuite-70.cryptenroll.sh with 100% similarity]
test/units/TEST-70-TPM2.cryptsetup.sh [moved from test/units/testsuite-70.cryptsetup.sh with 100% similarity]
test/units/TEST-70-TPM2.measure.sh [moved from test/units/testsuite-70.measure.sh with 100% similarity]
test/units/TEST-70-TPM2.pcrextend.sh [moved from test/units/testsuite-70.pcrextend.sh with 100% similarity]
test/units/TEST-70-TPM2.pcrlock.sh [moved from test/units/testsuite-70.pcrlock.sh with 100% similarity]
test/units/TEST-70-TPM2.service [moved from test/units/testsuite-70.service with 100% similarity]
test/units/TEST-70-TPM2.sh [moved from test/units/testsuite-70.sh with 100% similarity]
test/units/TEST-70-TPM2.tpm2-setup.sh [moved from test/units/testsuite-70.tpm2-setup.sh with 100% similarity]
test/units/TEST-71-HOSTNAME.service [moved from test/units/testsuite-71.service with 100% similarity]
test/units/TEST-71-HOSTNAME.sh [moved from test/units/testsuite-71.sh with 100% similarity]
test/units/TEST-72-SYSUPDATE.service [moved from test/units/testsuite-72.service with 100% similarity]
test/units/TEST-72-SYSUPDATE.sh [moved from test/units/testsuite-72.sh with 100% similarity]
test/units/TEST-73-LOCALE.service [moved from test/units/testsuite-73.service with 100% similarity]
test/units/TEST-73-LOCALE.sh [moved from test/units/testsuite-73.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.battery-check.sh [moved from test/units/testsuite-74.battery-check.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.bootctl.sh [moved from test/units/testsuite-74.bootctl.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.busctl.sh [moved from test/units/testsuite-74.busctl.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.capsule.sh [moved from test/units/testsuite-74.capsule.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.cgls.sh [moved from test/units/testsuite-74.cgls.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.cgtop.sh [moved from test/units/testsuite-74.cgtop.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.coredump.sh [moved from test/units/testsuite-74.coredump.sh with 99% similarity]
test/units/TEST-74-AUX-UTILS.delta.sh [moved from test/units/testsuite-74.delta.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.escape.sh [moved from test/units/testsuite-74.escape.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.firstboot.sh [moved from test/units/testsuite-74.firstboot.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.id128.sh [moved from test/units/testsuite-74.id128.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.machine-id-setup.sh [moved from test/units/testsuite-74.machine-id-setup.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.modules-load.sh [moved from test/units/testsuite-74.modules-load.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.mount.sh [moved from test/units/testsuite-74.mount.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.network-generator.sh [moved from test/units/testsuite-74.network-generator.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.networkctl.sh [moved from test/units/testsuite-74.networkctl.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.path.sh [moved from test/units/testsuite-74.path.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.pstore.sh [moved from test/units/testsuite-74.pstore.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.run.sh [moved from test/units/testsuite-74.run.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.service [moved from test/units/testsuite-74.service with 100% similarity]
test/units/TEST-74-AUX-UTILS.sh [moved from test/units/testsuite-74.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.socket.sh [moved from test/units/testsuite-74.socket.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.ssh.sh [moved from test/units/testsuite-74.ssh.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.varlinkctl.sh [moved from test/units/testsuite-74.varlinkctl.sh with 100% similarity]
test/units/TEST-74-AUX-UTILS.vpick.sh [moved from test/units/testsuite-74.vpick.sh with 100% similarity]
test/units/TEST-75-RESOLVED.service [new file with mode: 0644]
test/units/TEST-75-RESOLVED.sh [moved from test/units/testsuite-75.sh with 100% similarity]
test/units/TEST-76-SYSCTL.service [moved from test/units/testsuite-76.service with 100% similarity]
test/units/TEST-76-SYSCTL.sh [moved from test/units/testsuite-76.sh with 100% similarity]
test/units/TEST-78-SIGQUEUE.service [moved from test/units/testsuite-78.service with 100% similarity]
test/units/TEST-78-SIGQUEUE.sh [moved from test/units/testsuite-78.sh with 100% similarity]
test/units/TEST-79-MEMPRESS.service [moved from test/units/testsuite-79.service with 100% similarity]
test/units/TEST-79-MEMPRESS.sh [moved from test/units/testsuite-79.sh with 94% similarity]
test/units/TEST-80-NOTIFYACCESS.service [moved from test/units/testsuite-80.service with 100% similarity]
test/units/TEST-80-NOTIFYACCESS.sh [moved from test/units/testsuite-80.sh with 100% similarity]
test/units/TEST-81-GENERATORS.debug-generator.sh [moved from test/units/testsuite-81.debug-generator.sh with 100% similarity]
test/units/TEST-81-GENERATORS.environment-d-generator.sh [moved from test/units/testsuite-81.environment-d-generator.sh with 100% similarity]
test/units/TEST-81-GENERATORS.fstab-generator.sh [moved from test/units/testsuite-81.fstab-generator.sh with 100% similarity]
test/units/TEST-81-GENERATORS.getty-generator.sh [moved from test/units/testsuite-81.getty-generator.sh with 100% similarity]
test/units/TEST-81-GENERATORS.run-generator.sh [moved from test/units/testsuite-81.run-generator.sh with 100% similarity]
test/units/TEST-81-GENERATORS.service [moved from test/units/testsuite-81.service with 100% similarity]
test/units/TEST-81-GENERATORS.sh [moved from test/units/testsuite-81.sh with 100% similarity]
test/units/TEST-81-GENERATORS.system-update-generator.sh [moved from test/units/testsuite-81.system-update-generator.sh with 100% similarity]
test/units/TEST-82-SOFTREBOOT.service [moved from test/units/testsuite-82.service with 100% similarity]
test/units/TEST-82-SOFTREBOOT.sh [moved from test/units/testsuite-82.sh with 79% similarity]
test/units/TEST-83-BTRFS.service [moved from test/units/testsuite-83.service with 100% similarity]
test/units/TEST-83-BTRFS.sh [moved from test/units/testsuite-83.sh with 100% similarity]
test/units/TEST-84-STORAGETM.service [moved from test/units/testsuite-84.service with 100% similarity]
test/units/TEST-84-STORAGETM.sh [moved from test/units/testsuite-84.sh with 100% similarity]
test/units/test-control.sh
test/units/testsuite-23-short-lived.sh [deleted file]
test/units/testsuite-23.JoinsNamespaceOf.sh [deleted file]
test/units/testsuite-23.Upholds.sh [deleted file]
test/units/testsuite-23.runtime-bind-paths.sh [deleted file]
test/units/testsuite-23.start-stop-no-reload.sh [deleted file]
test/units/testsuite-66.service [deleted file]
test/units/testsuite-75.service [deleted file]
test/units/util.sh

index f7f32a07e6e2cb425bf7710be36cfb154c7fdab9..7f1c5f571eec52e7f5d060d9547e6a93ea721404 100644 (file)
@@ -20,7 +20,7 @@ ExtraTrees=
         %O/minimal-1.root-%a.raw:/usr/share/minimal_1.raw
         %O/minimal-1.root-%a-verity.raw:/usr/share/minimal_1.verity
         %O/minimal-1.root-%a-verity-sig.raw:/usr/share/minimal_1.verity.sig
-        %O/minimal-base:/usr/share/testsuite-13-container-template
+        %O/minimal-base:/usr/share/TEST-13-NSPAWN-container-template
 
 Packages=
         acl
similarity index 66%
rename from test/testsuite-03.units/succeeds-on-restart-restartdirect.service
rename to test/TEST-03-JOBS/TEST-03-JOBS.units/succeeds-on-restart-restartdirect.service
index b05f2f8dcf7415540975469c27483514c12bc695..a2b9c339ad2c49d6fa7c62f26f34a345d6f444d0 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Service]
 Type=oneshot
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-03.units/succeeds-on-restart.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-03-JOBS.units/succeeds-on-restart.sh
 Restart=on-failure
 RestartMode=direct
similarity index 66%
rename from test/testsuite-03.units/succeeds-on-restart.service
rename to test/TEST-03-JOBS/TEST-03-JOBS.units/succeeds-on-restart.service
index d7b3c7a210b34e08acecd7f2e6b2ef8715dbcf9e..d0e9c2bc845a4b8a3d0c032fa9fef06cadcd125d 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Service]
 Type=oneshot
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-03.units/succeeds-on-restart.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-03-JOBS.units/succeeds-on-restart.sh
 Restart=on-failure
 RestartMode=normal
index 8dec5f37e73a80d31833a772fa16883b02a07615..3484d21ba2f156a16bbaebe18740f6c25932336c 100644 (file)
@@ -5,3 +5,5 @@ integration_tests += [
                 'name' : fs.name(meson.current_source_dir()),
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-03-JOBS.units']
index 184f70ab720bbfab14df975559b48a53f762949f..5a0b073c02bc5a1392a2bfddc37ee243721af89b 100644 (file)
@@ -8,3 +8,5 @@ integration_tests += [
                 'storage' : 'persistent',
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-04-JOURNAL.units']
index f8f3a4b3e32cf3f521b3e44ece906004497dbe57..a7aa71fce321a93bc6d742b83547cb17dd4a753e 100755 (executable)
@@ -20,7 +20,7 @@ test_append_files() {
     # Since we nuke the journal repeatedly during this test, let's redirect
     # stdout/stderr to the console as well to make the test a bit more debug-able.
     if ! get_bool "${INTERACTIVE_DEBUG:-}"; then
-        dropin_dir="${workspace:?}/etc/systemd/system/testsuite-04.service.d/"
+        dropin_dir="${workspace:?}/etc/systemd/system/TEST-04-JOURNAL.service.d/"
         mkdir -p "$dropin_dir"
         printf '[Service]\nStandardOutput=journal+console\nStandardError=journal+console' >"$dropin_dir/99-stdout.conf"
     fi
index 408e41ff287b1bf1731a425dba1f565c6b8c5957..e3cf0030c503277f3dd13763534d4b09891ff9ac 100644 (file)
@@ -10,3 +10,5 @@ integration_tests += [
                 'firmware' : 'uefi',
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-06-SELINUX.units']
similarity index 67%
rename from test/testsuite-07.units/issue14566-repro.service
rename to test/TEST-07-PID1/TEST-07-PID1.units/issue14566-repro.service
index 56805963b418e7afd3295adc92604c9877154592..757f978101e1923ade2b6f2028cafe3a13754e15 100644 (file)
@@ -3,6 +3,6 @@
 Description=Issue 14566 Repro
 
 [Service]
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-07.units/%N.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-07-PID1.units/%N.sh
 ExecStopPost=/bin/true
 KillMode=mixed
index 8dec5f37e73a80d31833a772fa16883b02a07615..76ed3e75814f50573aac9b8bfa8d65c898556f76 100644 (file)
@@ -5,3 +5,5 @@ integration_tests += [
                 'name' : fs.name(meson.current_source_dir()),
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-07-PID1.units']
index 3ad60f1a949d4d24a88c8fe8f548a2c39f7b6656..badb6cb31a161da8fbb5b7b795c0bfe9bd6f7dd0 100755 (executable)
@@ -80,7 +80,7 @@ check_result_qemu_hook() {
 
 # Setup a one shot service in initrd that creates a dummy bind mount under /run
 # to check if the mount persists though the initrd transition. The "check" part
-# is in the respective testsuite-08.sh script.
+# is in the respective TEST-08-INITRD.sh script.
 #
 # See: https://github.com/systemd/systemd/issues/28452
 run_qemu_hook() {
index 744e793ac2e8008401c338452331319a0db17fde..9a0404f4b0c11f5480cac9ebb4cb82d22c21f68c 100755 (executable)
@@ -13,7 +13,7 @@ TEST_FORCE_NEWIMAGE=1
 
 test_append_files() {
     local workspace="${1:?}"
-    local container="$workspace/usr/share/testsuite-13-container-template"
+    local container="$workspace/usr/share/TEST-13-NSPAWN-container-template"
 
     # For virtual wlan interface.
     instmods mac80211_hwsim
similarity index 86%
rename from test/testsuite-16.units/fail-runtime.service
rename to test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/fail-runtime.service
index 1d74963a30b6e11bd5eb472f794eaf124adbcbaa..7380994dbd3cde96cd55cb56bd67dda2dea02f41 100644 (file)
@@ -10,4 +10,4 @@ TimeoutStartSec=4
 TimeoutStopSec=4
 RuntimeMaxSec=10
 Environment=SERVICE=fail_runtime extend_timeout_interval=5 sleep_interval=7 start_intervals=0 run_intervals=2 stop_intervals=0
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-16.units/extend-timeout.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-16-EXTEND-TIMEOUT.units/extend-timeout.sh
similarity index 86%
rename from test/testsuite-16.units/fail-start.service
rename to test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/fail-start.service
index 38aebf2a8ff0435db3bdd74e31407c56927b092e..984d8f98643d0ba6979d4dd7572d0321971d6610 100644 (file)
@@ -11,4 +11,4 @@ TimeoutStartSec=10
 TimeoutStopSec=4
 RuntimeMaxSec=4
 Environment=SERVICE=fail_start extend_timeout_interval=5 sleep_interval=7 start_intervals=2 run_intervals=0 stop_intervals=0
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-16.units/extend-timeout.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-16-EXTEND-TIMEOUT.units/extend-timeout.sh
similarity index 90%
rename from test/testsuite-16.units/fail-stop.service
rename to test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/fail-stop.service
index 1910ac9ff445e6531640d4a5fe7f5fcad898a55f..4293d7e8bdc530eaedf3d0d224d39571995a13b2 100644 (file)
@@ -10,7 +10,7 @@ TimeoutStartSec=4
 TimeoutStopSec=10
 RuntimeMaxSec=4
 Environment=SERVICE=fail_stop extend_timeout_interval=5 sleep_interval=7 start_intervals=0 run_intervals=0 stop_intervals=2
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-16.units/extend-timeout.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-16-EXTEND-TIMEOUT.units/extend-timeout.sh
 # Due to 6041a7ee2c1bbff6301082f192fc1b0882400d42 SIGTERM isn't sent as the service shuts down with STOPPING=1
 # This file makes the test assess.sh quicker by notifing it that this test has finished.
 ExecStopPost=/bin/bash -c '[[ $SERVICE_RESULT == timeout && $EXIT_CODE == killed ]] && touch /fail_runtime.terminated'
similarity index 87%
rename from test/testsuite-16.units/success-all.service
rename to test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/success-all.service
index 1fdc363f696da85d5f5e8d533eaf89c9f6b6a20a..7f26084c7a3f498d8f6c2884033a63ca05f99b74 100644 (file)
@@ -12,4 +12,4 @@ TimeoutStartSec=4
 TimeoutStopSec=4
 RuntimeMaxSec=4
 Environment=SERVICE=success_all extend_timeout_interval=4 sleep_interval=2 start_intervals=3 run_intervals=3 stop_intervals=3
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-16.units/extend-timeout.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-16-EXTEND-TIMEOUT.units/extend-timeout.sh
similarity index 84%
rename from test/testsuite-16.units/success-runtime.service
rename to test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/success-runtime.service
index 2f5744d15eca77b4190c74fb504b571bb300da9d..33a36f3ba2297c57617f92844878775453a33a4e 100644 (file)
@@ -11,4 +11,4 @@ TimeoutStartSec=4
 TimeoutStopSec=4
 RuntimeMaxSec=8
 Environment=SERVICE=success_runtime extend_timeout_interval=4 sleep_interval=6 start_intervals=0 run_intervals=1 stop_intervals=0
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-16.units/extend-timeout.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-16-EXTEND-TIMEOUT.units/extend-timeout.sh
similarity index 85%
rename from test/testsuite-16.units/success-start.service
rename to test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/success-start.service
index be518e9870326b34d0a60c63c1c394714e10682c..0453b34ff3e0509a23bcdf0ded2a936c7228fdbd 100644 (file)
@@ -10,4 +10,4 @@ TimeoutStartSec=8
 TimeoutStopSec=4
 RuntimeMaxSec=4
 Environment=SERVICE=success_start extend_timeout_interval=4 sleep_interval=6 start_intervals=1 run_intervals=0 stop_intervals=0
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-16.units/extend-timeout.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-16-EXTEND-TIMEOUT.units/extend-timeout.sh
similarity index 85%
rename from test/testsuite-16.units/success-stop.service
rename to test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.units/success-stop.service
index 2bd3e3e3ba3c6de238fb8e83356c8d532a16f80c..3719f54fd7b40547d07f32f0b53e4a30bd7f4601 100644 (file)
@@ -10,4 +10,4 @@ TimeoutStartSec=4
 TimeoutStopSec=8
 RuntimeMaxSec=4
 Environment=SERVICE=success_stop extend_timeout_interval=4 sleep_interval=6 start_intervals=0 run_intervals=0 stop_intervals=1
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-16.units/extend-timeout.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-16-EXTEND-TIMEOUT.units/extend-timeout.sh
index 8dec5f37e73a80d31833a772fa16883b02a07615..75cf2029f98190d47b23c8435189c4eb24e2eee8 100644 (file)
@@ -5,3 +5,5 @@ integration_tests += [
                 'name' : fs.name(meson.current_source_dir()),
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-16-EXTEND-TIMEOUT.units']
similarity index 52%
rename from test/testsuite-23.units/testsuite-23-binds-to.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-binds-to.service
index 9a3e31b0804e97008d78255cdb1b37f1f7549de9..022c37e5472b8b6eec721d4f8973d134a837ffe2 100644 (file)
@@ -1,10 +1,10 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=Unit with BindsTo=
-BindsTo=testsuite-23-bound-by.service
-After=testsuite-23-bound-by.service
+BindsTo=TEST-23-UNIT-FILE-bound-by.service
+After=TEST-23-UNIT-FILE-bound-by.service
 
 [Service]
 ExecStart=sleep infinity
 # --kill-who= (no 'm') to check that the short form is accepted
-ExecStopPost=systemctl kill --kill-whom=main -sRTMIN+1 testsuite-23.service
+ExecStopPost=systemctl kill --kill-whom=main -sRTMIN+1 TEST-23-UNIT-FILE.service
similarity index 70%
rename from test/testsuite-23.units/testsuite-23-fail.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-fail.service
index 597810797d099fd06483f22d6acf28e129f9868e..b78e6b438eb623ddf8fb15208f193d7646ad76a8 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=Failing unit
-OnFailure=testsuite-23-uphold.service
+OnFailure=TEST-23-UNIT-FILE-uphold.service
 
 [Service]
 ExecStart=false
similarity index 73%
rename from test/testsuite-23.units/testsuite-23-joins-namespace-of-2.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-2.service
index 36b4c272fd7473ea9a9835985339676762e7f2e8..42dd44555a1a5b90a6f6854474893f6bed7b8df9 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-JoinsNamespaceOf=testsuite-23-joins-namespace-of-1.service
+JoinsNamespaceOf=TEST-23-UNIT-FILE-joins-namespace-of-1.service
 
 [Service]
 Type=oneshot
similarity index 73%
rename from test/testsuite-23.units/testsuite-23-joins-namespace-of-3.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-3.service
index 909444502025f8473f866d5865205d766d66a6fb..f745481f78f064a8397aa460796d73c1ce23a3a4 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-JoinsNamespaceOf=testsuite-23-joins-namespace-of-1.service
+JoinsNamespaceOf=TEST-23-UNIT-FILE-joins-namespace-of-1.service
 
 [Service]
 Type=oneshot
similarity index 77%
rename from test/testsuite-23.units/testsuite-23-joins-namespace-of-4.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-4.service
index a70f8fca998d7d47de87d622a878d60a504d4597..a0ff403986fa1c9c483f075eaab2063ecf67d7af 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-JoinsNamespaceOf=testsuite-23-joins-namespace-of-5.service
+JoinsNamespaceOf=TEST-23-UNIT-FILE-joins-namespace-of-5.service
 
 [Service]
 Type=notify
similarity index 77%
rename from test/testsuite-23.units/testsuite-23-joins-namespace-of-6.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-6.service
index dae533cc369c6fb2edc706e849cb9b6aa9df39f9..9227bdaa05f5e6407f5db1a3228709ce3707a70f 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-JoinsNamespaceOf=testsuite-23-joins-namespace-of-8.service
+JoinsNamespaceOf=TEST-23-UNIT-FILE-joins-namespace-of-8.service
 
 [Service]
 Type=notify
similarity index 77%
rename from test/testsuite-23.units/testsuite-23-joins-namespace-of-7.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-7.service
index 60c083a3f4316857be0a96c19aca57d7eb731b7c..a5d62c651d4a15ab48f0dcab78d7ddba571d8574 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-JoinsNamespaceOf=testsuite-23-joins-namespace-of-8.service
+JoinsNamespaceOf=TEST-23-UNIT-FILE-joins-namespace-of-8.service
 
 [Service]
 Type=oneshot
similarity index 77%
rename from test/testsuite-23.units/testsuite-23-joins-namespace-of-9.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-joins-namespace-of-9.service
index 6c64873b24151f3a3a5b2f6a0e03cf637dfb7537..a30f92af809b06df126346ae4668d068803e48c6 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-JoinsNamespaceOf=testsuite-23-joins-namespace-of-8.service
+JoinsNamespaceOf=TEST-23-UNIT-FILE-joins-namespace-of-8.service
 
 [Service]
 Type=oneshot
similarity index 88%
rename from test/testsuite-23.units/testsuite-23-namespaced.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-namespaced.service
index 46c27ca5d836a12307b5c786841c16c36094df55..82eb74c0bd8e5d3525a3447217f4427edbbbafa3 100644 (file)
@@ -7,7 +7,7 @@ Type=notify
 RemainAfterExit=yes
 MountAPIVFS=yes
 PrivateTmp=yes
-BindPaths=/run/testsuite-23-marker-fixed:/tmp/testfile-marker-fixed
+BindPaths=/run/TEST-23-UNIT-FILE-marker-fixed:/tmp/testfile-marker-fixed
 InaccessiblePaths=/run/inaccessible
 ExecStartPre=grep -q -F MARKER_FIXED /tmp/testfile-marker-fixed
 ExecStart=sh -c 'systemd-notify --ready; until grep -q -F MARKER_RUNTIME /tmp/testfile-marker-runtime; do sleep 0.1; done; test ! -f /run/inaccessible/testfile-marker-fixed'
diff --git a/test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-prop-stop-one.service b/test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-prop-stop-one.service
new file mode 100644 (file)
index 0000000..0739aaf
--- /dev/null
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+Description=Stop Propagation Receiver
+Wants=TEST-23-UNIT-FILE-prop-stop-two.service
+After=TEST-23-UNIT-FILE-prop-stop-two.service
+StopPropagatedFrom=TEST-23-UNIT-FILE-prop-stop-two.service
+
+[Service]
+ExecStart=sleep infinity
+ExecStopPost=systemctl kill --kill-whom=main -sUSR2 TEST-23-UNIT-FILE.service
similarity index 60%
rename from test/testsuite-23.units/testsuite-23-retry-fail.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-retry-fail.service
index 2e0972cbf0dcdad4d86a87ec3a913dfee6871e98..319757a44d168310d5986178c2ae1eab126846dc 100644 (file)
@@ -5,5 +5,5 @@ Description=Failed Dependency Unit
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=sh -c "if [ -f /tmp/testsuite-23-retry-fail ]; then exit 0; else exit 1; fi"
+ExecStart=sh -c "if [ -f /tmp/TEST-23-UNIT-FILE-retry-fail ]; then exit 0; else exit 1; fi"
 Restart=no
similarity index 60%
rename from test/testsuite-23.units/testsuite-23-retry-upheld.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-retry-upheld.service
index 3c20e4338c55e0fbf1a9258078a58257f62c95ea..722a3b479bff68ffa73d8c0a6cfacf998eeff1a9 100644 (file)
@@ -1,8 +1,8 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=Upheld Unit
-Requires=testsuite-23-retry-fail.service
-After=testsuite-23-retry-fail.service
+Requires=TEST-23-UNIT-FILE-retry-fail.service
+After=TEST-23-UNIT-FILE-retry-fail.service
 
 [Service]
 Type=oneshot
similarity index 70%
rename from test/testsuite-23.units/testsuite-23-retry-uphold.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-retry-uphold.service
index 7f15f068b41b3253af7ecb30ff276cec60c8072d..829ea5c39e79e8763d26255f084118d4c81d234a 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=Upholding Unit
-Upholds=testsuite-23-retry-upheld.service
+Upholds=TEST-23-UNIT-FILE-retry-upheld.service
 
 [Service]
 ExecStart=sleep infinity
similarity index 74%
rename from test/testsuite-23.units/testsuite-23-short-lived.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-short-lived.service
index 2dcb2ae228ea9819bcd89c5a7d57eb30541368e9..ac9583f9169038c8c19ecfabdc1606aaa8455464 100644 (file)
@@ -8,4 +8,4 @@ StartLimitBurst=15
 StartLimitIntervalSec=1h
 
 [Service]
-ExecStart=/usr/lib/systemd/tests/testdata/units/testsuite-23-short-lived.sh
+ExecStart=/usr/lib/systemd/tests/testdata/units/TEST-23-UNIT-FILE-short-lived.sh
similarity index 65%
rename from test/testsuite-23.units/testsuite-23-specifier-j-wants.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-specifier-j-wants.service
index 9abb257df47691eddfacc057cb4862b11d81a863..5aeee9f8d66950b95c1294abbdf6db2acd9be3f8 100644 (file)
@@ -1,8 +1,8 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=Wants with percent-j specifier
-Wants=testsuite-23-specifier-j-depends-%j.service
-After=testsuite-23-specifier-j-depends-%j.service
+Wants=TEST-23-UNIT-FILE-specifier-j-depends-%j.service
+After=TEST-23-UNIT-FILE-specifier-j-depends-%j.service
 
 [Service]
 Type=oneshot
similarity index 72%
rename from test/testsuite-23.units/testsuite-23-success.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-success.service
index 2ace6fa370c7229dbc72f4104c2301a633101c96..1ae6271fcca621dd4337d323155cee0655ea7ab5 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=Succeeding unit
-OnSuccess=testsuite-23-fail.service
+OnSuccess=TEST-23-UNIT-FILE-fail.service
 
 [Service]
 ExecStart=true
similarity index 76%
rename from test/testsuite-23.units/testsuite-23-upheldby-install.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-upheldby-install.service
index bcfacd21dd4c5ebe3435c50d6cf66eee34e26464..edb8fcb2e91383c6fb14648ffe6c47955f0095cb 100644 (file)
@@ -6,4 +6,4 @@ Description=Unit that sets UpheldBy= through [Install]
 ExecStart=sleep infinity
 
 [Install]
-UpheldBy=testsuite-23-retry-uphold.service
+UpheldBy=TEST-23-UNIT-FILE-retry-uphold.service
similarity index 71%
rename from test/testsuite-23.units/testsuite-23-uphold.service
rename to test/TEST-23-UNIT-FILE/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-uphold.service
index 67f0ac885992bded83fe660f2661320fcb9f5ed0..36c5dae7d3077ce29a818971ab165261b8ca283b 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=Upholding Unit
-Upholds=testsuite-23-short-lived.service
+Upholds=TEST-23-UNIT-FILE-short-lived.service
 
 [Service]
 ExecStart=sleep infinity
index 8dec5f37e73a80d31833a772fa16883b02a07615..3f44662ae3a9bfcb3df079651c7c49edf28e4d5d 100644 (file)
@@ -5,3 +5,5 @@ integration_tests += [
                 'name' : fs.name(meson.current_source_dir()),
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-23-UNIT-FILE.units']
index 8dec5f37e73a80d31833a772fa16883b02a07615..174ec42867f0a79fe31d981846329373d9957b6f 100644 (file)
@@ -5,3 +5,5 @@ integration_tests += [
                 'name' : fs.name(meson.current_source_dir()),
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-30-ONCLOCKCHANGE.units']
similarity index 73%
rename from test/testsuite-52.units/test-honor-first-shutdown.service
rename to test/TEST-52-HONORFIRSTSHUTDOWN/TEST-52-HONORFIRSTSHUTDOWN.units/test-honor-first-shutdown.service
index abcf578402c9d9847b51d62c21cd955bf8335054..bbeac3a74e63344d2d19cdbf5e63f025773ae840 100644 (file)
@@ -4,7 +4,7 @@ Description=Honor First Shutdown feature
 After=multi-user.target
 
 [Service]
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-52.units/%N.sh
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-52-HONORFIRSTSHUTDOWN.units/%N.sh
 ExecStop=sh -c 'kill -KILL $MAINPID'
 FailureAction=reboot
 
index 8dec5f37e73a80d31833a772fa16883b02a07615..08503e882214a321589075abb50d2cb54716b21a 100644 (file)
@@ -5,3 +5,5 @@ integration_tests += [
                 'name' : fs.name(meson.current_source_dir()),
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-52-HONORFIRSTSHUTDOWN.units']
index 8dec5f37e73a80d31833a772fa16883b02a07615..4aa3afdf7a39656cdd387a53d35396204fde4f37 100644 (file)
@@ -5,3 +5,5 @@ integration_tests += [
                 'name' : fs.name(meson.current_source_dir()),
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-63-PATH.units']
similarity index 54%
rename from test/testsuite-80.units/fdstore-nopin.service
rename to test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/fdstore-nopin.service
index 29ffd23033637598d85926012ca44387d3a95365..f65885345f09d7fbc17c8bbbbc2476cf839ba6ad 100644 (file)
@@ -3,4 +3,4 @@ Type=notify
 NotifyAccess=all
 FileDescriptorStoreMax=10
 FileDescriptorStorePreserve=restart
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-80.units/fdstore-pin.sh 0
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-80-NOTIFYACCESS.units/fdstore-pin.sh 0
similarity index 53%
rename from test/testsuite-80.units/fdstore-pin.service
rename to test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/fdstore-pin.service
index 913daa2725bde5b66595497efadde7c2a3883675..393b5ac6819226b79034f813607b6eff1d93a50d 100644 (file)
@@ -3,4 +3,4 @@ Type=notify
 NotifyAccess=all
 FileDescriptorStoreMax=10
 FileDescriptorStorePreserve=yes
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-80.units/fdstore-pin.sh 1
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-80-NOTIFYACCESS.units/fdstore-pin.sh 1
diff --git a/test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/notify.service b/test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/notify.service
new file mode 100644 (file)
index 0000000..5693be6
--- /dev/null
@@ -0,0 +1,4 @@
+[Service]
+Type=notify
+NotifyAccess=all
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-80-NOTIFYACCESS.units/test.sh
index 8dec5f37e73a80d31833a772fa16883b02a07615..f78c6fd732ec4cef1e8bc1276dd2c8208f860937 100644 (file)
@@ -5,3 +5,5 @@ integration_tests += [
                 'name' : fs.name(meson.current_source_dir()),
         },
 ]
+
+testdata_subdirs += [meson.current_source_dir() / 'TEST-80-NOTIFYACCESS.units']
index c41ca8e55a0b637c2ae09422a99771daf1d96763..6e2c0aede72790c0a58485f239282190cb556f6a 100755 (executable)
@@ -43,7 +43,6 @@ def main():
     parser.add_argument('--meson-source-dir', required=True, type=Path)
     parser.add_argument('--meson-build-dir', required=True, type=Path)
     parser.add_argument('--test-name', required=True)
-    parser.add_argument('--test-number', required=True)
     parser.add_argument('--storage', required=True)
     parser.add_argument('--firmware', required=True)
     parser.add_argument('--slow', action=argparse.BooleanOptionalAction)
@@ -59,7 +58,7 @@ def main():
         exit(77)
 
     name = args.test_name + (f"-{i}" if (i := os.getenv("MESON_TEST_ITERATION")) else "")
-    test_unit = f"testsuite-{args.test_number}.service"
+    test_unit = f"{args.test_name}.service"
 
     dropin = textwrap.dedent(
         """\
@@ -130,7 +129,7 @@ def main():
         '--kernel-command-line-extra',
         ' '.join([
             'systemd.hostname=H',
-            f"SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/testsuite-{args.test_number}.units:/usr/lib/systemd/tests/testdata/units:",
+            f"SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/{args.test_name}.units:/usr/lib/systemd/tests/testdata/units:",
             f"systemd.unit={test_unit}",
             'systemd.mask=systemd-networkd-wait-online.service',
             *(
index 37c6a671ad8285c173348e31588f6aa06d492925..26fbd562829a9900f6359e778b15b78f2ecefaf2 100644 (file)
@@ -1,75 +1,5 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-if install_tests
-        foreach subdir : [
-                'auxv',
-                'journal-data',
-                'knot-data',
-                'test-journals',
-                'units',
-                'test-execute',
-                'test-fstab-generator',
-                'test-path',
-                'test-path-util',
-                'test-umount',
-                'test-network',
-                'test-network-generator-conversion',
-                'testsuite-03.units',
-                'testsuite-04.units',
-                'testsuite-06.units',
-                'testsuite-07.units',
-                'testsuite-16.units',
-                'testsuite-23.units',
-                'testsuite-30.units',
-                'testsuite-52.units',
-                'testsuite-63.units',
-                'testsuite-80.units',
-        ]
-                # install_subdir() before meson 1.3.0 does not handle symlinks correctly (it follows them
-                # instead of copying the symlink) so we use rsync instead.
-                if meson.version().version_compare('<1.3.0')
-                        if not rsync.found()
-                                error('rsync is required to install the integration test data')
-                        endif
-
-                        rsync_r = rsync.full_path() + ' -rlpt --exclude .gitattributes --exclude 25-default.link -- "@0@" "${DESTDIR:-}@1@"'
-                        meson.add_install_script(sh, '-c',
-                                                 rsync_r.format(meson.current_source_dir() / subdir, testdata_dir))
-                else
-                        install_subdir(subdir,
-                                       exclude_files : ['.gitattributes', '25-default.link'],
-                                       install_dir : testdata_dir,
-                                       follow_symlinks : false)
-                endif
-        endforeach
-
-        # test-network/conf/25-default.link is a local symlink that becomes dangling when installed, so we
-        # exclude it and create the correct symlink here.
-        meson.add_install_script(sh, '-c', ln_s.format(networkdir / '99-default.link',
-                                                       testdata_dir / 'test-network/conf/25-default.link'))
-
-        install_data(kbd_model_map,
-                     install_dir : testdata_dir + '/test-keymap-util')
-
-        if conf.get('HAVE_ZSTD') == 1 and efi_arch != ''
-                install_subdir('test-bcd',
-                               exclude_files : '.gitattributes',
-                               install_dir : testdata_dir)
-        endif
-        if conf.get('ENABLE_RESOLVE') == 1
-                install_subdir('test-resolve',
-                               exclude_files : '.gitattributes',
-                               install_dir : testdata_dir)
-        endif
-
-        # The unit tests implemented as shell scripts expect to find testdata/
-        # in the directory where they are stored.
-        meson.add_install_script(sh, '-c', ln_s.format(testdata_dir,
-                                                       unittestsdir / 'testdata'))
-endif
-
-############################################################
-
 if conf.get('ENABLE_SYSUSERS') == 1
         test_sysusers_sh = configure_file(
                 input : 'test-sysusers.sh.in',
@@ -353,6 +283,20 @@ integration_test_template = {
         'firmware' : 'linux',
         'slow' : false,
 }
+testdata_subdirs = [
+        'auxv',
+        'journal-data',
+        'knot-data',
+        'test-journals',
+        'units',
+        'test-execute',
+        'test-fstab-generator',
+        'test-path',
+        'test-path-util',
+        'test-umount',
+        'test-network',
+        'test-network-generator-conversion',
+]
 
 foreach dirname : [
         'TEST-01-BASIC',
@@ -423,13 +367,10 @@ foreach dirname : [
 endforeach
 
 foreach integration_test : integration_tests
-        integration_test_number = integration_test['name'].split('-')[1]
-
         integration_test_args = [
                 '--meson-source-dir', meson.project_source_root(),
                 '--meson-build-dir', meson.project_build_root(),
                 '--test-name', integration_test['name'],
-                '--test-number', integration_test_number,
                 '--storage', integration_test['storage'],
                 '--firmware', integration_test['firmware'],
         ]
@@ -463,3 +404,48 @@ foreach integration_test : integration_tests
                 suite : 'integration-tests',
         )
 endforeach
+
+if install_tests
+        foreach subdir : testdata_subdirs
+                # install_subdir() before meson 1.3.0 does not handle symlinks correctly (it follows them
+                # instead of copying the symlink) so we use rsync instead.
+                if meson.version().version_compare('<1.3.0')
+                        if not rsync.found()
+                                error('rsync is required to install the integration test data')
+                        endif
+
+                        rsync_r = rsync.full_path() + ' -rlpt --exclude .gitattributes --exclude 25-default.link -- "@0@" "${DESTDIR:-}@1@"'
+                        meson.add_install_script(sh, '-c',
+                                                 rsync_r.format(meson.current_source_dir() / subdir, testdata_dir))
+                else
+                        install_subdir(subdir,
+                                       exclude_files : ['.gitattributes', '25-default.link'],
+                                       install_dir : testdata_dir,
+                                       follow_symlinks : false)
+                endif
+        endforeach
+
+        # test-network/conf/25-default.link is a local symlink that becomes dangling when installed, so we
+        # exclude it and create the correct symlink here.
+        meson.add_install_script(sh, '-c', ln_s.format(networkdir / '99-default.link',
+                                                       testdata_dir / 'test-network/conf/25-default.link'))
+
+        install_data(kbd_model_map,
+                     install_dir : testdata_dir + '/test-keymap-util')
+
+        if conf.get('HAVE_ZSTD') == 1 and efi_arch != ''
+                install_subdir('test-bcd',
+                               exclude_files : '.gitattributes',
+                               install_dir : testdata_dir)
+        endif
+        if conf.get('ENABLE_RESOLVE') == 1
+                install_subdir('test-resolve',
+                               exclude_files : '.gitattributes',
+                               install_dir : testdata_dir)
+        endif
+
+        # The unit tests implemented as shell scripts expect to find testdata/
+        # in the directory where they are stored.
+        meson.add_install_script(sh, '-c', ln_s.format(testdata_dir,
+                                                       unittestsdir / 'testdata'))
+endif
index 6e889f838b51c70c92db0cb8c9ddb12342b89d68..2168854addfc8a4c600213957b1995ba6ef00e21 100644 (file)
@@ -146,10 +146,9 @@ if ! [[ "$TESTNAME" =~ ^TEST\-([0-9]+)\-.+$ ]]; then
     echo "ERROR: Test name '$TESTNAME' is not in the expected format: TEST-[0-9]+-*" >&2
     exit 1
 fi
-TESTID="${BASH_REMATCH[1]:?}"
 
-if [[ ! -f "$TEST_UNITS_DIR/testsuite-$TESTID.service" ]]; then
-    echo "ERROR: Test '$TESTNAME' is missing its service file '$TEST_UNITS_DIR/testsuite-$TESTID.service" >&2
+if [[ ! -f "$TEST_UNITS_DIR/$TESTNAME.service" ]]; then
+    echo "ERROR: Test '$TESTNAME' is missing its service file '$TEST_UNITS_DIR/$TESTNAME.service" >&2
     exit 1
 fi
 
@@ -566,9 +565,9 @@ run_qemu() {
         "loglevel=2"
         "init=$PATH_TO_INIT"
         "console=$CONSOLE"
-        "SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/testsuite-$1.units:/usr/lib/systemd/tests/testdata/units:"
+        "SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/$1.units:/usr/lib/systemd/tests/testdata/units:"
         "systemd.unit=testsuite.target"
-        "systemd.wants=testsuite-$1.service"
+        "systemd.wants=$1.service"
         "noresume"
         "oops=panic"
         ${TEST_MATCH_SUBTEST:+"systemd.setenv=TEST_MATCH_SUBTEST=$TEST_MATCH_SUBTEST"}
@@ -658,13 +657,13 @@ run_nspawn() {
         "--register=no"
         "--kill-signal=SIGKILL"
         "--directory=${1:?}"
-        "--setenv=SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/testsuite-$2.units:/usr/lib/systemd/tests/testdata/units:"
-        "--machine=TEST-$TESTID"
+        "--setenv=SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/$2.units:/usr/lib/systemd/tests/testdata/units:"
+        "--machine=$2"
     )
     local kernel_params=(
         "$PATH_TO_INIT"
         "systemd.unit=testsuite.target"
-        "systemd.wants=testsuite-$2.service"
+        "systemd.wants=$2.service"
         ${TEST_MATCH_SUBTEST:+"systemd.setenv=TEST_MATCH_SUBTEST=$TEST_MATCH_SUBTEST"}
         ${TEST_MATCH_TESTCASE:+"systemd.setenv=TEST_MATCH_TESTCASE=$TEST_MATCH_TESTCASE"}
     )
@@ -1745,10 +1744,10 @@ save_journal() {
         dest_name="system.journal"
     fi
 
-    # Show messages from the testsuite-XX.service or messages with priority "warning" and higher
+    # Show messages from the TEST-XX-XXX.service or messages with priority "warning" and higher
     echo " --- $source_dir ---"
     "$JOURNALCTL" --all --no-pager --no-hostname -o short-monotonic -D "$source_dir" \
-        _SYSTEMD_UNIT="testsuite-${TESTID:?}.service" + SYSLOG_IDENTIFIER="testsuite-$TESTID.sh" + \
+        _SYSTEMD_UNIT="${TESTNAME:?}.service" + SYSLOG_IDENTIFIER="$TESTNAME.sh" + \
         PRIORITY=4 + PRIORITY=3 + PRIORITY=2 + PRIORITY=1 + PRIORITY=0
 
     if get_bool "$save"; then
@@ -3325,11 +3324,11 @@ test_setup() {
 }
 
 test_run() {
-    local test_id="${1:?}"
+    local test_name="${1:?}"
     mount_initdir
 
     if ! get_bool "${TEST_NO_QEMU:=}"; then
-        if run_qemu "$test_id"; then
+        if run_qemu "$test_name"; then
             check_result_qemu || { echo "qemu test failed"; return 1; }
         else
             dwarn "can't run qemu, skipping"
@@ -3337,7 +3336,7 @@ test_run() {
     fi
     if ! get_bool "${TEST_NO_NSPAWN:=}"; then
         mount_initdir
-        if run_nspawn "${initdir:?}" "$test_id"; then
+        if run_nspawn "${initdir:?}" "$test_name"; then
             check_result_nspawn "$initdir" || { echo "nspawn-root test failed"; return 1; }
         else
             dwarn "can't run systemd-nspawn, skipping"
@@ -3345,7 +3344,7 @@ test_run() {
 
         if get_bool "${RUN_IN_UNPRIVILEGED_CONTAINER:=}"; then
             dir="$TESTDIR/unprivileged-nspawn-root"
-            if NSPAWN_ARGUMENTS="-U --private-network ${NSPAWN_ARGUMENTS:-}" run_nspawn "$dir" "$test_id"; then
+            if NSPAWN_ARGUMENTS="-U --private-network ${NSPAWN_ARGUMENTS:-}" run_nspawn "$dir" "$test_name"; then
                 check_result_nspawn "$dir" || { echo "unprivileged-nspawn-root test failed"; return 1; }
             else
                 dwarn "can't run systemd-nspawn, skipping"
@@ -3401,7 +3400,7 @@ do_test() {
         case $1 in
             --run)
                 echo "${testname} RUN: $TEST_DESCRIPTION"
-                test_run "$TESTID"
+                test_run "$TESTNAME"
                 ret=$?
                 if [ $ret -eq 0 ]; then
                     echo "${testname} RUN: $TEST_DESCRIPTION [OK]"
@@ -3433,7 +3432,7 @@ do_test() {
                     test_setup_cleanup </dev/null >>"$TESTLOG" 2>&1 || ret=$?
                 fi
                 if [ $ret -eq 0 ]; then
-                    test_run "$TESTID" </dev/null >>"$TESTLOG" 2>&1 || ret=$?
+                    test_run "$TESTNAME" </dev/null >>"$TESTLOG" 2>&1 || ret=$?
                 fi
                 test_cleanup
                 if [ $ret -eq 0 ]; then
diff --git a/test/testsuite-23.units/testsuite-23-prop-stop-one.service b/test/testsuite-23.units/testsuite-23-prop-stop-one.service
deleted file mode 100644 (file)
index 0318955..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-[Unit]
-Description=Stop Propagation Receiver
-Wants=testsuite-23-prop-stop-two.service
-After=testsuite-23-prop-stop-two.service
-StopPropagatedFrom=testsuite-23-prop-stop-two.service
-
-[Service]
-ExecStart=sleep infinity
-ExecStopPost=systemctl kill --kill-whom=main -sUSR2 testsuite-23.service
diff --git a/test/testsuite-80.units/notify.service b/test/testsuite-80.units/notify.service
deleted file mode 100644 (file)
index 196b076..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-[Service]
-Type=notify
-NotifyAccess=all
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-80.units/test.sh
similarity index 77%
rename from test/units/testsuite-05.rlimit.sh
rename to test/units/TEST-05-RLIMITS.rlimit.sh
index bbf3adbe651fb4cdfa673787f88ee8364eb2a205..6b425d4081de9d30a8b227def5aa0aa7d1538f67 100755 (executable)
@@ -16,8 +16,8 @@ systemctl daemon-reload
 [[ "$(systemctl show -P DefaultLimitNOFILESoft)" = "10000" ]]
 [[ "$(systemctl show -P DefaultLimitNOFILE)" = "16384" ]]
 
-[[ "$(systemctl show -P LimitNOFILESoft testsuite-05.service)" = "10000" ]]
-[[ "$(systemctl show -P LimitNOFILE testsuite-05.service)" = "16384" ]]
+[[ "$(systemctl show -P LimitNOFILESoft TEST-05-RLIMITS.service)" = "10000" ]]
+[[ "$(systemctl show -P LimitNOFILE TEST-05-RLIMITS.service)" = "16384" ]]
 
 # shellcheck disable=SC2016
 systemd-run --wait -t bash -c '[[ "$(ulimit -n -S)" = "10000" ]]'
similarity index 85%
rename from test/units/testsuite-19.service
rename to test/units/TEST-05-RLIMITS.service
index 9ee5fc97d2392341015be95c416714f200fb925b..ab72d8fe27ad35f43c2ae9e35b9ddfc69dd300dc 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-Description=TEST-19-DELEGATE
+Description=TEST-05-RLIMITS
 
 [Service]
 ExecStartPre=rm -f /failed /testok
similarity index 88%
rename from test/units/testsuite-07.main-PID-change.sh
rename to test/units/TEST-07-PID1.main-PID-change.sh
index bd1144c6f2e5290f7758f8b02fafde156945d0c4..16f3510e5edeffc09b06842dc987f15ed4fad04a 100755 (executable)
@@ -10,7 +10,7 @@ set -o pipefail
 
 # The main service PID should be the parent bash process
 MAINPID="${PPID:?}"
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$MAINPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$MAINPID"
 
 # Start a test process inside of our own cgroup
 sleep infinity &
@@ -23,41 +23,41 @@ EXTERNALPID="$(systemctl show -P MainPID test-sleep.service)"
 
 # Update our own main PID to the external test PID, this should work
 systemd-notify MAINPID="$EXTERNALPID"
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$EXTERNALPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$EXTERNALPID"
 
 # Update our own main PID to the internal test PID, this should work, too
 systemd-notify MAINPID=$INTERNALPID
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$INTERNALPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$INTERNALPID"
 
 # Update it back to our own PID, this should also work
 systemd-notify MAINPID="$MAINPID"
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$MAINPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$MAINPID"
 
 # Try to set it to PID 1, which it should ignore, because that's the manager
 systemd-notify MAINPID=1
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$MAINPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$MAINPID"
 
 # Try to set it to PID 0, which is invalid and should be ignored
 systemd-notify MAINPID=0
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$MAINPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$MAINPID"
 
 # Try to set it to a valid but non-existing PID, which should be ignored. (Note
 # that we set the PID to a value well above any known /proc/sys/kernel/pid_max,
 # which means we can be pretty sure it doesn't exist by coincidence)
 systemd-notify MAINPID=1073741824
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$MAINPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$MAINPID"
 
 # Change it again to the external PID, without privileges this time. This should be ignored, because the PID is from outside of our cgroup and we lack privileges.
 systemd-notify --uid=1000 MAINPID="$EXTERNALPID"
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$MAINPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$MAINPID"
 
 # Change it again to the internal PID, without privileges this time. This should work, as the process is on our cgroup, and that's enough even if we lack privileges.
 systemd-notify --uid=1000 MAINPID="$INTERNALPID"
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$INTERNALPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$INTERNALPID"
 
 # Update it back to our own PID, this should also work
 systemd-notify --uid=1000 MAINPID="$MAINPID"
-test "$(systemctl show -P MainPID testsuite-07.service)" -eq "$MAINPID"
+test "$(systemctl show -P MainPID TEST-07-PID1.service)" -eq "$MAINPID"
 
 cat >/tmp/test-mainpid.sh <<\EOF
 #!/usr/bin/env bash
similarity index 99%
rename from test/units/testsuite-13.nspawn-oci.sh
rename to test/units/TEST-13-NSPAWN.nspawn-oci.sh
index b8a76fa17226014f7f87025412f8aa59dffb5461..65dcc96b5942f5bfc340a5eb10a07a03daee4586 100755 (executable)
@@ -34,7 +34,7 @@ NETNS="$(mktemp /var/tmp/netns.XXX)"
 mount --bind /proc/self/ns/net "$NETNS"
 TMPDIR="$(mktemp -d)"
 touch "$TMPDIR/hello"
-OCI="$(mktemp -d /var/lib/machines/testsuite-13.oci-bundle.XXX)"
+OCI="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.oci-bundle.XXX)"
 create_dummy_container "$OCI/rootfs"
 mkdir -p "$OCI/rootfs/opt/var"
 mkdir -p "$OCI/rootfs/opt/readonly"
similarity index 96%
rename from test/units/testsuite-13.nspawn.sh
rename to test/units/TEST-13-NSPAWN.nspawn.sh
index 026ed23fcd9f2c2631e625f022993d10e32ae2b4..7901e9877bf976d2ebe02387ab96ed33b980295d 100755 (executable)
@@ -82,7 +82,7 @@ testcase_sanity() {
     template="$(mktemp -d /tmp/nspawn-template.XXX)"
     create_dummy_container "$template"
     # Create a simple image from the just created container template
-    image="$(mktemp /var/lib/machines/testsuite-13.image-XXX.img)"
+    image="$(mktemp /var/lib/machines/TEST-13-NSPAWN.image-XXX.img)"
     dd if=/dev/zero of="$image" bs=1M count=256
     mkfs.ext4 "$image"
     mkdir -p /mnt
@@ -94,7 +94,7 @@ testcase_sanity() {
     systemd-nspawn --version
 
     # --template=
-    root="$(mktemp -u -d /var/lib/machines/testsuite-13.sanity.XXX)"
+    root="$(mktemp -u -d /var/lib/machines/TEST-13-NSPAWN.sanity.XXX)"
     coverage_create_nspawn_dropin "$root"
     (! systemd-nspawn --directory="$root" bash -xec 'echo hello')
     # Initialize $root from $template (the $root directory must not exist, hence
@@ -342,7 +342,7 @@ testcase_nspawn_settings() {
     local root container dev private_users wlan_names
 
     mkdir -p /run/systemd/nspawn
-    root="$(mktemp -d /var/lib/machines/testsuite-13.nspawn-settings.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.nspawn-settings.XXX)"
     container="$(basename "$root")"
     create_dummy_container "$root"
     rm -f "/etc/systemd/nspawn/$container.nspawn"
@@ -505,7 +505,7 @@ bind_user_cleanup() {
 testcase_bind_user() {
     local root
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.bind-user.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.bind-user.XXX)"
     create_dummy_container "$root"
     useradd --create-home --user-group nspawn-bind-user-1
     useradd --create-home --user-group nspawn-bind-user-2
@@ -554,7 +554,7 @@ testcase_bind_tmp_path() {
     # https://github.com/systemd/systemd/issues/4789
     local root
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.bind-tmp-path.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.bind-tmp-path.XXX)"
     create_dummy_container "$root"
     : >/tmp/bind
     systemd-nspawn --register=no \
@@ -569,7 +569,7 @@ testcase_norbind() {
     # https://github.com/systemd/systemd/issues/13170
     local root
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.norbind-path.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.norbind-path.XXX)"
     mkdir -p /tmp/binddir/subdir
     echo -n "outer" >/tmp/binddir/subdir/file
     mount -t tmpfs tmpfs /tmp/binddir/subdir
@@ -596,7 +596,7 @@ testcase_rootidmap() {
     local root cmd permissions
     local owner=1000
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.rootidmap-path.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.rootidmap-path.XXX)"
     # Create ext4 image, as ext4 supports idmapped-mounts.
     mkdir -p /tmp/rootidmap/bind
     dd if=/dev/zero of=/tmp/rootidmap/ext4.img bs=4k count=2048
@@ -640,7 +640,7 @@ testcase_owneridmap() {
     local root cmd permissions
     local owner=1000
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.owneridmap-path.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.owneridmap-path.XXX)"
     # Create ext4 image, as ext4 supports idmapped-mounts.
     mkdir -p /tmp/owneridmap/bind
     dd if=/dev/zero of=/tmp/owneridmap/ext4.img bs=4k count=2048
@@ -704,7 +704,7 @@ testcase_notification_socket() {
     local root
     local cmd='echo a | nc -U -u -w 1 /run/host/notify'
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.check_notification_socket.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.check_notification_socket.XXX)"
     create_dummy_container "$root"
 
     systemd-nspawn --register=no --directory="$root" bash -x -c "$cmd"
@@ -716,7 +716,7 @@ testcase_notification_socket() {
 testcase_os_release() {
     local root entrypoint os_release_source
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.os-release.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.os-release.XXX)"
     create_dummy_container "$root"
     entrypoint="$root/entrypoint.sh"
     cat >"$entrypoint" <<\EOF
@@ -758,7 +758,7 @@ testcase_machinectl_bind() {
     local service_path service_name root container_name ec
     local cmd='for i in $(seq 1 20); do if test -f /tmp/marker; then exit 0; fi; sleep .5; done; exit 1;'
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.machinectl-bind.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.machinectl-bind.XXX)"
     create_dummy_container "$root"
     container_name="$(basename "$root")"
 
@@ -793,7 +793,7 @@ testcase_selinux() {
 
     local root
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.selinux.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.selinux.XXX)"
     create_dummy_container "$root"
     chcon -R -t container_t "$root"
 
@@ -810,7 +810,7 @@ testcase_ephemeral_config() {
     # https://github.com/systemd/systemd/issues/13297
     local root container_name
 
-    root="$(mktemp -d /var/lib/machines/testsuite-13.ephemeral-config.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.ephemeral-config.XXX)"
     create_dummy_container "$root"
     container_name="$(basename "$root")"
 
@@ -853,7 +853,7 @@ matrix_run_one() {
         return 0
     fi
 
-    root="$(mktemp -d "/var/lib/machines/testsuite-13.unified-$1-cgns-$2-api-vfs-writable-$3.XXX")"
+    root="$(mktemp -d "/var/lib/machines/TEST-13-NSPAWN.unified-$1-cgns-$2-api-vfs-writable-$3.XXX")"
     create_dummy_container "$root"
 
     SYSTEMD_NSPAWN_UNIFIED_HIERARCHY="$cgroupsv2" SYSTEMD_NSPAWN_USE_CGNS="$use_cgns" SYSTEMD_NSPAWN_API_VFS_WRITABLE="$api_vfs_writable" \
@@ -941,8 +941,8 @@ testcase_check_os_release() {
     # https://github.com/systemd/systemd/issues/29185
     local base common_opts root
 
-    base="$(mktemp -d /var/lib/machines/testsuite-13.check_os_release_base.XXX)"
-    root="$(mktemp -d /var/lib/machines/testsuite-13.check_os_release.XXX)"
+    base="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.check_os_release_base.XXX)"
+    root="$(mktemp -d /var/lib/machines/TEST-13-NSPAWN.check_os_release.XXX)"
     create_dummy_container "$base"
     cp -d "$base"/{bin,sbin,lib,lib64} "$root/"
     common_opts=(
similarity index 98%
rename from test/units/testsuite-15.sh
rename to test/units/TEST-15-DROPIN.sh
index 7143a1597a32e80a501c21b16ac011d40c83a96b..f5bd8d8af4a94d147eec8a86e91b6d050564ba13 100755 (executable)
@@ -694,15 +694,15 @@ testcase_symlink_dropin_directory() {
     echo "Testing symlink drop-in directory..."
     create_services test15-a
     rmdir /{etc,run,usr/lib}/systemd/system/test15-a.service.d
-    mkdir -p /tmp/testsuite-15-test15-a-dropin-directory
-    ln -s /tmp/testsuite-15-test15-a-dropin-directory /etc/systemd/system/test15-a.service.d
-    cat >/tmp/testsuite-15-test15-a-dropin-directory/override.conf <<EOF
+    mkdir -p /tmp/TEST-15-DROPIN-test15-a-dropin-directory
+    ln -s /tmp/TEST-15-DROPIN-test15-a-dropin-directory /etc/systemd/system/test15-a.service.d
+    cat >/tmp/TEST-15-DROPIN-test15-a-dropin-directory/override.conf <<EOF
 [Unit]
 Description=hogehoge
 EOF
-    ln -s /tmp/testsuite-15-test15-a-dropin-directory-nonexistent /run/systemd/system/test15-a.service.d
-    touch /tmp/testsuite-15-test15-a-dropin-directory-regular
-    ln -s /tmp/testsuite-15-test15-a-dropin-directory-regular /usr/lib/systemd/system/test15-a.service.d
+    ln -s /tmp/TEST-15-DROPIN-test15-a-dropin-directory-nonexistent /run/systemd/system/test15-a.service.d
+    touch /tmp/TEST-15-DROPIN-test15-a-dropin-directory-regular
+    ln -s /tmp/TEST-15-DROPIN-test15-a-dropin-directory-regular /usr/lib/systemd/system/test15-a.service.d
     check_ok test15-a Description hogehoge
 
     clear_units test15-a.service
similarity index 85%
rename from test/units/testsuite-05.service
rename to test/units/TEST-19-CGROUP.service
index cf32accb8c555b460d6d0c6f3fa9984d21006c8d..2094a126e1706d972ecae812ca970bfd2c455ec8 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-Description=TEST-05-LIMITS
+Description=TEST-19-CGROUP
 
 [Service]
 ExecStartPre=rm -f /failed /testok
diff --git a/test/units/TEST-23-UNIT-FILE-short-lived.sh b/test/units/TEST-23-UNIT-FILE-short-lived.sh
new file mode 100755 (executable)
index 0000000..4b13070
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+set -ex
+
+if [ -f /tmp/TEST-23-UNIT-FILE.counter ] ; then
+    read -r counter < /tmp/TEST-23-UNIT-FILE.counter
+    counter=$((counter + 1))
+else
+    counter=0
+fi
+
+echo "$counter" >/tmp/TEST-23-UNIT-FILE.counter
+
+if [ "$counter" -eq 5 ] ; then
+    systemctl kill --kill-whom=main -sUSR1 TEST-23-UNIT-FILE.service
+fi
+
+exec sleep 1.5
diff --git a/test/units/TEST-23-UNIT-FILE.JoinsNamespaceOf.sh b/test/units/TEST-23-UNIT-FILE.JoinsNamespaceOf.sh
new file mode 100755 (executable)
index 0000000..4fd68d8
--- /dev/null
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+set -eux
+set -o pipefail
+
+# Test JoinsNamespaceOf= with PrivateTmp=yes
+
+systemd-analyze log-level debug
+systemd-analyze log-target journal
+
+# simple case
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-1.service
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-2.service
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-3.service
+systemctl stop TEST-23-UNIT-FILE-joins-namespace-of-1.service
+
+# inverse dependency
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-4.service
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-5.service
+systemctl stop TEST-23-UNIT-FILE-joins-namespace-of-4.service
+
+# transitive dependency
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-6.service
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-7.service
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-8.service
+systemctl start TEST-23-UNIT-FILE-joins-namespace-of-9.service
+systemctl stop TEST-23-UNIT-FILE-joins-namespace-of-6.service
+systemctl stop TEST-23-UNIT-FILE-joins-namespace-of-8.service
+
+systemd-analyze log-level info
similarity index 80%
rename from test/units/testsuite-23.StandardOutput.sh
rename to test/units/TEST-23-UNIT-FILE.StandardOutput.sh
index 50b9ac2a2b9b6694b61fed7a014c346e6e0585a5..a951b13b465d0f7f6d3ffa10c273788db7b39439 100755 (executable)
@@ -7,7 +7,7 @@ set -o pipefail
 
 systemd-analyze log-level debug
 
-systemd-run --wait --unit=testsuite-23-standard-output-one \
+systemd-run --wait --unit=TEST-23-UNIT-FILE-standard-output-one \
             -p StandardOutput=file:/tmp/stdout \
             -p StandardError=file:/tmp/stderr \
             -p Type=exec \
@@ -19,7 +19,7 @@ cmp /tmp/stderr <<EOF
 y
 EOF
 
-systemd-run --wait --unit=testsuite-23-standard-output-two \
+systemd-run --wait --unit=TEST-23-UNIT-FILE-standard-output-two \
             -p StandardOutput=file:/tmp/stdout \
             -p StandardError=file:/tmp/stderr \
             -p Type=exec \
@@ -31,7 +31,7 @@ cmp /tmp/stderr <<EOF
 a
 EOF
 
-systemd-run --wait --unit=testsuite-23-standard-output-three \
+systemd-run --wait --unit=TEST-23-UNIT-FILE-standard-output-three \
             -p StandardOutput=append:/tmp/stdout \
             -p StandardError=append:/tmp/stderr \
             -p Type=exec \
@@ -45,7 +45,7 @@ a
 c
 EOF
 
-systemd-run --wait --unit=testsuite-23-standard-output-four \
+systemd-run --wait --unit=TEST-23-UNIT-FILE-standard-output-four \
             -p StandardOutput=truncate:/tmp/stdout \
             -p StandardError=truncate:/tmp/stderr \
             -p Type=exec \
diff --git a/test/units/TEST-23-UNIT-FILE.Upholds.sh b/test/units/TEST-23-UNIT-FILE.Upholds.sh
new file mode 100755 (executable)
index 0000000..20d2d2b
--- /dev/null
@@ -0,0 +1,99 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+set -eux
+set -o pipefail
+
+# Test OnSuccess= + Uphold= + PropagatesStopTo= + BindsTo=
+
+systemd-analyze log-level debug
+systemd-analyze log-target journal
+
+# Idea is this:
+#    1. we start TEST-23-UNIT-FILE-success.service
+#    2. which through OnSuccess= starts TEST-23-UNIT-FILE-fail.service,
+#    3. which through OnFailure= starts TEST-23-UNIT-FILE-uphold.service,
+#    4. which through Uphold= starts/keeps TEST-23-UNIT-FILE-short-lived.service running,
+#    5. which will sleep 1s when invoked, and on the 5th invocation send us a SIGUSR1
+#    6. once we got that we finish cleanly
+
+sigusr1=0
+trap sigusr1=1 SIGUSR1
+
+trap -p SIGUSR1
+
+systemctl start TEST-23-UNIT-FILE-success.service
+
+while [ "$sigusr1" -eq 0 ] ; do
+    sleep .5
+done
+
+systemctl stop TEST-23-UNIT-FILE-uphold.service
+
+systemctl enable TEST-23-UNIT-FILE-upheldby-install.service
+
+# Idea is this:
+#    1. we start TEST-23-UNIT-FILE-retry-uphold.service
+#    2. which through Uphold= starts TEST-23-UNIT-FILE-retry-upheld.service
+#    3. which through Requires= starts TEST-23-UNIT-FILE-retry-fail.service
+#    4. which fails as /tmp/TEST-23-UNIT-FILE-retry-fail does not exist, so TEST-23-UNIT-FILE-retry-upheld.service
+#       is no longer restarted
+#    5. we create /tmp/TEST-23-UNIT-FILE-retry-fail
+#    6. now TEST-23-UNIT-FILE-retry-upheld.service will be restarted since upheld, and its dependency will
+#       be satisfied
+
+rm -f /tmp/TEST-23-UNIT-FILE-retry-fail
+systemctl start TEST-23-UNIT-FILE-retry-uphold.service
+systemctl is-active TEST-23-UNIT-FILE-upheldby-install.service
+
+until systemctl is-failed TEST-23-UNIT-FILE-retry-fail.service ; do
+    sleep .5
+done
+
+(! systemctl is-active TEST-23-UNIT-FILE-retry-upheld.service)
+
+touch /tmp/TEST-23-UNIT-FILE-retry-fail
+
+until systemctl is-active TEST-23-UNIT-FILE-retry-upheld.service ; do
+    sleep .5
+done
+
+systemctl stop TEST-23-UNIT-FILE-retry-uphold.service TEST-23-UNIT-FILE-retry-fail.service TEST-23-UNIT-FILE-retry-upheld.service
+
+# Idea is this:
+#    1. we start TEST-23-UNIT-FILE-prop-stop-one.service
+#    2. which through Wants=/After= pulls in TEST-23-UNIT-FILE-prop-stop-two.service as well
+#    3. TEST-23-UNIT-FILE-prop-stop-one.service then sleeps indefinitely
+#    4. TEST-23-UNIT-FILE-prop-stop-two.service sleeps a short time and exits
+#    5. the StopPropagatedFrom= dependency between the two should ensure *both* will exit as result
+#    6. an ExecStopPost= line on TEST-23-UNIT-FILE-prop-stop-one.service will send us a SIGUSR2
+#    7. once we got that we finish cleanly
+
+sigusr2=0
+trap sigusr2=1 SIGUSR2
+
+systemctl start TEST-23-UNIT-FILE-prop-stop-one.service
+
+while [ "$sigusr2" -eq 0 ] ; do
+    sleep .5
+done
+
+
+# Idea is this:
+#    1. we start TEST-23-UNIT-FILE-binds-to.service
+#    2. which through BindsTo=/After= pulls in TEST-23-UNIT-FILE-bound-by.service as well
+#    3. TEST-23-UNIT-FILE-bound-by.service suddenly dies
+#    4. TEST-23-UNIT-FILE-binds-to.service should then also be pulled down (it otherwise just hangs)
+#    6. an ExecStopPost= line on TEST-23-UNIT-FILE-binds-to.service will send us a SIGRTMIN1+1
+#    7. once we got that we finish cleanly
+
+sigrtmin1=0
+trap sigrtmin1=1 SIGRTMIN+1
+
+systemctl start TEST-23-UNIT-FILE-binds-to.service
+
+while [ "$sigrtmin1" -eq 0 ] ; do
+    sleep .5
+done
+
+systemd-analyze log-level info
similarity index 90%
rename from test/units/testsuite-23.oneshot-restart.sh
rename to test/units/TEST-23-UNIT-FILE.oneshot-restart.sh
index bb4d664945e12622c36ca2ab492492d21281b737..d06dbaae8cfce32885638d5fccc205bd9de3d807 100755 (executable)
@@ -56,8 +56,8 @@ rm "$TMP_FILE"
 # Test RestartForceExitStatus=. Note that success exit statuses are meant to be skipped
 
 TMP_FILE="/tmp/test-23-oneshot-restart-test$RANDOM"
-UNIT_NAME="testsuite-23-oneshot-restartforce.service"
-ONSUCCESS_UNIT_NAME="testsuite-23-oneshot-restartforce-onsuccess.service"
+UNIT_NAME="TEST-23-UNIT-FILE-oneshot-restartforce.service"
+ONSUCCESS_UNIT_NAME="TEST-23-UNIT-FILE-oneshot-restartforce-onsuccess.service"
 FIFO_FILE="/tmp/test-23-oneshot-restart-test-fifo"
 
 cat >"/run/systemd/system/$UNIT_NAME" <<EOF
@@ -67,7 +67,7 @@ OnSuccess=$ONSUCCESS_UNIT_NAME
 [Service]
 Type=oneshot
 RestartForceExitStatus=0 2
-ExecStart=/usr/lib/systemd/tests/testdata/testsuite-23.units/testsuite-23-oneshot-restartforce.sh "$TMP_FILE"
+ExecStart=/usr/lib/systemd/tests/testdata/TEST-23-UNIT-FILE.units/TEST-23-UNIT-FILE-oneshot-restartforce.sh "$TMP_FILE"
 
 [Install]
 WantedBy=multi-user.target
similarity index 79%
rename from test/units/testsuite-23.openfile.sh
rename to test/units/TEST-23-UNIT-FILE.openfile.sh
index 61081617a1403c2f278445e2333d43706e11e0b9..644b6f458ed45f2c9317b62425851e05007696c2 100755 (executable)
@@ -28,7 +28,7 @@ systemd-run -p DynamicUser=yes -p EnvironmentFile=-/usr/lib/systemd/systemd-asan
             -p RemainAfterExit=yes \
             --unit=test-23-openfile-existing.service \
             --service-type=oneshot \
-            /usr/lib/systemd/tests/testdata/units/testsuite-23-openfile-child.sh 2 "open.txt:colon" "Open" "File"
+            /usr/lib/systemd/tests/testdata/units/TEST-23-UNIT-FILE-openfile-child.sh 2 "open.txt:colon" "Open" "File"
 
 cmp <(systemctl show -p OpenFile test-23-openfile-existing.service) <<EOF
 OpenFile=/tmp/test-open-file/open.txt::read-only
@@ -39,13 +39,13 @@ systemctl stop test-23-openfile-existing.service
 
 # Sockets
 
-systemctl start testsuite-23-openfile-server.socket
+systemctl start TEST-23-UNIT-FILE-openfile-server.socket
 
 systemd-run -p OpenFile=/tmp/test.sock:socket:read-only \
             --wait \
-            /usr/lib/systemd/tests/testdata/units/testsuite-23-openfile-child.sh 1 "socket" "Socket"
+            /usr/lib/systemd/tests/testdata/units/TEST-23-UNIT-FILE-openfile-child.sh 1 "socket" "Socket"
 
-systemctl stop testsuite-23-openfile-server.socket
+systemctl stop TEST-23-UNIT-FILE-openfile-server.socket
 
 # Ignore when missing
 
similarity index 69%
rename from test/units/testsuite-23.percentj-wantedby.sh
rename to test/units/TEST-23-UNIT-FILE.percentj-wantedby.sh
index e9ffaba6824facbc7f41e1648933cc3d0b07fd7f..c091bd64551daefc058abfe76b294bcdcc00dbc9 100755 (executable)
@@ -8,8 +8,8 @@ set -o pipefail
 # Ensure %j Wants directives work
 systemd-run --wait \
             --property="Type=oneshot" \
-            --property="Wants=testsuite-23-specifier-j-wants.service" \
-            --property="After=testsuite-23-specifier-j-wants.service" \
+            --property="Wants=TEST-23-UNIT-FILE-specifier-j-wants.service" \
+            --property="After=TEST-23-UNIT-FILE-specifier-j-wants.service" \
             true
 
 test -f /tmp/tetsuite-23-specifier-j-done
diff --git a/test/units/TEST-23-UNIT-FILE.runtime-bind-paths.sh b/test/units/TEST-23-UNIT-FILE.runtime-bind-paths.sh
new file mode 100755 (executable)
index 0000000..3a78234
--- /dev/null
@@ -0,0 +1,43 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+# shellcheck disable=SC2016
+set -eux
+set -o pipefail
+
+# Test adding new BindPaths while unit is already running
+
+at_exit() {
+    set +e
+
+    rm -f /run/TEST-23-UNIT-FILE-marker-{fixed,runtime}
+    rm -fr /run/inaccessible
+}
+
+trap at_exit EXIT
+
+echo "MARKER_FIXED" >/run/TEST-23-UNIT-FILE-marker-fixed
+mkdir /run/inaccessible
+
+systemctl start TEST-23-UNIT-FILE-namespaced.service
+
+# Ensure that inaccessible paths aren't bypassed by the runtime setup,
+(! systemctl bind --mkdir TEST-23-UNIT-FILE-namespaced.service /run/TEST-23-UNIT-FILE-marker-fixed /run/inaccessible/testfile-marker-fixed)
+
+echo "MARKER_WRONG" >/run/TEST-23-UNIT-FILE-marker-wrong
+echo "MARKER_RUNTIME" >/run/TEST-23-UNIT-FILE-marker-runtime
+
+# Mount twice to exercise mount-beneath (on kernel 6.5+, on older kernels it will just overmount)
+systemctl bind --mkdir TEST-23-UNIT-FILE-namespaced.service /run/TEST-23-UNIT-FILE-marker-wrong /tmp/testfile-marker-runtime
+test "$(systemctl show -P SubState TEST-23-UNIT-FILE-namespaced.service)" = "running"
+systemctl bind --mkdir TEST-23-UNIT-FILE-namespaced.service /run/TEST-23-UNIT-FILE-marker-runtime /tmp/testfile-marker-runtime
+
+timeout 10 bash -xec 'while [[ "$(systemctl show -P SubState TEST-23-UNIT-FILE-namespaced.service)" == running ]]; do sleep .5; done'
+systemctl is-active TEST-23-UNIT-FILE-namespaced.service
+
+# Now test that systemctl bind fails when attempted on a non-namespaced unit
+systemctl start TEST-23-UNIT-FILE-non-namespaced.service
+
+(! systemctl bind --mkdir TEST-23-UNIT-FILE-non-namespaced.service /run/TEST-23-UNIT-FILE-marker-runtime /tmp/testfile-marker-runtime)
+
+timeout 10 bash -xec 'while [[ "$(systemctl show -P SubState TEST-23-UNIT-FILE-non-namespaced.service)" == running ]]; do sleep .5; done'
+(! systemctl is-active TEST-23-UNIT-FILE-non-namespaced.service)
similarity index 84%
rename from test/units/testsuite-23.service
rename to test/units/TEST-23-UNIT-FILE.service
index 26f5226cd4d9c409e89590c8d5d7becbcd203057..e45435b84a56b432a766bd25f564a2d190197251 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-Description=TEST-23-TYPE-EXEC
+Description=TEST-23-UNIT-FILE
 
 [Service]
 ExecStartPre=rm -f /failed /testok
diff --git a/test/units/TEST-23-UNIT-FILE.start-stop-no-reload.sh b/test/units/TEST-23-UNIT-FILE.start-stop-no-reload.sh
new file mode 100755 (executable)
index 0000000..61a6592
--- /dev/null
@@ -0,0 +1,93 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+# ex: ts=8 sw=4 sts=4 et filetype=sh
+set -eux
+set -o pipefail
+
+# Test start & stop operations without daemon-reload
+
+at_exit() {
+    set +e
+
+    rm -f /run/systemd/system/TEST-23-UNIT-FILE-no-reload.{service,target}
+}
+
+trap at_exit EXIT
+
+cat >/run/systemd/system/TEST-23-UNIT-FILE-no-reload.target <<EOF
+[Unit]
+Wants=TEST-23-UNIT-FILE-no-reload.service
+EOF
+
+systemctl daemon-reload
+
+systemctl start TEST-23-UNIT-FILE-no-reload.target
+
+# The filesystem on the test image, despite being ext4, seems to have a mtime
+# granularity of one second, which means the manager's unit cache won't be
+# marked as dirty when writing the unit file, unless we wait at least a full
+# second after the previous daemon-reload.
+# May 07 23:12:20 H TEST-23-UNIT-FILE.sh[30]: + cat
+# May 07 23:12:20 H TEST-23-UNIT-FILE.sh[30]: + ls -l --full-time /etc/systemd/system/TEST-23-UNIT-FILE-no-reload.service
+# May 07 23:12:20 H TEST-23-UNIT-FILE.sh[52]: -rw-r--r-- 1 root root 50 2020-05-07 23:12:20.000000000 +0100 /
+# May 07 23:12:20 H TEST-23-UNIT-FILE.sh[30]: + stat -f --format=%t /etc/systemd/system/TEST-23-UNIT-FILE-no-reload.servic
+# May 07 23:12:20 H TEST-23-UNIT-FILE.sh[53]: ef53
+sleep 3.1
+
+cat >/run/systemd/system/TEST-23-UNIT-FILE-no-reload.service <<EOF
+[Service]
+ExecStart=sleep infinity
+EOF
+
+systemctl start TEST-23-UNIT-FILE-no-reload.service
+
+systemctl is-active TEST-23-UNIT-FILE-no-reload.service
+
+# Stop and remove, and try again to exercise https://github.com/systemd/systemd/issues/15992
+systemctl stop TEST-23-UNIT-FILE-no-reload.service
+rm -f /run/systemd/system/TEST-23-UNIT-FILE-no-reload.service
+systemctl daemon-reload
+
+sleep 3.1
+
+cat >/run/systemd/system/TEST-23-UNIT-FILE-no-reload.service <<EOF
+[Service]
+ExecStart=sleep infinity
+EOF
+
+# Start a non-existing unit first, so that the cache is reloaded for an unrelated
+# reason. Starting the existing unit later should still work thanks to the check
+# for the last load attempt vs cache timestamp.
+systemctl start TEST-23-UNIT-FILE-no-reload-nonexistent.service || true
+
+systemctl start TEST-23-UNIT-FILE-no-reload.service
+
+systemctl is-active TEST-23-UNIT-FILE-no-reload.service
+
+# Stop and remove, and try again to exercise the transaction setup code path by
+# having the target pull in the unloaded but available unit
+systemctl stop TEST-23-UNIT-FILE-no-reload.service TEST-23-UNIT-FILE-no-reload.target
+rm -f /run/systemd/system/TEST-23-UNIT-FILE-no-reload.service /run/systemd/system/TEST-23-UNIT-FILE-no-reload.target
+systemctl daemon-reload
+
+sleep 3.1
+
+cat >/run/systemd/system/TEST-23-UNIT-FILE-no-reload.target <<EOF
+[Unit]
+Conflicts=shutdown.target
+Wants=TEST-23-UNIT-FILE-no-reload.service
+EOF
+
+systemctl daemon-reload
+
+systemctl start TEST-23-UNIT-FILE-no-reload.target
+
+cat >/run/systemd/system/TEST-23-UNIT-FILE-no-reload.service <<EOF
+[Service]
+ExecStart=sleep infinity
+EOF
+
+systemctl restart TEST-23-UNIT-FILE-no-reload.target
+
+systemctl is-active TEST-23-UNIT-FILE-no-reload.service
similarity index 66%
rename from test/units/testsuite-23.whoami.sh
rename to test/units/TEST-23-UNIT-FILE.whoami.sh
index a0c73b85647feab289aa9e41dacf858ac23f7857..b538d94ae1d891bb78dab447c2ad2eb699c65056 100755 (executable)
@@ -5,11 +5,11 @@
 set -eux
 set -o pipefail
 
-test "$(systemctl whoami)" = testsuite-23.service
-test "$(systemctl whoami $$)" = testsuite-23.service
+test "$(systemctl whoami)" = TEST-23-UNIT-FILE.service
+test "$(systemctl whoami $$)" = TEST-23-UNIT-FILE.service
 
 systemctl whoami 1 $$ 1 | cmp - /dev/fd/3 3<<'EOF'
 init.scope
-testsuite-23.service
+TEST-23-UNIT-FILE.service
 init.scope
 EOF
similarity index 92%
rename from test/units/testsuite-32.sh
rename to test/units/TEST-32-OOMPOLICY.sh
index 83b548a60215471d22c836932ec5aaff3bc43df5..046b8b954586ee8a7672b39c01649e338bcd7e1a 100755 (executable)
@@ -9,7 +9,7 @@ set -o pipefail
 # an easier thing to test for, and also: let's not get confused by older
 # kernels where the concept was still new.
 
-if test -f /sys/fs/cgroup/system.slice/testsuite-32.service/memory.oom.group; then
+if test -f /sys/fs/cgroup/system.slice/TEST-32-OOMPOLICY.service/memory.oom.group; then
     systemd-analyze log-level debug
 
     # Run a service that is guaranteed to be the first candidate for OOM killing
similarity index 99%
rename from test/units/testsuite-38.sh
rename to test/units/TEST-38-FREEZER.sh
index 1cb8915e19559d279fc9b9a8662d6d44c207f68f..07597843e258fdef6a59d0cb49a52328240ae677 100755 (executable)
@@ -9,7 +9,7 @@ set -o pipefail
 
 systemd-analyze log-level debug
 
-unit=testsuite-38-sleep.service
+unit=TEST-38-FREEZER-sleep.service
 
 start_test_service() {
     systemctl daemon-reload
similarity index 90%
rename from test/units/testsuite-44.service
rename to test/units/TEST-44-LOG-NAMESPACE.service
index 4dffdeab94ad83c42631d5cad7734e9ec401f9ff..6189d3afa0bfb65f088a0525fa6cdad54ba393f5 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-Description=TESTSUITE-44-LOG-NAMESPACE
+Description=TEST-44-LOG-NAMESPACE
 Before=getty-pre.target
 Wants=getty-pre.target
 Wants=systemd-journald@foobar.socket systemd-journald-varlink@foobar.socket
similarity index 99%
rename from test/units/testsuite-50.sh
rename to test/units/TEST-50-DISSECT.sh
index d014e824fce3743472499901e8f203ba88370d02..b1286d70ff5dcc953b5821a6956d040bd7a04776 100755 (executable)
@@ -95,7 +95,7 @@ elif [[ "$machine" == "riscv32" ]]; then
     SIGNATURE_GUID=3a112a75-8729-4380-b4cf-764d79934448
     ARCHITECTURE="riscv32"
 else
-    echo "Unexpected uname -m: $machine in testsuite-50.sh, please fix me"
+    echo "Unexpected uname -m: $machine in TEST-50-DISSECT.sh, please fix me"
     exit 1
 fi
 
similarity index 76%
rename from test/units/testsuite-52.service
rename to test/units/TEST-52-HONORFIRSTSHUTDOWN.service
index b9f290975a8eab21bd91c1bfbcda79a6b43e7819..966b9b6a1b6f976cc311166e12a1a29193f7f31b 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-Description=Testsuite service
+Description=TEST-52-HONORFIRSTSHUTDOWN
 
 [Service]
 ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
similarity index 86%
rename from test/units/testsuite-64.service
rename to test/units/TEST-54-CREDS.service
index f75a3d7aad4ea8d898cd7ee07faa9b477c2fdee5..94bf2b7645eca70a820cd33b3a5a2e817b73da4a 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-Description=TEST-64-UDEV
+Description=TEST-54-CREDS
 
 [Service]
 ExecStartPre=rm -f /failed /testok
similarity index 90%
rename from test/units/testsuite-55-testbloat.service
rename to test/units/TEST-55-OOMD-testbloat.service
index 6c8e3c93aca6bb34f8503172c028135cd7ce9afb..ba4f2bc88c4d06db91f6e8534391f7ca11e67901 100644 (file)
@@ -6,5 +6,5 @@ Description=Create a lot of memory pressure
 # A VERY small memory.high will cause the 'stress' (trying to use a lot of memory)
 # to throttle and be put under heavy pressure.
 MemoryHigh=3M
-Slice=testsuite-55-workload.slice
+Slice=TEST-55-OOMD-workload.slice
 ExecStart=stress --timeout 3m --vm 10 --vm-bytes 200M --vm-keep --vm-stride 1
similarity index 79%
rename from test/units/testsuite-55-testchill.service
rename to test/units/TEST-55-OOMD-testchill.service
index 369b8029d37316b4813cc06c968d1b570fb819b5..1f708dd81cedd7c1c7d59802c6375cfe0b5ea241 100644 (file)
@@ -4,5 +4,5 @@ Description=No memory pressure
 
 [Service]
 MemoryHigh=3M
-Slice=testsuite-55-workload.slice
+Slice=TEST-55-OOMD-workload.slice
 ExecStart=sleep infinity
similarity index 85%
rename from test/units/testsuite-55-testmunch.service
rename to test/units/TEST-55-OOMD-testmunch.service
index 373005979797412b2b163d8b39f2a068a1ccb9a4..5659906ad1fba83f31b3a818f9983bcee28b04be 100644 (file)
@@ -4,5 +4,5 @@ Description=Create some memory pressure
 
 [Service]
 MemoryHigh=12M
-Slice=testsuite-55-workload.slice
+Slice=TEST-55-OOMD-workload.slice
 ExecStart=stress --timeout 3m --vm 10 --vm-bytes 200M --vm-keep --vm-stride 1
similarity index 88%
rename from test/units/testsuite-55.service
rename to test/units/TEST-55-OOMD.service
index 00fb49919f410929d43f2a98c8b5516347ec6ac0..1b6b8b818f4befde8e2fd46389732323fe0459ce 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-Description=TESTSUITE-55-OOMD
+Description=TEST-55-OOMD
 After=user@4711.service
 Wants=user@4711.service
 
similarity index 74%
rename from test/units/testsuite-55.sh
rename to test/units/TEST-55-OOMD.sh
index 5bc0eaec75eb7a85e127cd3394a8382010af1318..b04ebca7e21c982631dfeea0e2f34d3f032eb3d9 100755 (executable)
@@ -27,7 +27,7 @@ if [[ -s /skipped ]]; then
     exit 77
 fi
 
-rm -rf /run/systemd/system/testsuite-55-testbloat.service.d
+rm -rf /run/systemd/system/TEST-55-OOMD-testbloat.service.d
 
 # Activate swap file if we are in a VM
 if systemd-detect-virt --vm --quiet; then
@@ -87,34 +87,34 @@ if [[ -v ASAN_OPTIONS || -v UBSAN_OPTIONS ]]; then
     # go on a killing spree. This fact is exacerbated further on Arch Linux which ships unstripped gcc-libs,
     # so sd-executor pulls in over 30M of libs on startup. Let's make the MemoryHigh= limit a bit more
     # generous when running with sanitizers to make the test happy.
-    systemctl edit --runtime --stdin --drop-in=99-MemoryHigh.conf testsuite-55-testchill.service <<EOF
+    systemctl edit --runtime --stdin --drop-in=99-MemoryHigh.conf TEST-55-OOMD-testchill.service <<EOF
 [Service]
 MemoryHigh=60M
 EOF
     # Do the same for the user instance as well
     mkdir -p /run/systemd/user/
-    cp -rfv /run/systemd/system/testsuite-55-testchill.service.d/ /run/systemd/user/
+    cp -rfv /run/systemd/system/TEST-55-OOMD-testchill.service.d/ /run/systemd/user/
 else
     # Ensure that we can start services even with a very low hard memory cap without oom-kills, but skip
     # under sanitizers as they balloon memory usage.
     systemd-run -t -p MemoryMax=10M -p MemorySwapMax=0 -p MemoryZSwapMax=0 /bin/true
 fi
 
-systemctl start testsuite-55-testchill.service
-systemctl start testsuite-55-testbloat.service
+systemctl start TEST-55-OOMD-testchill.service
+systemctl start TEST-55-OOMD-testbloat.service
 
 # Verify systemd-oomd is monitoring the expected units
-timeout 1m bash -xec 'until oomctl | grep "/testsuite-55-workload.slice"; do sleep 1; done'
-oomctl | grep "/testsuite-55-workload.slice"
+timeout 1m bash -xec 'until oomctl | grep "/TEST-55-OOMD-workload.slice"; do sleep 1; done'
+oomctl | grep "/TEST-55-OOMD-workload.slice"
 oomctl | grep "20.00%"
 oomctl | grep "Default Memory Pressure Duration: 2s"
 
-systemctl status testsuite-55-testchill.service
+systemctl status TEST-55-OOMD-testchill.service
 
 # systemd-oomd watches for elevated pressure for 2 seconds before acting.
 # It can take time to build up pressure so either wait 2 minutes or for the service to fail.
 for _ in {0..59}; do
-    if ! systemctl status testsuite-55-testbloat.service; then
+    if ! systemctl status TEST-55-OOMD-testbloat.service; then
         break
     fi
     oomctl
@@ -122,28 +122,28 @@ for _ in {0..59}; do
 done
 
 # testbloat should be killed and testchill should be fine
-if systemctl status testsuite-55-testbloat.service; then exit 42; fi
-if ! systemctl status testsuite-55-testchill.service; then exit 24; fi
+if systemctl status TEST-55-OOMD-testbloat.service; then exit 42; fi
+if ! systemctl status TEST-55-OOMD-testchill.service; then exit 24; fi
 
 # Make sure we also work correctly on user units.
 loginctl enable-linger testuser
 
-systemctl start --machine "testuser@.host" --user testsuite-55-testchill.service
-systemctl start --machine "testuser@.host" --user testsuite-55-testbloat.service
+systemctl start --machine "testuser@.host" --user TEST-55-OOMD-testchill.service
+systemctl start --machine "testuser@.host" --user TEST-55-OOMD-testbloat.service
 
 # Verify systemd-oomd is monitoring the expected units
 # Try to avoid racing the oomctl output check by checking in a loop with a timeout
-timeout 1m bash -xec 'until oomctl | grep "/testsuite-55-workload.slice"; do sleep 1; done'
-oomctl | grep -E "/user.slice.*/testsuite-55-workload.slice"
+timeout 1m bash -xec 'until oomctl | grep "/TEST-55-OOMD-workload.slice"; do sleep 1; done'
+oomctl | grep -E "/user.slice.*/TEST-55-OOMD-workload.slice"
 oomctl | grep "20.00%"
 oomctl | grep "Default Memory Pressure Duration: 2s"
 
-systemctl --machine "testuser@.host" --user status testsuite-55-testchill.service
+systemctl --machine "testuser@.host" --user status TEST-55-OOMD-testchill.service
 
 # systemd-oomd watches for elevated pressure for 2 seconds before acting.
 # It can take time to build up pressure so either wait 2 minutes or for the service to fail.
 for _ in {0..59}; do
-    if ! systemctl --machine "testuser@.host" --user status testsuite-55-testbloat.service; then
+    if ! systemctl --machine "testuser@.host" --user status TEST-55-OOMD-testbloat.service; then
         break
     fi
     oomctl
@@ -151,8 +151,8 @@ for _ in {0..59}; do
 done
 
 # testbloat should be killed and testchill should be fine
-if systemctl --machine "testuser@.host" --user status testsuite-55-testbloat.service; then exit 42; fi
-if ! systemctl --machine "testuser@.host" --user status testsuite-55-testchill.service; then exit 24; fi
+if systemctl --machine "testuser@.host" --user status TEST-55-OOMD-testbloat.service; then exit 42; fi
+if ! systemctl --machine "testuser@.host" --user status TEST-55-OOMD-testchill.service; then exit 24; fi
 
 loginctl disable-linger testuser
 
@@ -160,19 +160,19 @@ loginctl disable-linger testuser
 if cgroupfs_supports_user_xattrs; then
     sleep 120 # wait for systemd-oomd kill cool down and elevated memory pressure to come down
 
-    mkdir -p /run/systemd/system/testsuite-55-testbloat.service.d/
-    cat >/run/systemd/system/testsuite-55-testbloat.service.d/override.conf <<EOF
+    mkdir -p /run/systemd/system/TEST-55-OOMD-testbloat.service.d/
+    cat >/run/systemd/system/TEST-55-OOMD-testbloat.service.d/override.conf <<EOF
 [Service]
 ManagedOOMPreference=avoid
 EOF
 
     systemctl daemon-reload
-    systemctl start testsuite-55-testchill.service
-    systemctl start testsuite-55-testmunch.service
-    systemctl start testsuite-55-testbloat.service
+    systemctl start TEST-55-OOMD-testchill.service
+    systemctl start TEST-55-OOMD-testmunch.service
+    systemctl start TEST-55-OOMD-testbloat.service
 
     for _ in {0..59}; do
-        if ! systemctl status testsuite-55-testmunch.service; then
+        if ! systemctl status TEST-55-OOMD-testmunch.service; then
             break
         fi
         oomctl
@@ -180,9 +180,9 @@ EOF
     done
 
     # testmunch should be killed since testbloat had the avoid xattr on it
-    if ! systemctl status testsuite-55-testbloat.service; then exit 25; fi
-    if systemctl status testsuite-55-testmunch.service; then exit 43; fi
-    if ! systemctl status testsuite-55-testchill.service; then exit 24; fi
+    if ! systemctl status TEST-55-OOMD-testbloat.service; then exit 25; fi
+    if systemctl status TEST-55-OOMD-testmunch.service; then exit 43; fi
+    if ! systemctl status TEST-55-OOMD-testchill.service; then exit 24; fi
 fi
 
 systemd-analyze log-level info
similarity index 99%
rename from test/units/testsuite-58.sh
rename to test/units/TEST-58-REPART.sh
index bebe7b727b62070d74e7864b46e7c6f78c1aa2d3..d3cb2f8bb0431104e014b5e6c7f29b84850222cb 100755 (executable)
@@ -87,7 +87,7 @@ elif [ "${machine}" = "ppc64le" ]; then
     usr_uuid=C0D0823B-8040-4C7C-A629-026248E297FB
     architecture="ppc64-le"
 else
-    echo "Unexpected uname -m: ${machine} in testsuite-58.sh, please fix me"
+    echo "Unexpected uname -m: ${machine} in TEST-58-REPART.sh, please fix me"
     exit 1
 fi
 
similarity index 96%
rename from test/units/testsuite-60.sh
rename to test/units/TEST-60-MOUNT-RATELIMIT.sh
index e800a7a12c2695d1246f7850bb1521dcef9d6009..d205a93a86bf4464d144e906767b79e541548ab4 100755 (executable)
@@ -23,8 +23,8 @@ teardown_test_dependencies() (
         losetup -d "${LOOP_1}" || :
     fi
 
-    rm -f /tmp/testsuite-60-dependencies-0.img
-    rm -f /tmp/testsuite-60-dependencies-1.img
+    rm -f /tmp/TEST-60-MOUNT-RATELIMIT-dependencies-0.img
+    rm -f /tmp/TEST-60-MOUNT-RATELIMIT-dependencies-1.img
 
     rm -f /run/systemd/system/tmp-deptest.mount
     systemctl daemon-reload
@@ -33,13 +33,13 @@ teardown_test_dependencies() (
 )
 
 setup_loop() {
-    truncate -s 30m "/tmp/testsuite-60-dependencies-${1?}.img"
-    sfdisk --wipe=always "/tmp/testsuite-60-dependencies-${1?}.img" <<EOF
+    truncate -s 30m "/tmp/TEST-60-MOUNT-RATELIMIT-dependencies-${1?}.img"
+    sfdisk --wipe=always "/tmp/TEST-60-MOUNT-RATELIMIT-dependencies-${1?}.img" <<EOF
 label:gpt
 
 name="loop${1?}-part1"
 EOF
-    LOOP=$(losetup -P --show -f "/tmp/testsuite-60-dependencies-${1?}.img")
+    LOOP=$(losetup -P --show -f "/tmp/TEST-60-MOUNT-RATELIMIT-dependencies-${1?}.img")
     udevadm wait --settle --timeout=10 "${LOOP}"
     udevadm lock --device="${LOOP}" mkfs.ext4 -L "partname${1?}-1" "${LOOP}p1"
 }
similarity index 81%
rename from test/units/testsuite-62.sh
rename to test/units/TEST-62-RESTRICT-IFACES.sh
index 1fbb3cb1c2285de84f1c3bca00ec3430cb47ad62..35ab862f32173d850f9ddc42465cb29d970e32b1 100755 (executable)
@@ -47,10 +47,10 @@ fi
 trap teardown EXIT
 setup
 
-systemctl start --wait testsuite-62-1.service
-systemctl start --wait testsuite-62-2.service
-systemctl start --wait testsuite-62-3.service
-systemctl start --wait testsuite-62-4.service
-systemctl start --wait testsuite-62-5.service
+systemctl start --wait TEST-62-RESTRICT-IFACES-1.service
+systemctl start --wait TEST-62-RESTRICT-IFACES-2.service
+systemctl start --wait TEST-62-RESTRICT-IFACES-3.service
+systemctl start --wait TEST-62-RESTRICT-IFACES-4.service
+systemctl start --wait TEST-62-RESTRICT-IFACES-5.service
 
 touch /testok
similarity index 83%
rename from test/units/testsuite-54.service
rename to test/units/TEST-64-UDEV-STORAGE.service
index ba8cdad5cb1043380e5ed901803a5ac2a9f24ae2..b7626bbf941daece08a881991249cbbc27d0db99 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
-Description=TESTSUITE-54-CREDS
+Description=TEST-64-UDEV-STORAGE
 
 [Service]
 ExecStartPre=rm -f /failed /testok
similarity index 66%
rename from test/units/testsuite-66-deviceisolation.service
rename to test/units/TEST-66-DEVICE-ISOLATION-device-isolation.service
index 14b0d8987af08bfbfe71dc0cd2ede5181cde0664..85b3d0dcc6f6807410026dfb9217db3aa03224c3 100644 (file)
@@ -5,6 +5,6 @@ Description=Service that uses device isolation
 [Service]
 DevicePolicy=strict
 DeviceAllow=/dev/null r
-StandardOutput=file:/tmp/testsuite66serviceresults
-ExecStartPre=rm -f /tmp/testsuite66serviceresults
+StandardOutput=file:/tmp/TEST-66-DEVICE-ISOLATION.serviceresults
+ExecStartPre=rm -f /tmp/TEST-66-DEVICE-ISOLATION.serviceresults
 ExecStart=bash -c "while true; do sleep 0.01 && echo meow >/dev/null && echo thisshouldnotbehere; done"
similarity index 64%
rename from test/units/testsuite-66.sh
rename to test/units/TEST-66-DEVICE-ISOLATION.sh
index 147335a7af143b0d7985531ecbc6400276af7996..ccdfcb274c1d9a09e74dd9ece99af6ee3ff29a46 100755 (executable)
@@ -3,11 +3,11 @@
 set -eux
 set -o pipefail
 
-RESULTS_FILE=/tmp/testsuite66serviceresults
+RESULTS_FILE=/tmp/TEST-66-DEVICE-ISOLATION.serviceresults
 
 systemd-analyze log-level debug
 
-systemctl start testsuite-66-deviceisolation.service
+systemctl start TEST-66-DEVICE-ISOLATION-device-isolation.service
 
 sleep 5
 grep -q "Operation not permitted" "$RESULTS_FILE"
@@ -15,7 +15,7 @@ grep -q "Operation not permitted" "$RESULTS_FILE"
 systemctl daemon-reload
 systemctl daemon-reexec
 
-systemctl stop testsuite-66-deviceisolation.service
+systemctl stop TEST-66-DEVICE-ISOLATION-device-isolation.service
 
 grep -q "thisshouldnotbehere" "$RESULTS_FILE" && exit 42
 
diff --git a/test/units/TEST-66-DEVICEISOLATION.service b/test/units/TEST-66-DEVICEISOLATION.service
new file mode 100644 (file)
index 0000000..61cd0ab
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+Description=TEST-66-DEVICEISOLATION
+
+[Service]
+ExecStartPre=rm -f /failed /testok
+ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
+Type=oneshot
similarity index 99%
rename from test/units/testsuite-74.coredump.sh
rename to test/units/TEST-74-AUX-UTILS.coredump.sh
index f48607c0db2ce9efcde17b9373ba51e26a537fad..3f3571639e3e30c821d9a19040a97a645a6470ae 100755 (executable)
@@ -79,7 +79,7 @@ timeout 30 bash -c "while [[ \$(coredumpctl list -q --no-legend $CORE_TEST_BIN |
 
 if cgroupfs_supports_user_xattrs; then
     # Make sure we can forward crashes back to containers
-    CONTAINER="testsuite-74-container"
+    CONTAINER="TEST-74-AUX-UTILS-container"
 
     mkdir -p "/var/lib/machines/$CONTAINER"
     mkdir -p "/run/systemd/system/systemd-nspawn@$CONTAINER.service.d"
diff --git a/test/units/TEST-75-RESOLVED.service b/test/units/TEST-75-RESOLVED.service
new file mode 100644 (file)
index 0000000..3368e04
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+Description=TEST-75-RESOLVED
+
+[Service]
+ExecStartPre=rm -f /failed /testok
+ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
+Type=oneshot
similarity index 94%
rename from test/units/testsuite-79.sh
rename to test/units/TEST-79-MEMPRESS.sh
index 205f7f3da327818ea65848515d0f4dd8f0e41a82..4ce73d4c299e2bbc0d6f987d99c495bcdad871f9 100755 (executable)
@@ -15,7 +15,7 @@ fi
 
 systemd-analyze log-level debug
 
-CGROUP=/sys/fs/cgroup/"$(systemctl show testsuite-79.service -P ControlGroup)"
+CGROUP=/sys/fs/cgroup/"$(systemctl show TEST-79-MEMPRESS.service -P ControlGroup)"
 test -d "$CGROUP"
 
 if ! test -f "$CGROUP"/memory.pressure ; then
similarity index 79%
rename from test/units/testsuite-82.sh
rename to test/units/TEST-82-SOFTREBOOT.sh
index 9747602d192cc2b541c38fe0b6cbb9a6ae94802f..7a1d8a9221b0d19b1ffc974933b203771aa763cc 100755 (executable)
@@ -23,13 +23,13 @@ systemd-analyze log-level debug
 
 export SYSTEMD_LOG_LEVEL=debug
 
-if [ -f /run/testsuite82.touch3 ]; then
+if [ -f /run/TEST-82-SOFTREBOOT.touch3 ]; then
     echo "This is the fourth boot!"
     systemd-notify --status="Fourth Boot"
 
     test "$(busctl -j get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager SoftRebootsCount | jq -r '.data')" -eq 3
 
-    rm /run/testsuite82.touch3
+    rm /run/TEST-82-SOFTREBOOT.touch3
     mount
     rmdir /original-root /run/nextroot
 
@@ -39,10 +39,10 @@ if [ -f /run/testsuite82.touch3 ]; then
     test "$x" = "oinkoink"
 
     # Check that the surviving services are still around
-    test "$(systemctl show -P ActiveState testsuite-82-survive.service)" = "active"
-    test "$(systemctl show -P ActiveState testsuite-82-survive-argv.service)" = "active"
-    test "$(systemctl show -P ActiveState testsuite-82-nosurvive-sigterm.service)" != "active"
-    test "$(systemctl show -P ActiveState testsuite-82-nosurvive.service)" != "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-survive.service)" = "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-survive-argv.service)" = "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-nosurvive-sigterm.service)" != "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-nosurvive.service)" != "active"
 
     # Check journals
     journalctl -o short-monotonic --no-hostname --grep '(will soft-reboot|KILL|corrupt)'
@@ -50,13 +50,13 @@ if [ -f /run/testsuite82.touch3 ]; then
 
     # All succeeded, exit cleanly now
 
-elif [ -f /run/testsuite82.touch2 ]; then
+elif [ -f /run/TEST-82-SOFTREBOOT.touch2 ]; then
     echo "This is the third boot!"
     systemd-notify --status="Third Boot"
 
     test "$(busctl -j get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager SoftRebootsCount | jq -r '.data')" -eq 2
 
-    rm /run/testsuite82.touch2
+    rm /run/TEST-82-SOFTREBOOT.touch2
 
     # Check that the fdstore entry still exists
     test "$LISTEN_FDS" -eq 2
@@ -70,10 +70,10 @@ elif [ -f /run/testsuite82.touch2 ]; then
     rm "$T"
 
     # Check that the surviving services are still around
-    test "$(systemctl show -P ActiveState testsuite-82-survive.service)" = "active"
-    test "$(systemctl show -P ActiveState testsuite-82-survive-argv.service)" = "active"
-    test "$(systemctl show -P ActiveState testsuite-82-nosurvive-sigterm.service)" != "active"
-    test "$(systemctl show -P ActiveState testsuite-82-nosurvive.service)" != "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-survive.service)" = "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-survive-argv.service)" = "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-nosurvive-sigterm.service)" != "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-nosurvive.service)" != "active"
 
     # Test that we really are in the new overlayfs root fs
     read -r x </lower
@@ -86,23 +86,23 @@ elif [ -f /run/testsuite82.touch2 ]; then
     mount
 
     # Restart the unit that is not supposed to survive
-    systemd-run --collect --service-type=exec --unit=testsuite-82-nosurvive.service sleep infinity
+    systemd-run --collect --service-type=exec --unit=TEST-82-SOFTREBOOT-nosurvive.service sleep infinity
 
     # Now issue the soft reboot. We should be right back soon.
-    touch /run/testsuite82.touch3
+    touch /run/TEST-82-SOFTREBOOT.touch3
     systemctl --no-block soft-reboot
 
     # Now block until the soft-boot killing spree kills us
     exec sleep infinity
 
-elif [ -f /run/testsuite82.touch ]; then
+elif [ -f /run/TEST-82-SOFTREBOOT.touch ]; then
     echo "This is the second boot!"
     systemd-notify --status="Second Boot"
 
     test "$(busctl -j get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager SoftRebootsCount | jq -r '.data')" -eq 1
 
     # Clean up what we created earlier
-    rm /run/testsuite82.touch
+    rm /run/TEST-82-SOFTREBOOT.touch
 
     # Check that the fdstore entry still exists
     test "$LISTEN_FDS" -eq 1
@@ -110,8 +110,8 @@ elif [ -f /run/testsuite82.touch ]; then
     test "$x" = "wuffwuff"
 
     # Check that we got a PrepareForShutdownWithMetadata signal with the right type
-    cat /run/testsuite82.signal
-    test "$(jq -r '.payload.data[1].type.data' </run/testsuite82.signal)" = "soft-reboot"
+    cat /run/TEST-82-SOFTREBOOT.signal
+    test "$(jq -r '.payload.data[1].type.data' </run/TEST-82-SOFTREBOOT.signal)" = "soft-reboot"
 
     # Check that the system credentials survived the soft reboot.
     test "$(systemd-creds cat --system kernelcmdlinecred)" = "uff"
@@ -123,10 +123,10 @@ elif [ -f /run/testsuite82.touch ]; then
     rm "$T"
 
     # Check that the surviving services are still around
-    test "$(systemctl show -P ActiveState testsuite-82-survive.service)" = "active"
-    test "$(systemctl show -P ActiveState testsuite-82-survive-argv.service)" = "active"
-    test "$(systemctl show -P ActiveState testsuite-82-nosurvive-sigterm.service)" != "active"
-    test "$(systemctl show -P ActiveState testsuite-82-nosurvive.service)" != "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-survive.service)" = "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-survive-argv.service)" = "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-nosurvive-sigterm.service)" != "active"
+    test "$(systemctl show -P ActiveState TEST-82-SOFTREBOOT-nosurvive.service)" != "active"
 
     # This time we test the /run/nextroot/ root switching logic. (We synthesize a new rootfs from the old via overlayfs)
     mkdir -p /run/nextroot /tmp/nextroot-lower /original-root
@@ -147,7 +147,7 @@ elif [ -f /run/testsuite82.touch ]; then
     mount --bind / /run/nextroot/original-root
 
     # Restart the unit that is not supposed to survive
-    systemd-run --collect --service-type=exec --unit=testsuite-82-nosurvive.service sleep infinity
+    systemd-run --collect --service-type=exec --unit=TEST-82-SOFTREBOOT-nosurvive.service sleep infinity
 
     # Now ensure there are no naming clashes and a bunch of transient units all succeed
     for _ in $(seq 1 25); do
@@ -156,7 +156,7 @@ elif [ -f /run/testsuite82.touch ]; then
 
     # Now issue the soft reboot. We should be right back soon. Given /run/nextroot exists, we should
     # automatically do a softreboot instead of normal reboot.
-    touch /run/testsuite82.touch2
+    touch /run/TEST-82-SOFTREBOOT.touch2
     systemctl --no-block reboot
 
     # Now block until the soft-boot killing spree kills us
@@ -194,8 +194,8 @@ EOF
     # This sets DefaultDependencies=no so that they remain running until the very end, and
     # IgnoreOnIsolate=yes so that they aren't stopped via the "testsuite.target" isolation we do on next boot,
     # and will be killed by the final sigterm/sigkill spree.
-    systemd-run --collect --service-type=notify -p DefaultDependencies=no -p IgnoreOnIsolate=yes --unit=testsuite-82-nosurvive-sigterm.service "$survive_sigterm"
-    systemd-run --collect --service-type=exec -p DefaultDependencies=no -p IgnoreOnIsolate=yes --unit=testsuite-82-nosurvive.service sleep infinity
+    systemd-run --collect --service-type=notify -p DefaultDependencies=no -p IgnoreOnIsolate=yes --unit=TEST-82-SOFTREBOOT-nosurvive-sigterm.service "$survive_sigterm"
+    systemd-run --collect --service-type=exec -p DefaultDependencies=no -p IgnoreOnIsolate=yes --unit=TEST-82-SOFTREBOOT-nosurvive.service sleep infinity
 
     # Ensure that the unit doesn't get deactivated by dependencies on the source file. Given it's a verity
     # image that is already open, even if the tmpfs with the image goes away, the file will be pinned by the
@@ -205,7 +205,7 @@ EOF
     # Configure these transient units to survive the soft reboot - they will not conflict with shutdown.target
     # and it will be ignored on the isolate that happens in the next boot. The first will use argv[0][0] =
     # '@', and the second will use SurviveFinalKillSignal=yes. Both should survive.
-    systemd-run --service-type=notify --unit=testsuite-82-survive-argv.service \
+    systemd-run --service-type=notify --unit=TEST-82-SOFTREBOOT-survive-argv.service \
         --property SurviveFinalKillSignal=no \
         --property IgnoreOnIsolate=yes \
         --property DefaultDependencies=no \
@@ -213,7 +213,7 @@ EOF
         --property "Conflicts=reboot.target kexec.target poweroff.target halt.target emergency.target rescue.target" \
         --property "Before=reboot.target kexec.target poweroff.target halt.target emergency.target rescue.target" \
          "$survive_argv"
-    systemd-run --service-type=exec --unit=testsuite-82-survive.service \
+    systemd-run --service-type=exec --unit=TEST-82-SOFTREBOOT-survive.service \
         --property TemporaryFileSystem="/run /tmp /var" \
         --property RootImage=/tmp/minimal_0.raw \
         --property BindReadOnlyPaths=/dev/log \
@@ -229,7 +229,7 @@ EOF
 
     # Check that we can set up an inhibitor, and that busctl monitor sees the
     # PrepareForShutdownWithMetadata signal and that it says 'soft-reboot'.
-    systemd-run --unit busctl.service --service-type=exec --property StandardOutput=file:/run/testsuite82.signal \
+    systemd-run --unit busctl.service --service-type=exec --property StandardOutput=file:/run/TEST-82-SOFTREBOOT.signal \
         busctl monitor --json=pretty --match 'sender=org.freedesktop.login1,path=/org/freedesktop/login1,interface=org.freedesktop.login1.Manager,member=PrepareForShutdownWithMetadata,type=signal'
     systemd-run --unit inhibit.service --service-type=exec \
         systemd-inhibit --what=shutdown --who=test --why=test --mode=delay \
@@ -244,7 +244,7 @@ EOF
     done
 
     # Now issue the soft reboot. We should be right back soon.
-    touch /run/testsuite82.touch
+    touch /run/TEST-82-SOFTREBOOT.touch
     systemctl --no-block --check-inhibitors=yes soft-reboot
 
     # Now block until the soft-boot killing spree kills us
index 0a1611b80aee2e0565cdbadce566a54dbd8c1c55..4cede74d50e3cf2719ff0d6e10967b816d5ac84b 100644 (file)
@@ -107,7 +107,7 @@ run_subtests_with_signals() {
     _show_summary
 }
 
-# Run all subtests (i.e. files named as testsuite-<testid>.<subtest_name>.sh)
+# Run all subtests (i.e. files named as $TESTNAME.<subtest_name>.sh)
 run_subtests() {
     local subtests=("${0%.sh}".*.sh)
     local subtest
diff --git a/test/units/testsuite-23-short-lived.sh b/test/units/testsuite-23-short-lived.sh
deleted file mode 100755 (executable)
index 4a12c7f..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-set -ex
-
-if [ -f /tmp/testsuite-23.counter ] ; then
-    read -r counter < /tmp/testsuite-23.counter
-    counter=$((counter + 1))
-else
-    counter=0
-fi
-
-echo "$counter" >/tmp/testsuite-23.counter
-
-if [ "$counter" -eq 5 ] ; then
-    systemctl kill --kill-whom=main -sUSR1 testsuite-23.service
-fi
-
-exec sleep 1.5
diff --git a/test/units/testsuite-23.JoinsNamespaceOf.sh b/test/units/testsuite-23.JoinsNamespaceOf.sh
deleted file mode 100755 (executable)
index 68ba465..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-
-set -eux
-set -o pipefail
-
-# Test JoinsNamespaceOf= with PrivateTmp=yes
-
-systemd-analyze log-level debug
-systemd-analyze log-target journal
-
-# simple case
-systemctl start testsuite-23-joins-namespace-of-1.service
-systemctl start testsuite-23-joins-namespace-of-2.service
-systemctl start testsuite-23-joins-namespace-of-3.service
-systemctl stop testsuite-23-joins-namespace-of-1.service
-
-# inverse dependency
-systemctl start testsuite-23-joins-namespace-of-4.service
-systemctl start testsuite-23-joins-namespace-of-5.service
-systemctl stop testsuite-23-joins-namespace-of-4.service
-
-# transitive dependency
-systemctl start testsuite-23-joins-namespace-of-6.service
-systemctl start testsuite-23-joins-namespace-of-7.service
-systemctl start testsuite-23-joins-namespace-of-8.service
-systemctl start testsuite-23-joins-namespace-of-9.service
-systemctl stop testsuite-23-joins-namespace-of-6.service
-systemctl stop testsuite-23-joins-namespace-of-8.service
-
-systemd-analyze log-level info
diff --git a/test/units/testsuite-23.Upholds.sh b/test/units/testsuite-23.Upholds.sh
deleted file mode 100755 (executable)
index e62f9c6..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-
-set -eux
-set -o pipefail
-
-# Test OnSuccess= + Uphold= + PropagatesStopTo= + BindsTo=
-
-systemd-analyze log-level debug
-systemd-analyze log-target journal
-
-# Idea is this:
-#    1. we start testsuite-23-success.service
-#    2. which through OnSuccess= starts testsuite-23-fail.service,
-#    3. which through OnFailure= starts testsuite-23-uphold.service,
-#    4. which through Uphold= starts/keeps testsuite-23-short-lived.service running,
-#    5. which will sleep 1s when invoked, and on the 5th invocation send us a SIGUSR1
-#    6. once we got that we finish cleanly
-
-sigusr1=0
-trap sigusr1=1 SIGUSR1
-
-trap -p SIGUSR1
-
-systemctl start testsuite-23-success.service
-
-while [ "$sigusr1" -eq 0 ] ; do
-    sleep .5
-done
-
-systemctl stop testsuite-23-uphold.service
-
-systemctl enable testsuite-23-upheldby-install.service
-
-# Idea is this:
-#    1. we start testsuite-23-retry-uphold.service
-#    2. which through Uphold= starts testsuite-23-retry-upheld.service
-#    3. which through Requires= starts testsuite-23-retry-fail.service
-#    4. which fails as /tmp/testsuite-23-retry-fail does not exist, so testsuite-23-retry-upheld.service
-#       is no longer restarted
-#    5. we create /tmp/testsuite-23-retry-fail
-#    6. now testsuite-23-retry-upheld.service will be restarted since upheld, and its dependency will
-#       be satisfied
-
-rm -f /tmp/testsuite-23-retry-fail
-systemctl start testsuite-23-retry-uphold.service
-systemctl is-active testsuite-23-upheldby-install.service
-
-until systemctl is-failed testsuite-23-retry-fail.service ; do
-    sleep .5
-done
-
-(! systemctl is-active testsuite-23-retry-upheld.service)
-
-touch /tmp/testsuite-23-retry-fail
-
-until systemctl is-active testsuite-23-retry-upheld.service ; do
-    sleep .5
-done
-
-systemctl stop testsuite-23-retry-uphold.service testsuite-23-retry-fail.service testsuite-23-retry-upheld.service
-
-# Idea is this:
-#    1. we start testsuite-23-prop-stop-one.service
-#    2. which through Wants=/After= pulls in testsuite-23-prop-stop-two.service as well
-#    3. testsuite-23-prop-stop-one.service then sleeps indefinitely
-#    4. testsuite-23-prop-stop-two.service sleeps a short time and exits
-#    5. the StopPropagatedFrom= dependency between the two should ensure *both* will exit as result
-#    6. an ExecStopPost= line on testsuite-23-prop-stop-one.service will send us a SIGUSR2
-#    7. once we got that we finish cleanly
-
-sigusr2=0
-trap sigusr2=1 SIGUSR2
-
-systemctl start testsuite-23-prop-stop-one.service
-
-while [ "$sigusr2" -eq 0 ] ; do
-    sleep .5
-done
-
-
-# Idea is this:
-#    1. we start testsuite-23-binds-to.service
-#    2. which through BindsTo=/After= pulls in testsuite-23-bound-by.service as well
-#    3. testsuite-23-bound-by.service suddenly dies
-#    4. testsuite-23-binds-to.service should then also be pulled down (it otherwise just hangs)
-#    6. an ExecStopPost= line on testsuite-23-binds-to.service will send us a SIGRTMIN1+1
-#    7. once we got that we finish cleanly
-
-sigrtmin1=0
-trap sigrtmin1=1 SIGRTMIN+1
-
-systemctl start testsuite-23-binds-to.service
-
-while [ "$sigrtmin1" -eq 0 ] ; do
-    sleep .5
-done
-
-systemd-analyze log-level info
diff --git a/test/units/testsuite-23.runtime-bind-paths.sh b/test/units/testsuite-23.runtime-bind-paths.sh
deleted file mode 100755 (executable)
index 65c2dbf..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-# shellcheck disable=SC2016
-set -eux
-set -o pipefail
-
-# Test adding new BindPaths while unit is already running
-
-at_exit() {
-    set +e
-
-    rm -f /run/testsuite-23-marker-{fixed,runtime}
-    rm -fr /run/inaccessible
-}
-
-trap at_exit EXIT
-
-echo "MARKER_FIXED" >/run/testsuite-23-marker-fixed
-mkdir /run/inaccessible
-
-systemctl start testsuite-23-namespaced.service
-
-# Ensure that inaccessible paths aren't bypassed by the runtime setup,
-(! systemctl bind --mkdir testsuite-23-namespaced.service /run/testsuite-23-marker-fixed /run/inaccessible/testfile-marker-fixed)
-
-echo "MARKER_WRONG" >/run/testsuite-23-marker-wrong
-echo "MARKER_RUNTIME" >/run/testsuite-23-marker-runtime
-
-# Mount twice to exercise mount-beneath (on kernel 6.5+, on older kernels it will just overmount)
-systemctl bind --mkdir testsuite-23-namespaced.service /run/testsuite-23-marker-wrong /tmp/testfile-marker-runtime
-test "$(systemctl show -P SubState testsuite-23-namespaced.service)" = "running"
-systemctl bind --mkdir testsuite-23-namespaced.service /run/testsuite-23-marker-runtime /tmp/testfile-marker-runtime
-
-timeout 10 bash -xec 'while [[ "$(systemctl show -P SubState testsuite-23-namespaced.service)" == running ]]; do sleep .5; done'
-systemctl is-active testsuite-23-namespaced.service
-
-# Now test that systemctl bind fails when attempted on a non-namespaced unit
-systemctl start testsuite-23-non-namespaced.service
-
-(! systemctl bind --mkdir testsuite-49-non-namespaced.service /run/testsuite-23-marker-runtime /tmp/testfile-marker-runtime)
-
-timeout 10 bash -xec 'while [[ "$(systemctl show -P SubState testsuite-23-non-namespaced.service)" == running ]]; do sleep .5; done'
-(! systemctl is-active testsuite-23-non-namespaced.service)
diff --git a/test/units/testsuite-23.start-stop-no-reload.sh b/test/units/testsuite-23.start-stop-no-reload.sh
deleted file mode 100755 (executable)
index e40990b..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
-# ex: ts=8 sw=4 sts=4 et filetype=sh
-set -eux
-set -o pipefail
-
-# Test start & stop operations without daemon-reload
-
-at_exit() {
-    set +e
-
-    rm -f /run/systemd/system/testsuite-23-no-reload.{service,target}
-}
-
-trap at_exit EXIT
-
-cat >/run/systemd/system/testsuite-23-no-reload.target <<EOF
-[Unit]
-Wants=testsuite-23-no-reload.service
-EOF
-
-systemctl daemon-reload
-
-systemctl start testsuite-23-no-reload.target
-
-# The filesystem on the test image, despite being ext4, seems to have a mtime
-# granularity of one second, which means the manager's unit cache won't be
-# marked as dirty when writing the unit file, unless we wait at least a full
-# second after the previous daemon-reload.
-# May 07 23:12:20 H testsuite-48.sh[30]: + cat
-# May 07 23:12:20 H testsuite-48.sh[30]: + ls -l --full-time /etc/systemd/system/testsuite-23-no-reload.service
-# May 07 23:12:20 H testsuite-48.sh[52]: -rw-r--r-- 1 root root 50 2020-05-07 23:12:20.000000000 +0100 /
-# May 07 23:12:20 H testsuite-48.sh[30]: + stat -f --format=%t /etc/systemd/system/testsuite-23-no-reload.servic
-# May 07 23:12:20 H testsuite-48.sh[53]: ef53
-sleep 3.1
-
-cat >/run/systemd/system/testsuite-23-no-reload.service <<EOF
-[Service]
-ExecStart=sleep infinity
-EOF
-
-systemctl start testsuite-23-no-reload.service
-
-systemctl is-active testsuite-23-no-reload.service
-
-# Stop and remove, and try again to exercise https://github.com/systemd/systemd/issues/15992
-systemctl stop testsuite-23-no-reload.service
-rm -f /run/systemd/system/testsuite-23-no-reload.service
-systemctl daemon-reload
-
-sleep 3.1
-
-cat >/run/systemd/system/testsuite-23-no-reload.service <<EOF
-[Service]
-ExecStart=sleep infinity
-EOF
-
-# Start a non-existing unit first, so that the cache is reloaded for an unrelated
-# reason. Starting the existing unit later should still work thanks to the check
-# for the last load attempt vs cache timestamp.
-systemctl start testsuite-23-no-reload-nonexistent.service || true
-
-systemctl start testsuite-23-no-reload.service
-
-systemctl is-active testsuite-23-no-reload.service
-
-# Stop and remove, and try again to exercise the transaction setup code path by
-# having the target pull in the unloaded but available unit
-systemctl stop testsuite-23-no-reload.service testsuite-23-no-reload.target
-rm -f /run/systemd/system/testsuite-23-no-reload.service /run/systemd/system/testsuite-23-no-reload.target
-systemctl daemon-reload
-
-sleep 3.1
-
-cat >/run/systemd/system/testsuite-23-no-reload.target <<EOF
-[Unit]
-Conflicts=shutdown.target
-Wants=testsuite-23-no-reload.service
-EOF
-
-systemctl daemon-reload
-
-systemctl start testsuite-23-no-reload.target
-
-cat >/run/systemd/system/testsuite-23-no-reload.service <<EOF
-[Service]
-ExecStart=sleep infinity
-EOF
-
-systemctl restart testsuite-23-no-reload.target
-
-systemctl is-active testsuite-23-no-reload.service
diff --git a/test/units/testsuite-66.service b/test/units/testsuite-66.service
deleted file mode 100644 (file)
index 7e9dc3b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-[Unit]
-Description=TESTSUITE-66-DEVICEISOLATION
-
-[Service]
-ExecStartPre=rm -f /failed /testok
-ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
-Type=oneshot
diff --git a/test/units/testsuite-75.service b/test/units/testsuite-75.service
deleted file mode 100644 (file)
index 111cde3..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-[Unit]
-Description=Tests for systemd-resolved
-
-[Service]
-ExecStartPre=rm -f /failed /testok
-ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
-Type=oneshot
index cc9d5ec48f6fe3673ad83b918b1acafb74e868c8..f5f6786d0f6fde2aee43463fc6f92600a15e7712 100755 (executable)
@@ -156,13 +156,13 @@ coverage_create_nspawn_dropin() {
 create_dummy_container() {
     local root="${1:?}"
 
-    if [[ ! -d /usr/share/testsuite-13-container-template ]]; then
+    if [[ ! -d /usr/share/TEST-13-NSPAWN-container-template ]]; then
         echo >&2 "Missing container template, probably not running in TEST-13-NSPAWN?"
         exit 1
     fi
 
     mkdir -p "$root"
-    cp -a /usr/share/testsuite-13-container-template/* "$root"
+    cp -a /usr/share/TEST-13-NSPAWN-container-template/* "$root"
     coverage_create_nspawn_dropin "$root"
 }