Merge branch 'wip/dueno/egg-tests' into 'master'

meson: Run tests for libegg

See merge request GNOME/libsecret!84
This commit is contained in:
Daiki Ueno 2021-07-03 16:58:59 +00:00
commit 42d41c971c

View File

@ -23,3 +23,30 @@ libegg = static_library('egg',
dependencies: libegg_deps,
include_directories: [config_h_dir, build_dir],
)
# Tests
test_names = [
'test-hex',
'test-secmem',
]
if get_option('gcrypt')
test_names += [
'test-dh',
'test-hkdf',
]
endif
foreach _test : test_names
test_bin = executable(_test,
'@0@.c'.format(_test),
dependencies: libegg_deps,
link_with: libegg,
include_directories: config_h_dir,
)
test(_test, test_bin,
suite: 'libegg',
)
endforeach