]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: move offline-passwd.[ch] to src/tmpfiles
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 31 Dec 2020 19:37:10 +0000 (04:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Jan 2021 22:04:18 +0000 (07:04 +0900)
offline-passwd.[ch] are only used by systemd-tmpfiles and the relevant
test. And are not included in libshared. So, it is not suitable to
located under src/shared.

src/test/meson.build
src/tmpfiles/meson.build
src/tmpfiles/offline-passwd.c [moved from src/shared/offline-passwd.c with 100% similarity]
src/tmpfiles/offline-passwd.h [moved from src/shared/offline-passwd.h with 100% similarity]
src/tmpfiles/test-offline-passwd.c [moved from src/test/test-offline-passwd.c with 100% similarity]

index 5d1c7166ea66ae5c7c060777f815e971110d07c8..7280cd31b31c22c7419514f1a5a1866b52b39598 100644 (file)
@@ -290,12 +290,6 @@ tests += [
          [],
          '', 'timeout=120'],
 
-        [['src/test/test-offline-passwd.c',
-          'src/shared/offline-passwd.c',
-          'src/shared/offline-passwd.h'],
-         [],
-         []],
-
         [['src/test/test-escape.c'],
          [],
          []],
index 2d61568c6642739ae6ae56b70738e4ba72b91a91..a372bcded0638ad11fb8cd0b66e75ca7f54ae7fd 100644 (file)
@@ -1,7 +1,14 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-systemd_tmpfiles_sources = [
-        'src/tmpfiles/tmpfiles.c',
-        'src/shared/offline-passwd.c',
-        'src/shared/offline-passwd.h',
+systemd_tmpfiles_sources = files(
+        'tmpfiles.c',
+        'offline-passwd.c',
+        'offline-passwd.h')
+
+tests += [
+        [['src/tmpfiles/test-offline-passwd.c',
+          'src/tmpfiles/offline-passwd.c',
+          'src/tmpfiles/offline-passwd.h'],
+         [],
+         []],
 ]