summaryrefslogtreecommitdiffstats
path: root/test/testsuite-04.units
diff options
context:
space:
mode:
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