]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test: Add missing session.conf, system.conf to Meson build
authorSimon McVittie <smcv@collabora.com>
Mon, 27 Jun 2022 14:53:18 +0000 (15:53 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
For as-installed testing on Unix, we want these to be symlinks to the
production versions of the same file.

Signed-off-by: Simon McVittie <smcv@collabora.com>
test/data/meson.build

index 5503958409d4091aad6a05e1b57278af82cea3e1..692cf5701ff55f20f69242bd136bc5ac497e5f48 100644 (file)
@@ -201,4 +201,23 @@ endif
 
 if install_tests
     subdir('installable')
+
+    if platform_unix
+        install_symlinks += [
+            {
+                'link_name': 'session.conf',
+                'install_dir': test_exec_dir / 'data' / 'valid-config-files',
+                'pointing_to':
+                    get_option('prefix') / get_option('datadir') /
+                    'dbus-1' / 'session.conf',
+            },
+            {
+                'link_name': 'system.conf',
+                'install_dir': test_exec_dir / 'data' / 'valid-config-files-system',
+                'pointing_to':
+                    get_option('prefix') / get_option('datadir') /
+                    'dbus-1' / 'system.conf',
+            },
+        ]
+    endif
 endif