diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-12 10:50:47 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-14 12:43:28 +0200 |
commit | 348f5017a40a518b041df0ed7071da8d5482ce5c (patch) | |
tree | 45d10213029071fd6e3f7cd1a188a2172b8938a1 /test/TEST-16-EXTEND-TIMEOUT | |
parent | TEST-46-HOMED: Simplify service unit (diff) | |
download | systemd-348f5017a40a518b041df0ed7071da8d5482ce5c.tar.xz systemd-348f5017a40a518b041df0ed7071da8d5482ce5c.zip |
test: Generate basic testsuite services with meson
Most of these are identical, let's just generate from a meson
template.
Diffstat (limited to 'test/TEST-16-EXTEND-TIMEOUT')
-rw-r--r-- | test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service | 24 | ||||
-rw-r--r-- | test/TEST-16-EXTEND-TIMEOUT/meson.build | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service b/test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service new file mode 100644 index 0000000000..9e4675808d --- /dev/null +++ b/test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service @@ -0,0 +1,24 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=TEST-16-EXTEND-TIMEOUT +# Testsuite: Assess all other testsuite-*.services worked as expected + +Wants=basic.target multi-user.target +After=basic.target +Before=getty-pre.target + +Wants=success-all.service +Wants=success-start.service +Wants=success-runtime.service +Wants=success-stop.service +Wants=fail-start.service +Wants=fail-stop.service +Wants=fail-runtime.service +StopWhenUnneeded=yes + +[Service] +ExecStartPre=rm -f /failed /testok +Type=exec +TimeoutStartSec=infinity +ExecStartPre=/usr/lib/systemd/tests/testdata/units/%N.sh +ExecStart=true diff --git a/test/TEST-16-EXTEND-TIMEOUT/meson.build b/test/TEST-16-EXTEND-TIMEOUT/meson.build index 75cf2029f9..15986acfb4 100644 --- a/test/TEST-16-EXTEND-TIMEOUT/meson.build +++ b/test/TEST-16-EXTEND-TIMEOUT/meson.build @@ -3,6 +3,7 @@ integration_tests += [ integration_test_template + { 'name' : fs.name(meson.current_source_dir()), + 'unit' : files('TEST-16-EXTEND-TIMEOUT.service'), }, ] |