mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests: Add 'gdb' setup to run tests using gdb
When using --setup=gdb the tests will be running using gdb, however this as per meson limitation allows only running a test when using verbose mode.
This commit is contained in:
@@ -44,3 +44,13 @@ if get_option('introspection')
|
||||
)
|
||||
endif
|
||||
endif
|
||||
|
||||
gdb = find_program('gdb', required: false)
|
||||
if gdb.found()
|
||||
add_test_setup('gdb',
|
||||
timeout_multiplier: 1000,
|
||||
env: [
|
||||
'LIBFPRINT_TEST_WRAPPER=@0@ --args'.format(
|
||||
gdb.path())
|
||||
])
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user