diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:49:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:49:52 +0000 |
commit | 55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch) | |
tree | 33f869f55a1b149e9b7c2b7e201867ca5dd52992 /test/testsuite-07.units | |
parent | Initial commit. (diff) | |
download | systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.tar.xz systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.zip |
Adding upstream version 255.4.upstream/255.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/testsuite-07.units')
-rw-r--r-- | test/testsuite-07.units/issue14566-repro.service | 8 | ||||
-rwxr-xr-x | test/testsuite-07.units/issue14566-repro.sh | 6 | ||||
-rw-r--r-- | test/testsuite-07.units/issue16115-repro-1.service | 10 | ||||
-rw-r--r-- | test/testsuite-07.units/issue16115-repro-2.service | 10 | ||||
-rw-r--r-- | test/testsuite-07.units/issue16115-repro-3.service | 10 | ||||
-rw-r--r-- | test/testsuite-07.units/issue2467.service | 10 | ||||
-rw-r--r-- | test/testsuite-07.units/issue2467.socket | 3 | ||||
-rw-r--r-- | test/testsuite-07.units/issue27953.service | 7 | ||||
-rw-r--r-- | test/testsuite-07.units/issue3166-fail-on-restart.service | 10 |
9 files changed, 74 insertions, 0 deletions
diff --git a/test/testsuite-07.units/issue14566-repro.service b/test/testsuite-07.units/issue14566-repro.service new file mode 100644 index 0000000..5680596 --- /dev/null +++ b/test/testsuite-07.units/issue14566-repro.service @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Issue 14566 Repro + +[Service] +ExecStart=/usr/lib/systemd/tests/testdata/testsuite-07.units/%N.sh +ExecStopPost=/bin/true +KillMode=mixed diff --git a/test/testsuite-07.units/issue14566-repro.sh b/test/testsuite-07.units/issue14566-repro.sh new file mode 100755 index 0000000..74fa760 --- /dev/null +++ b/test/testsuite-07.units/issue14566-repro.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later + +sleep infinity & +echo $! >/leakedtestpid +wait $! diff --git a/test/testsuite-07.units/issue16115-repro-1.service b/test/testsuite-07.units/issue16115-repro-1.service new file mode 100644 index 0000000..90252b3 --- /dev/null +++ b/test/testsuite-07.units/issue16115-repro-1.service @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Issue 16115 Repro with on-abnormal + +[Service] +Type=simple +Restart=on-abnormal +ExecCondition=/bin/false +ExecStart=sleep 100 +RestartSec=1 diff --git a/test/testsuite-07.units/issue16115-repro-2.service b/test/testsuite-07.units/issue16115-repro-2.service new file mode 100644 index 0000000..7c65691 --- /dev/null +++ b/test/testsuite-07.units/issue16115-repro-2.service @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Issue 16115 Repro with on-failure + +[Service] +Type=simple +Restart=on-failure +ExecCondition=/bin/false +ExecStart=sleep 100 +RestartSec=1 diff --git a/test/testsuite-07.units/issue16115-repro-3.service b/test/testsuite-07.units/issue16115-repro-3.service new file mode 100644 index 0000000..c68f93d --- /dev/null +++ b/test/testsuite-07.units/issue16115-repro-3.service @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Issue 22257 Repro with Restart=always + +[Service] +Type=simple +Restart=always +ExecCondition=/bin/false +ExecStart=sleep 100 +RestartSec=1 diff --git a/test/testsuite-07.units/issue2467.service b/test/testsuite-07.units/issue2467.service new file mode 100644 index 0000000..99d886f --- /dev/null +++ b/test/testsuite-07.units/issue2467.service @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Requires=issue2467.socket +ConditionPathExistsGlob=/tmp/nonexistent +# Make sure we hit the socket trigger limit in the test and not the service start limit. +StartLimitInterval=1000 +StartLimitBurst=1000 + +[Service] +ExecStart=true diff --git a/test/testsuite-07.units/issue2467.socket b/test/testsuite-07.units/issue2467.socket new file mode 100644 index 0000000..af1317b --- /dev/null +++ b/test/testsuite-07.units/issue2467.socket @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Socket] +ListenStream=/run/test.ctl diff --git a/test/testsuite-07.units/issue27953.service b/test/testsuite-07.units/issue27953.service new file mode 100644 index 0000000..f441067 --- /dev/null +++ b/test/testsuite-07.units/issue27953.service @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=This unit should not remain active once the shell process exits + +[Service] +Type=oneshot +ExecStart=sh -c 'sleep infinity & exit 0' diff --git a/test/testsuite-07.units/issue3166-fail-on-restart.service b/test/testsuite-07.units/issue3166-fail-on-restart.service new file mode 100644 index 0000000..b8695d8 --- /dev/null +++ b/test/testsuite-07.units/issue3166-fail-on-restart.service @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Fail on restart +StartLimitIntervalSec=1m +StartLimitBurst=3 + +[Service] +Type=exec +ExecStart=false +Restart=always |