diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-05-10 13:58:13 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-05-10 21:26:26 +0200 |
commit | 51b6dbf75ad48a816e6a1503fd5d7c4b9ba2b1d6 (patch) | |
tree | cdcee3d3c4a8ca72ad99d42cbb356c808bb342c7 /test/units/testsuite-12.sh | |
parent | test: merge TEST-11-ISSUE-3166 into TEST-07-PID1 (diff) | |
download | systemd-51b6dbf75ad48a816e6a1503fd5d7c4b9ba2b1d6.tar.xz systemd-51b6dbf75ad48a816e6a1503fd5d7c4b9ba2b1d6.zip |
test: merge TEST-12-ISSUE-3171 into TEST-07-PID1
Diffstat (limited to '')
-rwxr-xr-x | test/units/testsuite-12.sh | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/test/units/testsuite-12.sh b/test/units/testsuite-12.sh deleted file mode 100755 index 8c22a8b031..0000000000 --- a/test/units/testsuite-12.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash -# SPDX-License-Identifier: LGPL-2.1-or-later -set -eux -set -o pipefail - -echo "g adm - - -" | systemd-sysusers - - -U=/run/systemd/system/test12.socket -cat >$U <<EOF -[Unit] -Description=Test 12 socket -[Socket] -Accept=yes -ListenStream=/run/test12.socket -SocketGroup=adm -SocketMode=0660 -EOF - -cat >/run/systemd/system/test12@.service <<EOF -[Unit] -Description=Test service -[Service] -StandardInput=socket -ExecStart=/bin/sh -x -c cat -EOF - -systemctl start test12.socket -systemctl is-active test12.socket -[[ "$(stat --format='%G' /run/test12.socket)" == adm ]] -echo A | nc -w1 -U /run/test12.socket - -mv $U ${U}.disabled -systemctl daemon-reload -systemctl is-active test12.socket -[[ "$(stat --format='%G' /run/test12.socket)" == adm ]] -echo B | nc -w1 -U /run/test12.socket && exit 1 - -mv ${U}.disabled $U -systemctl daemon-reload -systemctl is-active test12.socket -echo C | nc -w1 -U /run/test12.socket && exit 1 -[[ "$(stat --format='%G' /run/test12.socket)" == adm ]] - -systemctl restart test12.socket -systemctl is-active test12.socket -echo D | nc -w1 -U /run/test12.socket -[[ "$(stat --format='%G' /run/test12.socket)" == adm ]] - -touch /testok |