fwupd/data/installed-tests/meson.build
Mario Limonciello 15e4b0caaf installed-tests: Adjust to actually use a remote for installed tests
By using a remote, this should allow using gnome-software to do the
installed tests without hacking around much.

Fixes: https://github.com/hughsie/fwupd/issues/862
Fixes: https://github.com/hughsie/fwupd/issues/809
2018-11-29 09:40:06 -06:00

57 lines
1.3 KiB
Meson

con2 = configuration_data()
con2.set('installedtestsdir',
join_paths(datadir, 'installed-tests', 'fwupd'))
con2.set('bindir', bindir)
configure_file(
input : 'fwupdmgr.test.in',
output : 'fwupdmgr.test',
configuration : con2,
install: true,
install_dir: join_paths('share', 'installed-tests', 'fwupd'),
)
install_data([
'fwupdmgr.sh',
'fwupd-tests.xml',
'hardware.py',
],
install_dir : 'share/installed-tests/fwupd',
)
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: join_paths('share', 'installed-tests', 'fwupd'),
)
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: join_paths('share', 'installed-tests', 'fwupd'),
)
# replace @installedtestsdir@
configure_file(
input : 'remote.conf.in',
output : 'fwupd-tests.conf',
configuration : con2,
install: true,
install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'),
)