mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 08:42:46 +00:00
trivial: Do not run any tests if configuring with -Denable-tests=false
This commit is contained in:
parent
748ae3154e
commit
d80666281c
@ -125,9 +125,10 @@ gnome.generate_gir(dfu,
|
||||
install : true
|
||||
)
|
||||
|
||||
testdatadir = join_paths(meson.current_source_dir(), 'tests')
|
||||
cargs += '-DTESTDATADIR="' + testdatadir + '"'
|
||||
e = executable(
|
||||
if get_option('enable-tests')
|
||||
testdatadir = join_paths(meson.current_source_dir(), 'tests')
|
||||
cargs += '-DTESTDATADIR="' + testdatadir + '"'
|
||||
e = executable(
|
||||
'dfu-self-test',
|
||||
sources : [
|
||||
'dfu-self-test.c'
|
||||
@ -143,5 +144,6 @@ e = executable(
|
||||
],
|
||||
link_with : dfu,
|
||||
c_args : cargs
|
||||
)
|
||||
test('dfu-self-test', e)
|
||||
)
|
||||
test('dfu-self-test', e)
|
||||
endif
|
||||
|
@ -89,8 +89,9 @@ gnome.generate_gir(fwupd,
|
||||
install : true
|
||||
)
|
||||
|
||||
testdatadir = join_paths(meson.source_root(), 'data')
|
||||
e = executable(
|
||||
if get_option('enable-tests')
|
||||
testdatadir = join_paths(meson.source_root(), 'data')
|
||||
e = executable(
|
||||
'fwupd-self-test',
|
||||
sources : [
|
||||
'fwupd-self-test.c'
|
||||
@ -107,5 +108,6 @@ e = executable(
|
||||
cargs,
|
||||
'-DFU_SELF_TEST_REMOTES_DIR="' + testdatadir + '"',
|
||||
],
|
||||
)
|
||||
test('fwupd-self-test', e)
|
||||
)
|
||||
test('fwupd-self-test', e)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user