mirror of
https://github.com/systemd/systemd.git
synced 2025-08-31 09:49:54 +03:00
test: Generate basic testsuite services with meson
Most of these are identical, let's just generate from a meson template.
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TEST-07-PID1
|
Description=TEST-07-PID1
|
||||||
|
Wants=basic.target multi-user.target
|
||||||
|
After=basic.target
|
||||||
|
Before=getty-pre.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
@ -3,6 +3,7 @@
|
|||||||
integration_tests += [
|
integration_tests += [
|
||||||
integration_test_template + {
|
integration_test_template + {
|
||||||
'name' : fs.name(meson.current_source_dir()),
|
'name' : fs.name(meson.current_source_dir()),
|
||||||
|
'unit' : files('TEST-07-PID1.service'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
Description=TEST-16-EXTEND-TIMEOUT
|
Description=TEST-16-EXTEND-TIMEOUT
|
||||||
# Testsuite: Assess all other testsuite-*.services worked as expected
|
# 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-all.service
|
||||||
Wants=success-start.service
|
Wants=success-start.service
|
||||||
Wants=success-runtime.service
|
Wants=success-runtime.service
|
@ -3,6 +3,7 @@
|
|||||||
integration_tests += [
|
integration_tests += [
|
||||||
integration_test_template + {
|
integration_test_template + {
|
||||||
'name' : fs.name(meson.current_source_dir()),
|
'name' : fs.name(meson.current_source_dir()),
|
||||||
|
'unit' : files('TEST-16-EXTEND-TIMEOUT.service'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3,5 +3,8 @@
|
|||||||
integration_tests += [
|
integration_tests += [
|
||||||
integration_test_template + {
|
integration_test_template + {
|
||||||
'name' : fs.name(meson.current_source_dir()),
|
'name' : fs.name(meson.current_source_dir()),
|
||||||
|
'configuration' : integration_test_template['configuration'] + {
|
||||||
|
'memory-accounting' : 'yes',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TEST-44-LOG-NAMESPACE
|
Description=TEST-44-LOG-NAMESPACE
|
||||||
|
Wants=basic.target multi-user.target systemd-journald@foobar.socket systemd-journald-varlink@foobar.socket
|
||||||
|
After=basic.target systemd-journald@foobar.socket systemd-journald-varlink@foobar.socket
|
||||||
Before=getty-pre.target
|
Before=getty-pre.target
|
||||||
Wants=getty-pre.target
|
|
||||||
Wants=systemd-journald@foobar.socket systemd-journald-varlink@foobar.socket
|
|
||||||
After=systemd-journald@foobar.socket systemd-journald-varlink@foobar.socket
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=rm -f /failed /testok
|
ExecStartPre=rm -f /failed /testok
|
@ -3,5 +3,6 @@
|
|||||||
integration_tests += [
|
integration_tests += [
|
||||||
integration_test_template + {
|
integration_test_template + {
|
||||||
'name' : fs.name(meson.current_source_dir()),
|
'name' : fs.name(meson.current_source_dir()),
|
||||||
|
'unit' : files('TEST-44-LOG-NAMESPACE.service'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TEST-69-SHUTDOWN
|
Description=TEST-69-SHUTDOWN
|
||||||
|
Wants=basic.target multi-user.target
|
||||||
|
After=basic.target
|
||||||
|
Before=getty-pre.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
@ -4,5 +4,6 @@ integration_tests += [
|
|||||||
integration_test_template + {
|
integration_test_template + {
|
||||||
'name' : fs.name(meson.current_source_dir()),
|
'name' : fs.name(meson.current_source_dir()),
|
||||||
'enabled' : false,
|
'enabled' : false,
|
||||||
|
'unit' : files('TEST-69-SHUTDOWN.service'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -3,5 +3,8 @@
|
|||||||
integration_tests += [
|
integration_tests += [
|
||||||
integration_test_template + {
|
integration_test_template + {
|
||||||
'name' : fs.name(meson.current_source_dir()),
|
'name' : fs.name(meson.current_source_dir()),
|
||||||
|
'configuration' : integration_test_template['configuration'] + {
|
||||||
|
'memory-accounting' : 'yes',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=TEST-82-SOFTREBOOT
|
Description=TEST-82-SOFTREBOOT
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
|
Wants=basic.target multi-user.target
|
||||||
After=basic.target
|
After=basic.target
|
||||||
|
Before=getty-pre.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
@ -4,5 +4,6 @@ integration_tests += [
|
|||||||
integration_test_template + {
|
integration_test_template + {
|
||||||
'name' : fs.name(meson.current_source_dir()),
|
'name' : fs.name(meson.current_source_dir()),
|
||||||
'enabled' : false,
|
'enabled' : false,
|
||||||
|
'unit' : files('TEST-82-SOFTREBOOT.service'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -43,6 +43,7 @@ def main():
|
|||||||
parser.add_argument('--meson-source-dir', required=True, type=Path)
|
parser.add_argument('--meson-source-dir', required=True, type=Path)
|
||||||
parser.add_argument('--meson-build-dir', required=True, type=Path)
|
parser.add_argument('--meson-build-dir', required=True, type=Path)
|
||||||
parser.add_argument('--name', required=True)
|
parser.add_argument('--name', required=True)
|
||||||
|
parser.add_argument('--unit', required=True)
|
||||||
parser.add_argument('--storage', required=True)
|
parser.add_argument('--storage', required=True)
|
||||||
parser.add_argument('--firmware', required=True)
|
parser.add_argument('--firmware', required=True)
|
||||||
parser.add_argument('--slow', action=argparse.BooleanOptionalAction)
|
parser.add_argument('--slow', action=argparse.BooleanOptionalAction)
|
||||||
@ -58,13 +59,10 @@ def main():
|
|||||||
exit(77)
|
exit(77)
|
||||||
|
|
||||||
name = args.name + (f"-{i}" if (i := os.getenv("MESON_TEST_ITERATION")) else "")
|
name = args.name + (f"-{i}" if (i := os.getenv("MESON_TEST_ITERATION")) else "")
|
||||||
unit = f"{args.name}.service"
|
|
||||||
|
|
||||||
dropin = textwrap.dedent(
|
dropin = textwrap.dedent(
|
||||||
"""\
|
"""\
|
||||||
[Unit]
|
[Unit]
|
||||||
After=multi-user.target network.target
|
|
||||||
Requires=multi-user.target
|
|
||||||
SuccessAction=exit
|
SuccessAction=exit
|
||||||
SuccessActionExitStatus=123
|
SuccessActionExitStatus=123
|
||||||
|
|
||||||
@ -121,7 +119,7 @@ def main():
|
|||||||
else []
|
else []
|
||||||
),
|
),
|
||||||
'--credential',
|
'--credential',
|
||||||
f"systemd.unit-dropin.{unit}={shlex.quote(dropin)}",
|
f"systemd.unit-dropin.{args.unit}={shlex.quote(dropin)}",
|
||||||
'--runtime-network=none',
|
'--runtime-network=none',
|
||||||
'--runtime-scratch=no',
|
'--runtime-scratch=no',
|
||||||
'--append',
|
'--append',
|
||||||
@ -130,7 +128,7 @@ def main():
|
|||||||
' '.join([
|
' '.join([
|
||||||
'systemd.hostname=H',
|
'systemd.hostname=H',
|
||||||
f"SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/{args.name}.units:/usr/lib/systemd/tests/testdata/units:",
|
f"SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/{args.name}.units:/usr/lib/systemd/tests/testdata/units:",
|
||||||
f"systemd.unit={unit}",
|
f"systemd.unit={args.unit}",
|
||||||
'systemd.mask=systemd-networkd-wait-online.service',
|
'systemd.mask=systemd-networkd-wait-online.service',
|
||||||
*(
|
*(
|
||||||
[
|
[
|
||||||
@ -183,7 +181,7 @@ def main():
|
|||||||
ops += [f"gh run download {id} --name {artifact} -D ci/{artifact}"]
|
ops += [f"gh run download {id} --name {artifact} -D ci/{artifact}"]
|
||||||
journal_file = Path(f"ci/{artifact}/test/journal/{name}.journal")
|
journal_file = Path(f"ci/{artifact}/test/journal/{name}.journal")
|
||||||
|
|
||||||
ops += [f"journalctl --file {journal_file} --no-hostname -o short-monotonic -u {unit} -p info"]
|
ops += [f"journalctl --file {journal_file} --no-hostname -o short-monotonic -u {args.unit} -p info"]
|
||||||
|
|
||||||
print("Test failed, relevant logs can be viewed with: \n\n"
|
print("Test failed, relevant logs can be viewed with: \n\n"
|
||||||
f"{(' && '.join(ops))}\n", file=sys.stderr)
|
f"{(' && '.join(ops))}\n", file=sys.stderr)
|
||||||
|
@ -283,6 +283,10 @@ integration_test_template = {
|
|||||||
'firmware' : 'linux',
|
'firmware' : 'linux',
|
||||||
'slow' : false,
|
'slow' : false,
|
||||||
'enabled' : true,
|
'enabled' : true,
|
||||||
|
'configuration' : {
|
||||||
|
'memory-accounting' : 'no',
|
||||||
|
'command' : testdata_dir / 'units/%N.sh',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
testdata_subdirs = [
|
testdata_subdirs = [
|
||||||
'auxv',
|
'auxv',
|
||||||
@ -376,6 +380,21 @@ foreach integration_test : integration_tests
|
|||||||
'--firmware', integration_test['firmware'],
|
'--firmware', integration_test['firmware'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if 'unit' in integration_test
|
||||||
|
integration_test_unit = integration_test['unit']
|
||||||
|
else
|
||||||
|
integration_test_unit = configure_file(
|
||||||
|
input : 'test.service.in',
|
||||||
|
output : '@0@.service'.format(integration_test['name']),
|
||||||
|
configuration : integration_test['configuration'],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
integration_test_args += ['--unit', fs.name(integration_test_unit)]
|
||||||
|
if install_tests
|
||||||
|
install_data(integration_test_unit, install_dir : testdata_dir / 'units')
|
||||||
|
endif
|
||||||
|
|
||||||
if integration_test['slow']
|
if integration_test['slow']
|
||||||
integration_test_args += ['--slow']
|
integration_test_args += ['--slow']
|
||||||
endif
|
endif
|
||||||
|
@ -147,11 +147,6 @@ if ! [[ "$TESTNAME" =~ ^TEST\-([0-9]+)\-.+$ ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f "$TEST_UNITS_DIR/$TESTNAME.service" ]]; then
|
|
||||||
echo "ERROR: Test '$TESTNAME' is missing its service file '$TEST_UNITS_DIR/$TESTNAME.service" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
BASICTOOLS=(
|
BASICTOOLS=(
|
||||||
awk
|
awk
|
||||||
base64
|
base64
|
||||||
|
12
test/test.service.in
Normal file
12
test/test.service.in
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
[Unit]
|
||||||
|
Description=%N
|
||||||
|
Wants=basic.target network.target tpm2.target multi-user.target user@4711.service
|
||||||
|
After=basic.target network.target tpm2.target user@4711.service
|
||||||
|
Before=getty-pre.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=rm -f /failed /testok
|
||||||
|
ExecStart=@command@
|
||||||
|
Type=oneshot
|
||||||
|
MemoryAccounting=@memory-accounting@
|
@ -1,10 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-01-BASIC
|
|
||||||
After=multi-user.target
|
|
||||||
Wants=systemd-resolved.service systemd-networkd.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-02-UNITTESTS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,9 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-03-JOBS
|
|
||||||
After=multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-04-JOURNAL
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-05-RLIMITS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-06-SELINUX
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,9 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-08-INITRD
|
|
||||||
After=multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,9 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-09-REBOOT
|
|
||||||
After=multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-13-NSPAWN
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-15-DROPIN
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-17-UDEV
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-18-FAILUREACTION
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-19-CGROUP
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,10 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=Fuzz our D-Bus interfaces with dfuzzer
|
|
||||||
After=dbus.service multi-user.target
|
|
||||||
Wants=dbus.service multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /skipped /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,11 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-22-TMPFILES
|
|
||||||
After=systemd-tmpfiles-setup.service
|
|
||||||
Before=getty-pre.target
|
|
||||||
Wants=getty-pre.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-23-UNIT-FILE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,9 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-24-CRYPTSETUP
|
|
||||||
After=multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-25-IMPORT
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-26-SYSTEMCTL
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-29-PORTABLE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-30-ONCLOCKCHANGE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-31-DEVICE-ENUMERATION
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,9 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-32-OOMPOLICY
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
||||||
MemoryAccounting=yes
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-34-DYNAMICUSERMIGRATE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-35-LOGIN
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-36-NUMAPOLICY
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,7 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-38-FREEZER
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,10 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-43-PRIVATEUSER-UNPRIV
|
|
||||||
After=systemd-logind.service user@4711.service
|
|
||||||
Wants=user@4711.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-45-TIMEDATE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,10 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-46-HOMED
|
|
||||||
Wants=getty-pre.target
|
|
||||||
Before=getty-pre.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-50-DISSECT
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,7 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-52-HONORFIRSTSHUTDOWN
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-53-ISSUE-16347
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-54-CREDS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,10 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-55-OOMD
|
|
||||||
After=user@4711.service
|
|
||||||
Wants=user@4711.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /skipped /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,7 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-58-REPART
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,7 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-59-RELOADING-RESTART
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-60-MOUNT-RATELIMIT
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-62-RESTRICT-IFACES
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-63-PATH
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-64-UDEV-STORAGE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-65-ANALYZE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-66-DEVICEISOLATION
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,9 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-67-INTEGRITY
|
|
||||||
After=multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,7 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-68-PROPAGATE-EXIT-STATUS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
@ -1,9 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-70-TPM2
|
|
||||||
Wants=tpm2.target
|
|
||||||
After=tpm2.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-71-HOSTNAME
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-72-SYSUPDATE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-73-LOCALE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-74-AUX-UTILS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-75-RESOLVED
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-76-SYSCTL
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,7 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-78-SIGQUEUE
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-79-MEMPRESS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
MemoryAccounting=1
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-80-NOTIFYACCESS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-81-GENERATORS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,8 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-83-BTRFS
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
@ -1,9 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
||||||
[Unit]
|
|
||||||
Description=TEST-84-STORAGETM
|
|
||||||
After=multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=rm -f /failed /testok
|
|
||||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
|
||||||
Type=oneshot
|
|
Reference in New Issue
Block a user