summaryrefslogtreecommitdiffstats
path: root/test/testsuite-23.units
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-04-10 13:04:50 +0200
committerMike Yuan <me@yhndnzj.com>2024-04-10 15:49:28 +0200
commit48c21790baffce5bbc67168b84fbab4140300a80 (patch)
tree06a42aa54e8855e55449335908a6b906adcd06c3 /test/testsuite-23.units
parentshared/open-file: use xescape to escape ':' (diff)
downloadsystemd-48c21790baffce5bbc67168b84fbab4140300a80.tar.xz
systemd-48c21790baffce5bbc67168b84fbab4140300a80.zip
test: merge TEST-77-OPENFILE into TEST-23-UNIT-FILE
And add coverage for #32179
Diffstat (limited to 'test/testsuite-23.units')
-rw-r--r--test/testsuite-23.units/testsuite-23-openfile-server.socket6
-rw-r--r--test/testsuite-23.units/testsuite-23-openfile-server@.service7
2 files changed, 13 insertions, 0 deletions
diff --git a/test/testsuite-23.units/testsuite-23-openfile-server.socket b/test/testsuite-23.units/testsuite-23-openfile-server.socket
new file mode 100644
index 0000000000..c8f759584a
--- /dev/null
+++ b/test/testsuite-23.units/testsuite-23-openfile-server.socket
@@ -0,0 +1,6 @@
+[Unit]
+Description=OpenFile= test server socket
+
+[Socket]
+ListenStream=/tmp/test.sock
+Accept=yes
diff --git a/test/testsuite-23.units/testsuite-23-openfile-server@.service b/test/testsuite-23.units/testsuite-23-openfile-server@.service
new file mode 100644
index 0000000000..a57c804c43
--- /dev/null
+++ b/test/testsuite-23.units/testsuite-23-openfile-server@.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=OpenFile= test server service
+
+[Service]
+ExecStart=echo "Socket"
+StandardInput=socket
+StandardOutput=socket