2020-11-12 09:05:59 +00:00
|
|
|
|
diff --git a/data/installed-tests/meson.build b/data/installed-tests/meson.build
|
2022-03-10 19:12:11 +00:00
|
|
|
|
index b8ec916f0..38209b363 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
|
--- a/data/installed-tests/meson.build
|
|
|
|
|
+++ b/data/installed-tests/meson.build
|
2022-03-10 19:12:11 +00:00
|
|
|
|
@@ -83,5 +83,5 @@ configure_file(
|
2020-04-24 23:36:52 +00:00
|
|
|
|
output : 'fwupd-tests.conf',
|
|
|
|
|
configuration : con2,
|
|
|
|
|
install: true,
|
|
|
|
|
- install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'),
|
|
|
|
|
+ install_dir: join_paths(get_option('installed_test_prefix'), 'etc', 'fwupd', 'remotes.d'),
|
|
|
|
|
)
|
2020-11-12 09:05:59 +00:00
|
|
|
|
diff --git a/meson.build b/meson.build
|
2022-04-27 09:35:20 +00:00
|
|
|
|
index d8bd9fdc7..ff924d373 100644
|
2020-11-12 09:05:59 +00:00
|
|
|
|
--- a/meson.build
|
|
|
|
|
+++ b/meson.build
|
2022-04-27 09:35:20 +00:00
|
|
|
|
@@ -187,8 +187,8 @@ else
|
2020-11-12 09:05:59 +00:00
|
|
|
|
datadir = join_paths(prefix, get_option('datadir'))
|
|
|
|
|
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
|
|
|
|
localstatedir = join_paths(prefix, get_option('localstatedir'))
|
|
|
|
|
- installed_test_bindir = join_paths(libexecdir, 'installed-tests', meson.project_name())
|
|
|
|
|
- installed_test_datadir = join_paths(datadir, 'installed-tests', meson.project_name())
|
|
|
|
|
+ installed_test_bindir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name())
|
|
|
|
|
+ installed_test_datadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name())
|
|
|
|
|
endif
|
|
|
|
|
mandir = join_paths(prefix, get_option('mandir'))
|
|
|
|
|
localedir = join_paths(prefix, get_option('localedir'))
|
2022-04-27 09:35:20 +00:00
|
|
|
|
@@ -487,6 +487,7 @@ gnome = import('gnome')
|
2022-03-10 19:12:11 +00:00
|
|
|
|
i18n = import('i18n')
|
|
|
|
|
|
|
|
|
|
conf.set_quoted('FWUPD_PREFIX', prefix)
|
|
|
|
|
+conf.set_quoted('FWUPD_INSTALLED_TEST_PREFIX', get_option('installed_test_prefix'))
|
|
|
|
|
conf.set_quoted('FWUPD_BINDIR', bindir)
|
|
|
|
|
conf.set_quoted('FWUPD_LIBDIR', libdir)
|
|
|
|
|
conf.set_quoted('FWUPD_LIBEXECDIR', libexecdir)
|
2020-11-12 09:05:59 +00:00
|
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
2022-04-27 09:35:20 +00:00
|
|
|
|
index d00038dbc..be1c45b40 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
|
--- a/meson_options.txt
|
|
|
|
|
+++ b/meson_options.txt
|
2022-04-27 09:35:20 +00:00
|
|
|
|
@@ -56,6 +56,7 @@ option('systemd', type : 'feature', description : 'systemd support', deprecated:
|
|
|
|
|
option('systemd_unit_user', type : 'string', description : 'User account to use for fwupd-refresh.service (empty for DynamicUser)')
|
2020-11-12 09:05:59 +00:00
|
|
|
|
option('systemd_root_prefix', type: 'string', value: '', description: 'Directory to base systemd’s installation directories on')
|
2022-04-27 09:35:20 +00:00
|
|
|
|
option('elogind', type : 'feature', description : 'elogind support', deprecated: {'true': 'enabled', 'false': 'disabled'})
|
2020-11-12 09:05:59 +00:00
|
|
|
|
+option('installed_test_prefix', type: 'string', description: 'Prefix for installed tests')
|
|
|
|
|
option('tests', type : 'boolean', value : true, description : 'enable tests')
|
2022-04-27 09:35:20 +00:00
|
|
|
|
option('soup_session_compat', type : 'boolean', value : true, description : 'enable SoupSession runtime compatibility support')
|
|
|
|
|
option('curl', type : 'feature', description : 'libcurl support', deprecated: {'true': 'enabled', 'false': 'disabled'})
|
2022-03-10 19:12:11 +00:00
|
|
|
|
diff --git a/plugins/redfish/fu-self-test.c b/plugins/redfish/fu-self-test.c
|
2022-04-27 09:35:20 +00:00
|
|
|
|
index 4d19e560f..91cfaa616 100644
|
2022-03-10 19:12:11 +00:00
|
|
|
|
--- a/plugins/redfish/fu-self-test.c
|
|
|
|
|
+++ b/plugins/redfish/fu-self-test.c
|
|
|
|
|
@@ -27,7 +27,7 @@ fu_test_is_installed_test(void)
|
|
|
|
|
const gchar *builddir = g_getenv("G_TEST_BUILDDIR");
|
|
|
|
|
if (builddir == NULL)
|
|
|
|
|
return FALSE;
|
|
|
|
|
- return g_str_has_prefix(builddir, FWUPD_PREFIX);
|
|
|
|
|
+ return g_str_has_prefix(builddir, FWUPD_INSTALLED_TEST_PREFIX);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void
|