diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 03:50:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 03:50:45 +0000 |
commit | efeb864cb547a2cbf96dc0053a8bdb4d9190b364 (patch) | |
tree | c0b83368f18be983fcc763200c4c24d633244588 /test/testsuite-23.units | |
parent | Releasing progress-linux version 255.5-1~progress7.99u1. (diff) | |
download | systemd-efeb864cb547a2cbf96dc0053a8bdb4d9190b364.tar.xz systemd-efeb864cb547a2cbf96dc0053a8bdb4d9190b364.zip |
Merging upstream version 256.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/testsuite-23.units')
25 files changed, 0 insertions, 219 deletions
diff --git a/test/testsuite-23.units/testsuite-23-binds-to.service b/test/testsuite-23.units/testsuite-23-binds-to.service deleted file mode 100644 index 637fea4..0000000 --- a/test/testsuite-23.units/testsuite-23-binds-to.service +++ /dev/null @@ -1,10 +0,0 @@ -# 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 - -[Service] -ExecStart=/bin/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 diff --git a/test/testsuite-23.units/testsuite-23-bound-by.service b/test/testsuite-23.units/testsuite-23-bound-by.service deleted file mode 100644 index a2df5a1..0000000 --- a/test/testsuite-23.units/testsuite-23-bound-by.service +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Unit with BoundBy= - -[Service] -ExecStart=/bin/sleep 0.7 diff --git a/test/testsuite-23.units/testsuite-23-fail.service b/test/testsuite-23.units/testsuite-23-fail.service deleted file mode 100644 index 36f8baa..0000000 --- a/test/testsuite-23.units/testsuite-23-fail.service +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Failing unit -OnFailure=testsuite-23-uphold.service - -[Service] -ExecStart=/bin/false diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-1.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-1.service deleted file mode 100644 index 9919a9f..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-1.service +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Service] -Type=notify -NotifyAccess=all -MountAPIVFS=yes -PrivateTmp=yes -ExecStart=/bin/bash -c 'touch /tmp/shared-private-file && systemd-notify --ready && sleep infinity' diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-2.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-2.service deleted file mode 100644 index 36b4c27..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-2.service +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -JoinsNamespaceOf=testsuite-23-joins-namespace-of-1.service - -[Service] -Type=oneshot -MountAPIVFS=yes -PrivateTmp=yes -ExecStart=test -e /tmp/shared-private-file -ExecStart=touch /tmp/hoge diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-3.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-3.service deleted file mode 100644 index 9094445..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-3.service +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -JoinsNamespaceOf=testsuite-23-joins-namespace-of-1.service - -[Service] -Type=oneshot -MountAPIVFS=yes -PrivateTmp=yes -ExecStart=test -e /tmp/shared-private-file -ExecStart=test -e /tmp/hoge diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-4.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-4.service deleted file mode 100644 index 5e823a1..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-4.service +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -JoinsNamespaceOf=testsuite-23-joins-namespace-of-5.service - -[Service] -Type=notify -NotifyAccess=all -MountAPIVFS=yes -PrivateTmp=yes -ExecStart=/bin/bash -c 'touch /tmp/shared-private-file && systemd-notify --ready && sleep infinity' diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-5.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-5.service deleted file mode 100644 index c3d316b..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-5.service +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Service] -Type=oneshot -MountAPIVFS=yes -PrivateTmp=yes -ExecStart=test -e /tmp/shared-private-file diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-6.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-6.service deleted file mode 100644 index bbbfd7c..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-6.service +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -JoinsNamespaceOf=testsuite-23-joins-namespace-of-8.service - -[Service] -Type=notify -NotifyAccess=all -MountAPIVFS=yes -PrivateTmp=yes -ExecStart=/bin/bash -c 'touch /tmp/shared-private-file-x && systemd-notify --ready && sleep infinity' diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-7.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-7.service deleted file mode 100644 index 60c083a..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-7.service +++ /dev/null @@ -1,11 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -JoinsNamespaceOf=testsuite-23-joins-namespace-of-8.service - -[Service] -Type=oneshot -MountAPIVFS=yes -PrivateTmp=yes -ExecStart=test -e /tmp/shared-private-file-x -ExecStart=test ! -e /tmp/shared-private-file-y -ExecStart=touch /tmp/hoge diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-8.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-8.service deleted file mode 100644 index dac1cea..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-8.service +++ /dev/null @@ -1,9 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Service] -Type=notify -NotifyAccess=all -MountAPIVFS=yes -PrivateTmp=yes -ExecStartPre=test -e /tmp/shared-private-file-x -ExecStartPre=test -e /tmp/hoge -ExecStart=/bin/bash -c 'touch /tmp/shared-private-file-y && systemd-notify --ready && sleep infinity' diff --git a/test/testsuite-23.units/testsuite-23-joins-namespace-of-9.service b/test/testsuite-23.units/testsuite-23-joins-namespace-of-9.service deleted file mode 100644 index 6c64873..0000000 --- a/test/testsuite-23.units/testsuite-23-joins-namespace-of-9.service +++ /dev/null @@ -1,11 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -JoinsNamespaceOf=testsuite-23-joins-namespace-of-8.service - -[Service] -Type=oneshot -MountAPIVFS=yes -PrivateTmp=yes -ExecStart=test -e /tmp/shared-private-file-x -ExecStart=test -e /tmp/shared-private-file-y -ExecStart=test -e /tmp/hoge diff --git a/test/testsuite-23.units/testsuite-23-namespaced.service b/test/testsuite-23.units/testsuite-23-namespaced.service deleted file mode 100644 index 5a6f5cd..0000000 --- a/test/testsuite-23.units/testsuite-23-namespaced.service +++ /dev/null @@ -1,13 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Service] -RuntimeMaxSec=300 -# Adding a new mounts at runtime works if the unit is in the active state, -# so use Type=notify to make sure there's no race condition in the test -Type=notify -RemainAfterExit=yes -MountAPIVFS=yes -PrivateTmp=yes -BindPaths=/run/testsuite-23-marker-fixed:/tmp/testfile-marker-fixed -InaccessiblePaths=/run/inaccessible -ExecStartPre=grep -q -F MARKER_FIXED /tmp/testfile-marker-fixed -ExecStart=/bin/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/testsuite-23.units/testsuite-23-non-namespaced.service b/test/testsuite-23.units/testsuite-23-non-namespaced.service deleted file mode 100644 index 6f93c3b..0000000 --- a/test/testsuite-23.units/testsuite-23-non-namespaced.service +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Service] -RuntimeMaxSec=5 -Type=notify -RemainAfterExit=yes -ExecStart=/bin/sh -c 'systemd-notify --ready; until grep -q -F MARKER_RUNTIME /tmp/testfile-marker-runtime; do sleep 0.1; done; exit 0' 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 index f068daf..0000000 --- a/test/testsuite-23.units/testsuite-23-prop-stop-one.service +++ /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=/bin/sleep infinity -ExecStopPost=systemctl kill --kill-whom=main -sUSR2 testsuite-23.service diff --git a/test/testsuite-23.units/testsuite-23-prop-stop-two.service b/test/testsuite-23.units/testsuite-23-prop-stop-two.service deleted file mode 100644 index 2bcd209..0000000 --- a/test/testsuite-23.units/testsuite-23-prop-stop-two.service +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Stop Propagation Sender - -[Service] -ExecStart=/bin/sleep 1.5 diff --git a/test/testsuite-23.units/testsuite-23-retry-fail.service b/test/testsuite-23.units/testsuite-23-retry-fail.service deleted file mode 100644 index 0fc27c4..0000000 --- a/test/testsuite-23.units/testsuite-23-retry-fail.service +++ /dev/null @@ -1,9 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Failed Dependency Unit - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=/bin/sh -c "if [ -f /tmp/testsuite-23-retry-fail ]; then exit 0; else exit 1; fi" -Restart=no diff --git a/test/testsuite-23.units/testsuite-23-retry-upheld.service b/test/testsuite-23.units/testsuite-23-retry-upheld.service deleted file mode 100644 index 0426d76..0000000 --- a/test/testsuite-23.units/testsuite-23-retry-upheld.service +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Upheld Unit -Requires=testsuite-23-retry-fail.service -After=testsuite-23-retry-fail.service - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=/bin/echo ok diff --git a/test/testsuite-23.units/testsuite-23-retry-uphold.service b/test/testsuite-23.units/testsuite-23-retry-uphold.service deleted file mode 100644 index f35e842..0000000 --- a/test/testsuite-23.units/testsuite-23-retry-uphold.service +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Upholding Unit -Upholds=testsuite-23-retry-upheld.service - -[Service] -ExecStart=/bin/sleep infinity diff --git a/test/testsuite-23.units/testsuite-23-short-lived.service b/test/testsuite-23.units/testsuite-23-short-lived.service deleted file mode 100644 index 2dcb2ae..0000000 --- a/test/testsuite-23.units/testsuite-23-short-lived.service +++ /dev/null @@ -1,11 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Shortlived Unit -StopWhenUnneeded=yes - -# Bump up the start limit logic, so that we can be restarted frequently enough -StartLimitBurst=15 -StartLimitIntervalSec=1h - -[Service] -ExecStart=/usr/lib/systemd/tests/testdata/units/testsuite-23-short-lived.sh diff --git a/test/testsuite-23.units/testsuite-23-specifier-j-depends-wants.service b/test/testsuite-23.units/testsuite-23-specifier-j-depends-wants.service deleted file mode 100644 index c45edd9..0000000 --- a/test/testsuite-23.units/testsuite-23-specifier-j-depends-wants.service +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Dependent service for percent-j specifier - -[Service] -Type=oneshot -ExecStart=touch /tmp/test-specifier-j-wants diff --git a/test/testsuite-23.units/testsuite-23-specifier-j-wants.service b/test/testsuite-23.units/testsuite-23-specifier-j-wants.service deleted file mode 100644 index 9abb257..0000000 --- a/test/testsuite-23.units/testsuite-23-specifier-j-wants.service +++ /dev/null @@ -1,10 +0,0 @@ -# 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 - -[Service] -Type=oneshot -ExecStart=test -f /tmp/test-specifier-j-%j -ExecStart=touch /tmp/tetsuite-23-specifier-j-done diff --git a/test/testsuite-23.units/testsuite-23-success.service b/test/testsuite-23.units/testsuite-23-success.service deleted file mode 100644 index 410d4f8..0000000 --- a/test/testsuite-23.units/testsuite-23-success.service +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Succeeding unit -OnSuccess=testsuite-23-fail.service - -[Service] -ExecStart=/bin/true diff --git a/test/testsuite-23.units/testsuite-23-upheldby-install.service b/test/testsuite-23.units/testsuite-23-upheldby-install.service deleted file mode 100644 index a456207..0000000 --- a/test/testsuite-23.units/testsuite-23-upheldby-install.service +++ /dev/null @@ -1,9 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Unit that sets UpheldBy= through [Install] - -[Service] -ExecStart=/bin/sleep infinity - -[Install] -UpheldBy=testsuite-23-retry-uphold.service diff --git a/test/testsuite-23.units/testsuite-23-uphold.service b/test/testsuite-23.units/testsuite-23-uphold.service deleted file mode 100644 index 3549d6a..0000000 --- a/test/testsuite-23.units/testsuite-23-uphold.service +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=Upholding Unit -Upholds=testsuite-23-short-lived.service - -[Service] -ExecStart=/bin/sleep infinity |