summaryrefslogtreecommitdiffstats
path: root/test/testsuite-04.units
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
commit55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch)
tree33f869f55a1b149e9b7c2b7e201867ca5dd52992 /test/testsuite-04.units
parentInitial commit. (diff)
downloadsystemd-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-04.units')
-rw-r--r--test/testsuite-04.units/delegated-cgroup-filtering.service8
-rw-r--r--test/testsuite-04.units/forever-print-hola.service7
-rw-r--r--test/testsuite-04.units/logs-filtering.service6
-rw-r--r--test/testsuite-04.units/silent-success.service7
4 files changed, 28 insertions, 0 deletions
diff --git a/test/testsuite-04.units/delegated-cgroup-filtering.service b/test/testsuite-04.units/delegated-cgroup-filtering.service
new file mode 100644
index 0000000..2c4201a
--- /dev/null
+++ b/test/testsuite-04.units/delegated-cgroup-filtering.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Test service for delegated logs filtering
+
+[Service]
+Type=simple
+ExecStart=/usr/lib/systemd/tests/testdata/units/delegated_cgroup_filtering_payload.sh
+Delegate=yes
+SyslogLevel=notice
diff --git a/test/testsuite-04.units/forever-print-hola.service b/test/testsuite-04.units/forever-print-hola.service
new file mode 100644
index 0000000..9273d6d
--- /dev/null
+++ b/test/testsuite-04.units/forever-print-hola.service
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+Description=ForeverPrintHola service
+
+[Service]
+Type=exec
+ExecStart=sh -x -c 'while :; do printf "Hola\n" || touch /tmp/i-lose-my-logs; sleep 1; done'
diff --git a/test/testsuite-04.units/logs-filtering.service b/test/testsuite-04.units/logs-filtering.service
new file mode 100644
index 0000000..6e2af9a
--- /dev/null
+++ b/test/testsuite-04.units/logs-filtering.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Log filtering unit
+
+[Service]
+ExecStart=sh -c 'while true; do echo "Logging from the service, and ~more~ foo bar"; sleep .25; done'
+SyslogLevel=notice
diff --git a/test/testsuite-04.units/silent-success.service b/test/testsuite-04.units/silent-success.service
new file mode 100644
index 0000000..3d83f87
--- /dev/null
+++ b/test/testsuite-04.units/silent-success.service
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+Description=Silent successful service
+
+[Service]
+LogLevelMax=notice
+ExecStart=/bin/true