mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-16 11:57:32 +00:00

A test run should really fail if it cannot find the test data, rather then reporting success (thus masking that it never ran). Fix the test to find it data (probably broken with the port to meson) and make it fail if it cannot find its data. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
82 lines
1.8 KiB
Meson
82 lines
1.8 KiB
Meson
cargs = ['-DG_LOG_DOMAIN="FuPluginSynapticsMST"']
|
|
|
|
shared_module('fu_plugin_synapticsmst',
|
|
sources : [
|
|
'fu-plugin-synapticsmst.c',
|
|
'synapticsmst-common.c',
|
|
'synapticsmst-device.c',
|
|
],
|
|
include_directories : [
|
|
include_directories('../..'),
|
|
include_directories('../../src'),
|
|
include_directories('../../libfwupd'),
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
c_args : [
|
|
cargs,
|
|
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
efivar,
|
|
],
|
|
# https://github.com/hughsie/fwupd/issues/207
|
|
override_options : [
|
|
'werror=false',
|
|
]
|
|
)
|
|
|
|
executable(
|
|
'synapticsmst-tool',
|
|
sources : [
|
|
'synapticsmst-tool.c',
|
|
'synapticsmst-device.c',
|
|
'synapticsmst-common.c',
|
|
],
|
|
include_directories : [
|
|
include_directories('../..'),
|
|
include_directories('../../src'),
|
|
include_directories('../../libfwupd'),
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
c_args : cargs,
|
|
# https://github.com/hughsie/fwupd/issues/207
|
|
override_options : [
|
|
'werror=false',
|
|
]
|
|
)
|
|
|
|
if get_option('tests')
|
|
cargs += '-DFU_OFFLINE_DESTDIR="/tmp/fwupd-self-test"'
|
|
cargs += '-DPLUGINBUILDDIR="' + meson.current_build_dir() + '"'
|
|
cargs += '-DSOURCEDIR="' + meson.current_source_dir() + '"'
|
|
e = executable(
|
|
'synapticsmst-self-test',
|
|
sources : [
|
|
'fu-self-test.c',
|
|
],
|
|
include_directories : [
|
|
include_directories('../..'),
|
|
include_directories('../../src'),
|
|
include_directories('../../libfwupd'),
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
sqlite,
|
|
valgrind,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
libfwupdprivate,
|
|
],
|
|
c_args : [
|
|
cargs,
|
|
'-DLOCALSTATEDIR="/tmp/fwupd-self-test/var"',
|
|
],
|
|
)
|
|
test('synapticsmst-self-test', e)
|
|
endif
|