]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Generate basic testsuite services with meson
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 12 May 2024 08:50:47 +0000 (10:50 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 May 2024 10:43:28 +0000 (12:43 +0200)
Most of these are identical, let's just generate from a meson
template.

74 files changed:
test/TEST-07-PID1/TEST-07-PID1.service [moved from test/units/TEST-07-PID1.service with 80% similarity]
test/TEST-07-PID1/meson.build
test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service [moved from test/units/TEST-16-EXTEND-TIMEOUT.service with 86% similarity]
test/TEST-16-EXTEND-TIMEOUT/meson.build
test/TEST-32-OOMPOLICY/meson.build
test/TEST-44-LOG-NAMESPACE/TEST-44-LOG-NAMESPACE.service [moved from test/units/TEST-44-LOG-NAMESPACE.service with 53% similarity]
test/TEST-44-LOG-NAMESPACE/meson.build
test/TEST-69-SHUTDOWN/TEST-69-SHUTDOWN.service [moved from test/units/TEST-69-SHUTDOWN.service with 60% similarity]
test/TEST-69-SHUTDOWN/meson.build
test/TEST-79-MEMPRESS/meson.build
test/TEST-82-SOFTREBOOT/TEST-82-SOFTREBOOT.service [moved from test/units/TEST-82-SOFTREBOOT.service with 80% similarity]
test/TEST-82-SOFTREBOOT/meson.build
test/integration-test-wrapper.py
test/meson.build
test/test-functions
test/test.service.in [new file with mode: 0644]
test/units/TEST-01-BASIC.service [deleted file]
test/units/TEST-02-UNITTESTS.service [deleted file]
test/units/TEST-03-JOBS.service [deleted file]
test/units/TEST-04-JOURNAL.service [deleted file]
test/units/TEST-05-RLIMITS.service [deleted file]
test/units/TEST-06-SELINUX.service [deleted file]
test/units/TEST-08-INITRD.service [deleted file]
test/units/TEST-09-REBOOT.service [deleted file]
test/units/TEST-13-NSPAWN.service [deleted file]
test/units/TEST-15-DROPIN.service [deleted file]
test/units/TEST-17-UDEV.service [deleted file]
test/units/TEST-18-FAILUREACTION.service [deleted file]
test/units/TEST-19-CGROUP.service [deleted file]
test/units/TEST-21-DFUZZERE.service [deleted file]
test/units/TEST-22-TMPFILES.service [deleted file]
test/units/TEST-23-UNIT-FILE.service [deleted file]
test/units/TEST-24-CRYPTSETUP.service [deleted file]
test/units/TEST-25-IMPORT.service [deleted file]
test/units/TEST-26-SYSTEMCTL.service [deleted file]
test/units/TEST-29-PORTABLE.service [deleted file]
test/units/TEST-30-ONCLOCKCHANGE.service [deleted file]
test/units/TEST-31-DEVICE-ENUMERATION.service [deleted file]
test/units/TEST-32-OOMPOLICY.service [deleted file]
test/units/TEST-34-DYNAMICUSERMIGRATE.service [deleted file]
test/units/TEST-35-LOGIN.service [deleted file]
test/units/TEST-36-NUMAPOLICY.service [deleted file]
test/units/TEST-38-FREEZER.service [deleted file]
test/units/TEST-43-PRIVATEUSER-UNPRIV.service [deleted file]
test/units/TEST-45-TIMEDATE.service [deleted file]
test/units/TEST-46-HOMED.service [deleted file]
test/units/TEST-50-DISSECT.service [deleted file]
test/units/TEST-52-HONORFIRSTSHUTDOWN.service [deleted file]
test/units/TEST-53-ISSUE-16347.service [deleted file]
test/units/TEST-54-CREDS.service [deleted file]
test/units/TEST-55-OOMD.service [deleted file]
test/units/TEST-58-REPART.service [deleted file]
test/units/TEST-59-RELOADING-RESTART.service [deleted file]
test/units/TEST-60-MOUNT-RATELIMIT.service [deleted file]
test/units/TEST-62-RESTRICT-IFACES.service [deleted file]
test/units/TEST-63-PATH.service [deleted file]
test/units/TEST-64-UDEV-STORAGE.service [deleted file]
test/units/TEST-65-ANALYZE.service [deleted file]
test/units/TEST-66-DEVICEISOLATION.service [deleted file]
test/units/TEST-67-INTEGRITY.service [deleted file]
test/units/TEST-68-PROPAGATE-EXIT-STATUS.service [deleted file]
test/units/TEST-70-TPM2.service [deleted file]
test/units/TEST-71-HOSTNAME.service [deleted file]
test/units/TEST-72-SYSUPDATE.service [deleted file]
test/units/TEST-73-LOCALE.service [deleted file]
test/units/TEST-74-AUX-UTILS.service [deleted file]
test/units/TEST-75-RESOLVED.service [deleted file]
test/units/TEST-76-SYSCTL.service [deleted file]
test/units/TEST-78-SIGQUEUE.service [deleted file]
test/units/TEST-79-MEMPRESS.service [deleted file]
test/units/TEST-80-NOTIFYACCESS.service [deleted file]
test/units/TEST-81-GENERATORS.service [deleted file]
test/units/TEST-83-BTRFS.service [deleted file]
test/units/TEST-84-STORAGETM.service [deleted file]

similarity index 80%
rename from test/units/TEST-07-PID1.service
rename to test/TEST-07-PID1/TEST-07-PID1.service
index 92302bfabb0183eb10a9d938d3acabcd0719f86f..53dd54cc4578a27c3acb450117aaa55a715ce885 100644 (file)
@@ -1,6 +1,9 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=TEST-07-PID1
+Wants=basic.target multi-user.target
+After=basic.target
+Before=getty-pre.target
 
 [Service]
 Type=oneshot
index 76ed3e75814f50573aac9b8bfa8d65c898556f76..311860dc89f59bb868662ca53067a5bb1c1c77f6 100644 (file)
@@ -3,6 +3,7 @@
 integration_tests += [
         integration_test_template + {
                 'name' : fs.name(meson.current_source_dir()),
+                'unit' : files('TEST-07-PID1.service'),
         },
 ]
 
similarity index 86%
rename from test/units/TEST-16-EXTEND-TIMEOUT.service
rename to test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service
index d5494ae9310dad113591550274c74cf66ea33519..9e4675808d43dadcc87f04ba752b401580b8a0e2 100644 (file)
@@ -3,6 +3,10 @@
 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
index 75cf2029f98190d47b23c8435189c4eb24e2eee8..15986acfb45bb56752327219116b4fc02899f91b 100644 (file)
@@ -3,6 +3,7 @@
 integration_tests += [
         integration_test_template + {
                 'name' : fs.name(meson.current_source_dir()),
+                'unit' : files('TEST-16-EXTEND-TIMEOUT.service'),
         },
 ]
 
index 8dec5f37e73a80d31833a772fa16883b02a07615..2b832a8f6d3c12ea778acb93b44232a4e7386f67 100644 (file)
@@ -3,5 +3,8 @@
 integration_tests += [
         integration_test_template + {
                 'name' : fs.name(meson.current_source_dir()),
+                'configuration' : integration_test_template['configuration'] + {
+                        'memory-accounting' : 'yes',
+                },
         },
 ]
similarity index 53%
rename from test/units/TEST-44-LOG-NAMESPACE.service
rename to test/TEST-44-LOG-NAMESPACE/TEST-44-LOG-NAMESPACE.service
index 6189d3afa0bfb65f088a0525fa6cdad54ba393f5..1b1dd984180ac800755670b323587f0d6655e09b 100644 (file)
@@ -1,10 +1,9 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 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
-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]
 ExecStartPre=rm -f /failed /testok
index 8dec5f37e73a80d31833a772fa16883b02a07615..555ba7befdfd803fa3729604d2160256ebe7c864 100644 (file)
@@ -3,5 +3,6 @@
 integration_tests += [
         integration_test_template + {
                 'name' : fs.name(meson.current_source_dir()),
+                'unit' : files('TEST-44-LOG-NAMESPACE.service'),
         },
 ]
similarity index 60%
rename from test/units/TEST-69-SHUTDOWN.service
rename to test/TEST-69-SHUTDOWN/TEST-69-SHUTDOWN.service
index 3910369c0ffd91cb3fccac026be26329caa31c80..5ff28426981f7a13135a3bdb9e3b1e5a548fca16 100644 (file)
@@ -1,6 +1,9 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=TEST-69-SHUTDOWN
+Wants=basic.target multi-user.target
+After=basic.target
+Before=getty-pre.target
 
 [Service]
 Type=oneshot
index d53dbe562c5bc84ce37286a9d2b3536d48ecb428..ab4a38b13e142f9992a6620cb875266c957d86fa 100644 (file)
@@ -4,5 +4,6 @@ integration_tests += [
         integration_test_template + {
                 'name' : fs.name(meson.current_source_dir()),
                 'enabled' : false,
+                'unit' : files('TEST-69-SHUTDOWN.service'),
         },
 ]
index 8dec5f37e73a80d31833a772fa16883b02a07615..2b832a8f6d3c12ea778acb93b44232a4e7386f67 100644 (file)
@@ -3,5 +3,8 @@
 integration_tests += [
         integration_test_template + {
                 'name' : fs.name(meson.current_source_dir()),
+                'configuration' : integration_test_template['configuration'] + {
+                        'memory-accounting' : 'yes',
+                },
         },
 ]
similarity index 80%
rename from test/units/TEST-82-SOFTREBOOT.service
rename to test/TEST-82-SOFTREBOOT/TEST-82-SOFTREBOOT.service
index a8fc4f9cc738bb73c80216cdef7b4ab73f5c1423..f3892a77770bc79b1567145665cc5cd77c026373 100644 (file)
@@ -2,7 +2,9 @@
 [Unit]
 Description=TEST-82-SOFTREBOOT
 DefaultDependencies=no
+Wants=basic.target multi-user.target
 After=basic.target
+Before=getty-pre.target
 
 [Service]
 Type=oneshot
index d53dbe562c5bc84ce37286a9d2b3536d48ecb428..575ada98512819bccab8baebda85661347009fcf 100644 (file)
@@ -4,5 +4,6 @@ integration_tests += [
         integration_test_template + {
                 'name' : fs.name(meson.current_source_dir()),
                 'enabled' : false,
+                'unit' : files('TEST-82-SOFTREBOOT.service'),
         },
 ]
index c762cc7ab735bbf1e21ed758f30336904148e503..14afc0f9c5f144a2d6107feb4092950edb9955bc 100755 (executable)
@@ -43,6 +43,7 @@ def main():
     parser.add_argument('--meson-source-dir', required=True, type=Path)
     parser.add_argument('--meson-build-dir', required=True, type=Path)
     parser.add_argument('--name', required=True)
+    parser.add_argument('--unit', required=True)
     parser.add_argument('--storage', required=True)
     parser.add_argument('--firmware', required=True)
     parser.add_argument('--slow', action=argparse.BooleanOptionalAction)
@@ -58,13 +59,10 @@ def main():
         exit(77)
 
     name = args.name + (f"-{i}" if (i := os.getenv("MESON_TEST_ITERATION")) else "")
-    unit = f"{args.name}.service"
 
     dropin = textwrap.dedent(
         """\
         [Unit]
-        After=multi-user.target network.target
-        Requires=multi-user.target
         SuccessAction=exit
         SuccessActionExitStatus=123
 
@@ -121,7 +119,7 @@ def main():
             else []
         ),
         '--credential',
-        f"systemd.unit-dropin.{unit}={shlex.quote(dropin)}",
+        f"systemd.unit-dropin.{args.unit}={shlex.quote(dropin)}",
         '--runtime-network=none',
         '--runtime-scratch=no',
         '--append',
@@ -130,7 +128,7 @@ def main():
         ' '.join([
             'systemd.hostname=H',
             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',
             *(
                 [
@@ -183,7 +181,7 @@ def main():
             ops += [f"gh run download {id} --name {artifact} -D ci/{artifact}"]
             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"
               f"{(' && '.join(ops))}\n", file=sys.stderr)
index 6cf431904e3027991574bac1cb4461d92d631580..fab802a66d7ca34a9e382ec849a3866e50e7787f 100644 (file)
@@ -283,6 +283,10 @@ integration_test_template = {
         'firmware' : 'linux',
         'slow' : false,
         'enabled' : true,
+        'configuration' : {
+                'memory-accounting' : 'no',
+                'command' : testdata_dir / 'units/%N.sh',
+        },
 }
 testdata_subdirs = [
         'auxv',
@@ -376,6 +380,21 @@ foreach integration_test : integration_tests
                 '--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']
                 integration_test_args += ['--slow']
         endif
index 2168854addfc8a4c600213957b1995ba6ef00e21..e1f65e26a17636ff0c56af545c499dc1e237834e 100644 (file)
@@ -147,11 +147,6 @@ if ! [[ "$TESTNAME" =~ ^TEST\-([0-9]+)\-.+$ ]]; then
     exit 1
 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=(
     awk
     base64
diff --git a/test/test.service.in b/test/test.service.in
new file mode 100644 (file)
index 0000000..71e3618
--- /dev/null
@@ -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@
diff --git a/test/units/TEST-01-BASIC.service b/test/units/TEST-01-BASIC.service
deleted file mode 100644 (file)
index 9074e09..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-02-UNITTESTS.service b/test/units/TEST-02-UNITTESTS.service
deleted file mode 100644 (file)
index dea2c4f..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-03-JOBS.service b/test/units/TEST-03-JOBS.service
deleted file mode 100644 (file)
index 836f962..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-04-JOURNAL.service b/test/units/TEST-04-JOURNAL.service
deleted file mode 100644 (file)
index 63a0104..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-05-RLIMITS.service b/test/units/TEST-05-RLIMITS.service
deleted file mode 100644 (file)
index ab72d8f..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-06-SELINUX.service b/test/units/TEST-06-SELINUX.service
deleted file mode 100644 (file)
index c4c1d87..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-08-INITRD.service b/test/units/TEST-08-INITRD.service
deleted file mode 100644 (file)
index 2db35cf..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-09-REBOOT.service b/test/units/TEST-09-REBOOT.service
deleted file mode 100644 (file)
index 6c957ec..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-13-NSPAWN.service b/test/units/TEST-13-NSPAWN.service
deleted file mode 100644 (file)
index 95c9a02..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-15-DROPIN.service b/test/units/TEST-15-DROPIN.service
deleted file mode 100644 (file)
index 10af93f..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-17-UDEV.service b/test/units/TEST-17-UDEV.service
deleted file mode 100644 (file)
index d218d72..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-18-FAILUREACTION.service b/test/units/TEST-18-FAILUREACTION.service
deleted file mode 100644 (file)
index 16d90a1..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-19-CGROUP.service b/test/units/TEST-19-CGROUP.service
deleted file mode 100644 (file)
index 2094a12..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-21-DFUZZERE.service b/test/units/TEST-21-DFUZZERE.service
deleted file mode 100644 (file)
index a5f77d0..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-22-TMPFILES.service b/test/units/TEST-22-TMPFILES.service
deleted file mode 100644 (file)
index a5ed660..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-23-UNIT-FILE.service b/test/units/TEST-23-UNIT-FILE.service
deleted file mode 100644 (file)
index e45435b..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-24-CRYPTSETUP.service b/test/units/TEST-24-CRYPTSETUP.service
deleted file mode 100644 (file)
index e192d1c..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-25-IMPORT.service b/test/units/TEST-25-IMPORT.service
deleted file mode 100644 (file)
index 503eabb..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-26-SYSTEMCTL.service b/test/units/TEST-26-SYSTEMCTL.service
deleted file mode 100644 (file)
index d8fdaff..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-29-PORTABLE.service b/test/units/TEST-29-PORTABLE.service
deleted file mode 100644 (file)
index 035c6bf..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-30-ONCLOCKCHANGE.service b/test/units/TEST-30-ONCLOCKCHANGE.service
deleted file mode 100644 (file)
index 253f7b5..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-31-DEVICE-ENUMERATION.service b/test/units/TEST-31-DEVICE-ENUMERATION.service
deleted file mode 100644 (file)
index f0e78a9..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-32-OOMPOLICY.service b/test/units/TEST-32-OOMPOLICY.service
deleted file mode 100644 (file)
index 50f5823..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-34-DYNAMICUSERMIGRATE.service b/test/units/TEST-34-DYNAMICUSERMIGRATE.service
deleted file mode 100644 (file)
index 6917afe..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-35-LOGIN.service b/test/units/TEST-35-LOGIN.service
deleted file mode 100644 (file)
index 0599f61..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-36-NUMAPOLICY.service b/test/units/TEST-36-NUMAPOLICY.service
deleted file mode 100644 (file)
index 5746dc1..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-38-FREEZER.service b/test/units/TEST-38-FREEZER.service
deleted file mode 100644 (file)
index ac77836..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-43-PRIVATEUSER-UNPRIV.service b/test/units/TEST-43-PRIVATEUSER-UNPRIV.service
deleted file mode 100644 (file)
index e36afea..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-45-TIMEDATE.service b/test/units/TEST-45-TIMEDATE.service
deleted file mode 100644 (file)
index b16ce99..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-46-HOMED.service b/test/units/TEST-46-HOMED.service
deleted file mode 100644 (file)
index 8fe6575..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-50-DISSECT.service b/test/units/TEST-50-DISSECT.service
deleted file mode 100644 (file)
index bcafe6e..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-52-HONORFIRSTSHUTDOWN.service b/test/units/TEST-52-HONORFIRSTSHUTDOWN.service
deleted file mode 100644 (file)
index 966b9b6..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-53-ISSUE-16347.service b/test/units/TEST-53-ISSUE-16347.service
deleted file mode 100644 (file)
index cf3adbb..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-54-CREDS.service b/test/units/TEST-54-CREDS.service
deleted file mode 100644 (file)
index 94bf2b7..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-55-OOMD.service b/test/units/TEST-55-OOMD.service
deleted file mode 100644 (file)
index 1b6b8b8..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-58-REPART.service b/test/units/TEST-58-REPART.service
deleted file mode 100644 (file)
index f843527..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-59-RELOADING-RESTART.service b/test/units/TEST-59-RELOADING-RESTART.service
deleted file mode 100644 (file)
index f85cfab..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-60-MOUNT-RATELIMIT.service b/test/units/TEST-60-MOUNT-RATELIMIT.service
deleted file mode 100644 (file)
index 1a929e4..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-62-RESTRICT-IFACES.service b/test/units/TEST-62-RESTRICT-IFACES.service
deleted file mode 100644 (file)
index 5c3f94d..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-63-PATH.service b/test/units/TEST-63-PATH.service
deleted file mode 100644 (file)
index 483c6a8..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-64-UDEV-STORAGE.service b/test/units/TEST-64-UDEV-STORAGE.service
deleted file mode 100644 (file)
index b7626bb..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-65-ANALYZE.service b/test/units/TEST-65-ANALYZE.service
deleted file mode 100644 (file)
index 3610baf..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-66-DEVICEISOLATION.service b/test/units/TEST-66-DEVICEISOLATION.service
deleted file mode 100644 (file)
index 61cd0ab..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-67-INTEGRITY.service b/test/units/TEST-67-INTEGRITY.service
deleted file mode 100644 (file)
index 82f998e..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-68-PROPAGATE-EXIT-STATUS.service b/test/units/TEST-68-PROPAGATE-EXIT-STATUS.service
deleted file mode 100644 (file)
index 2d86e1f..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-70-TPM2.service b/test/units/TEST-70-TPM2.service
deleted file mode 100644 (file)
index a9c1542..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-71-HOSTNAME.service b/test/units/TEST-71-HOSTNAME.service
deleted file mode 100644 (file)
index 1718629..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-72-SYSUPDATE.service b/test/units/TEST-72-SYSUPDATE.service
deleted file mode 100644 (file)
index 1640350..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-73-LOCALE.service b/test/units/TEST-73-LOCALE.service
deleted file mode 100644 (file)
index 3ebd24d..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-74-AUX-UTILS.service b/test/units/TEST-74-AUX-UTILS.service
deleted file mode 100644 (file)
index f782132..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-75-RESOLVED.service b/test/units/TEST-75-RESOLVED.service
deleted file mode 100644 (file)
index 3368e04..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-76-SYSCTL.service b/test/units/TEST-76-SYSCTL.service
deleted file mode 100644 (file)
index 3c8a9e8..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-78-SIGQUEUE.service b/test/units/TEST-78-SIGQUEUE.service
deleted file mode 100644 (file)
index 05f3eff..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-79-MEMPRESS.service b/test/units/TEST-79-MEMPRESS.service
deleted file mode 100644 (file)
index f2d24df..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-80-NOTIFYACCESS.service b/test/units/TEST-80-NOTIFYACCESS.service
deleted file mode 100644 (file)
index 4c7f5d5..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-81-GENERATORS.service b/test/units/TEST-81-GENERATORS.service
deleted file mode 100644 (file)
index 3b697b3..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-83-BTRFS.service b/test/units/TEST-83-BTRFS.service
deleted file mode 100644 (file)
index 55ebb45..0000000
+++ /dev/null
@@ -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
diff --git a/test/units/TEST-84-STORAGETM.service b/test/units/TEST-84-STORAGETM.service
deleted file mode 100644 (file)
index 2c25770..0000000
+++ /dev/null
@@ -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