]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: replace symlinks with actual unit files
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 20 Mar 2020 15:12:12 +0000 (16:12 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 22 Mar 2020 09:22:42 +0000 (10:22 +0100)
During installation, meson complains:
> Installing /home/zbyszek/src/systemd-work/test/units/sysinit.target to /var/tmp/systemd-test.Q1FSuj/root/usr/lib/systemd/tests/testdata/units
> Warning: trying to copy a symlink that points to a file. This will copy the file,
> but this will be changed in a future version of Meson to copy the symlink as is. Please update your
> build definitions so that it will not break when the change happens.

It *is* convenient to have those files as symlinks, but it is also confusing,
because symlinks create aliases, and it seems that in those cases we actually
don't want aliases (at least in the case of loopy*.service that'd make the test
pointless).

16 files changed:
test/test-path/basic.target [changed from symlink to file mode: 0644]
test/test-path/path-changed.service [changed from symlink to file mode: 0644]
test/test-path/path-directorynotempty.service [changed from symlink to file mode: 0644]
test/test-path/path-exists.service [changed from symlink to file mode: 0644]
test/test-path/path-existsglob.service [changed from symlink to file mode: 0644]
test/test-path/path-makedirectory.service [changed from symlink to file mode: 0644]
test/test-path/path-modified.service [changed from symlink to file mode: 0644]
test/test-path/paths.target [changed from symlink to file mode: 0644]
test/test-path/sysinit.target [changed from symlink to file mode: 0644]
test/units/basic.target [changed from symlink to file mode: 0644]
test/units/loopy2.service [changed from symlink to file mode: 0644]
test/units/loopy4.service [changed from symlink to file mode: 0644]
test/units/shutdown.target [changed from symlink to file mode: 0644]
test/units/sockets.target [changed from symlink to file mode: 0644]
test/units/sysinit.target [changed from symlink to file mode: 0644]
test/units/timers.target [changed from symlink to file mode: 0644]

deleted file mode 120000 (symlink)
index a882b72cc9b07fb4fadc644e1af596f3293df005..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../units/basic.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..4f44292249405339fe4568885f4bb84291c1a558
--- /dev/null
@@ -0,0 +1,22 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Basic System
+Documentation=man:systemd.special(7)
+Requires=sysinit.target
+Wants=sockets.target timers.target paths.target slices.target
+After=sysinit.target sockets.target paths.target slices.target tmp.mount
+
+# We support /var, /tmp, /var/tmp, being on NFS, but we don't pull in
+# remote-fs.target by default, hence pull them in explicitly here. Note that we
+# require /var and /var/tmp, but only add a Wants= type dependency on /tmp, as
+# we support that unit being masked, and this should not be considered an error.
+RequiresMountsFor=/var /var/tmp
+Wants=tmp.mount
deleted file mode 120000 (symlink)
index 8bdf1788301fb281b10602498531816fde5bbe50..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-path-service.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..f8499ec6195d49645e9547f26ddbe11f8de7311d
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=Service Test for Path units
+
+[Service]
+ExecStart=/bin/true
+Type=oneshot
deleted file mode 120000 (symlink)
index 8bdf1788301fb281b10602498531816fde5bbe50..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-path-service.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..f8499ec6195d49645e9547f26ddbe11f8de7311d
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=Service Test for Path units
+
+[Service]
+ExecStart=/bin/true
+Type=oneshot
deleted file mode 120000 (symlink)
index 8bdf1788301fb281b10602498531816fde5bbe50..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-path-service.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..f8499ec6195d49645e9547f26ddbe11f8de7311d
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=Service Test for Path units
+
+[Service]
+ExecStart=/bin/true
+Type=oneshot
deleted file mode 120000 (symlink)
index 8bdf1788301fb281b10602498531816fde5bbe50..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-path-service.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..f8499ec6195d49645e9547f26ddbe11f8de7311d
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=Service Test for Path units
+
+[Service]
+ExecStart=/bin/true
+Type=oneshot
deleted file mode 120000 (symlink)
index 8bdf1788301fb281b10602498531816fde5bbe50..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-path-service.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..f8499ec6195d49645e9547f26ddbe11f8de7311d
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=Service Test for Path units
+
+[Service]
+ExecStart=/bin/true
+Type=oneshot
deleted file mode 120000 (symlink)
index 8bdf1788301fb281b10602498531816fde5bbe50..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-path-service.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..f8499ec6195d49645e9547f26ddbe11f8de7311d
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=Service Test for Path units
+
+[Service]
+ExecStart=/bin/true
+Type=oneshot
deleted file mode 120000 (symlink)
index b402796cb9185fee824e77901338c08b1edddfe5..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../units/paths.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..9b6ed1c13feec452f236b8314fea492b89d62337
--- /dev/null
@@ -0,0 +1,12 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Paths
+Documentation=man:systemd.special(7)
deleted file mode 120000 (symlink)
index 9d10e5b2e21b853d858b3d0162ca4594bcb2f185..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../units/sysinit.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..b6c16a14120f88f817470a0669a5f32406c06872
--- /dev/null
@@ -0,0 +1,15 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=System Initialization
+Documentation=man:systemd.special(7)
+Conflicts=emergency.service emergency.target
+Wants=local-fs.target swap.target
+After=local-fs.target swap.target emergency.service emergency.target
deleted file mode 120000 (symlink)
index a882b72cc9b07fb4fadc644e1af596f3293df005..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../units/basic.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..4f44292249405339fe4568885f4bb84291c1a558
--- /dev/null
@@ -0,0 +1,22 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Basic System
+Documentation=man:systemd.special(7)
+Requires=sysinit.target
+Wants=sockets.target timers.target paths.target slices.target
+After=sysinit.target sockets.target paths.target slices.target tmp.mount
+
+# We support /var, /tmp, /var/tmp, being on NFS, but we don't pull in
+# remote-fs.target by default, hence pull them in explicitly here. Note that we
+# require /var and /var/tmp, but only add a Wants= type dependency on /tmp, as
+# we support that unit being masked, and this should not be considered an error.
+RequiresMountsFor=/var /var/tmp
+Wants=tmp.mount
deleted file mode 120000 (symlink)
index 961b1fe9bc70f1f7962e5b7b03c51b282c1d2a04..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-loopy.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..9eb645748e5eebf2eaaa0e82d35eea9b758b06c2
--- /dev/null
@@ -0,0 +1,2 @@
+[Service]
+ExecStart=/bin/true
deleted file mode 120000 (symlink)
index 43e5658bcdfa4aa9962c506f327c032a35aef503..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-loopy3.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..606e26b5da7481529ed3aadd14d8510d67ad7859
--- /dev/null
@@ -0,0 +1,5 @@
+[Service]
+ExecStart=/bin/true
+
+[Unit]
+Conflicts=loopy4.service
deleted file mode 120000 (symlink)
index 8e58943bc453413f5decb6e394ba0d646ee4023a..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../units/shutdown.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..d48e6d6494275b02b606f4265d9fc6414b3eb048
--- /dev/null
@@ -0,0 +1,14 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Shutdown
+Documentation=man:systemd.special(7)
+DefaultDependencies=no
+RefuseManualStart=yes
deleted file mode 120000 (symlink)
index 745480af5667f182f58e6e91471934a77f1af90e..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../units/sockets.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..9af67fdb1faaf729249f3d989c02714d4633c429
--- /dev/null
@@ -0,0 +1,12 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Sockets
+Documentation=man:systemd.special(7)
deleted file mode 120000 (symlink)
index 9d10e5b2e21b853d858b3d0162ca4594bcb2f185..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../units/sysinit.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..b6c16a14120f88f817470a0669a5f32406c06872
--- /dev/null
@@ -0,0 +1,15 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=System Initialization
+Documentation=man:systemd.special(7)
+Conflicts=emergency.service emergency.target
+Wants=local-fs.target swap.target
+After=local-fs.target swap.target emergency.service emergency.target
deleted file mode 120000 (symlink)
index 7718a1268375e096be3d8f70d7a6f8effc8ddace..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../units/timers.target
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..b1aa8c797ccdb3124e53b63a6f40f2e3fa595357
--- /dev/null
@@ -0,0 +1,15 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Timers
+Documentation=man:systemd.special(7)
+
+DefaultDependencies=no
+Conflicts=shutdown.target