mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 21:35:32 +00:00
tests: Make ringer test depend on mocked libfeedback
This makes sure that the mocked libfeedback library is build before running tests and drops the need of LD_PRELOAD.
This commit is contained in:
parent
6265f055f1
commit
27302dc5a5
1 changed files with 2 additions and 6 deletions
|
@ -81,10 +81,6 @@ t = executable('ui-call', test_sources,
|
||||||
)
|
)
|
||||||
test('ui-call', t, env: test_env)
|
test('ui-call', t, env: test_env)
|
||||||
|
|
||||||
test_env_ringer = [
|
|
||||||
'LD_PRELOAD=@0@/mock/lfb/libfeedback-0.so'.format(meson.current_build_dir()),
|
|
||||||
] + test_env
|
|
||||||
|
|
||||||
test_sources = [
|
test_sources = [
|
||||||
'mock-call.c', 'mock-call.h', 'mock-libfeedback.h',
|
'mock-call.c', 'mock-call.h', 'mock-libfeedback.h',
|
||||||
'test-ringer.c'
|
'test-ringer.c'
|
||||||
|
@ -94,13 +90,13 @@ t = executable('ringer', test_sources,
|
||||||
c_args : test_cflags,
|
c_args : test_cflags,
|
||||||
link_args: mock_link_args,
|
link_args: mock_link_args,
|
||||||
pie: true,
|
pie: true,
|
||||||
link_with : [calls_vala, libcalls],
|
link_with : [calls_vala, libcalls, libfeedback],
|
||||||
dependencies: calls_deps,
|
dependencies: calls_deps,
|
||||||
include_directories : [
|
include_directories : [
|
||||||
calls_includes,
|
calls_includes,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
test('ringer', t, env: test_env_ringer)
|
test('ringer', t, env: test_env)
|
||||||
|
|
||||||
test_sources = [ 'test-contacts.c' ]
|
test_sources = [ 'test-contacts.c' ]
|
||||||
t = executable('contacts', test_sources,
|
t = executable('contacts', test_sources,
|
||||||
|
|
Loading…
Reference in a new issue