mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 04:23:21 +00:00
trivial: Do not run any tests if configuring with -Denable-tests=false
This commit is contained in:
parent
748ae3154e
commit
d80666281c
@ -125,6 +125,7 @@ gnome.generate_gir(dfu,
|
||||
install : true
|
||||
)
|
||||
|
||||
if get_option('enable-tests')
|
||||
testdatadir = join_paths(meson.current_source_dir(), 'tests')
|
||||
cargs += '-DTESTDATADIR="' + testdatadir + '"'
|
||||
e = executable(
|
||||
@ -145,3 +146,4 @@ e = executable(
|
||||
c_args : cargs
|
||||
)
|
||||
test('dfu-self-test', e)
|
||||
endif
|
||||
|
@ -89,6 +89,7 @@ gnome.generate_gir(fwupd,
|
||||
install : true
|
||||
)
|
||||
|
||||
if get_option('enable-tests')
|
||||
testdatadir = join_paths(meson.source_root(), 'data')
|
||||
e = executable(
|
||||
'fwupd-self-test',
|
||||
@ -109,3 +110,4 @@ e = executable(
|
||||
],
|
||||
)
|
||||
test('fwupd-self-test', e)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user