fwupd/data/installed-tests/meson.build
Jan Tojnar 2f12e38e61 build: Re-use installed tests directory
It will make it easier for downstreams to patch the path.
2020-04-15 20:16:46 +01:00

57 lines
1.2 KiB
Meson

installed_test_datadir = join_paths(datadir, 'installed-tests', 'fwupd')
con2 = configuration_data()
con2.set('installedtestsdir', installed_test_datadir)
con2.set('bindir', bindir)
configure_file(
input : 'fwupdmgr.test.in',
output : 'fwupdmgr.test',
configuration : con2,
install: true,
install_dir: installed_test_datadir,
)
install_data([
'fwupdmgr.sh',
'fwupd-tests.xml',
],
install_dir : installed_test_datadir,
)
custom_target('installed-cab123',
input : [
'fakedevice123.bin',
'fakedevice123.bin.asc',
'fakedevice123.metainfo.xml',
],
output : 'fakedevice123.cab',
command : [
gcab, '--create', '--nopath', '@OUTPUT@', '@INPUT@',
],
install: true,
install_dir: installed_test_datadir,
)
custom_target('installed-cab124',
input : [
'fakedevice124.bin',
'fakedevice124.bin.asc',
'fakedevice124.metainfo.xml',
],
output : 'fakedevice124.cab',
command : [
gcab, '--create', '--nopath', '@OUTPUT@', '@INPUT@',
],
install: true,
install_dir: installed_test_datadir,
)
# replace @installedtestsdir@
configure_file(
input : 'remote.conf.in',
output : 'fwupd-tests.conf',
configuration : con2,
install: true,
install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'),
)