tests: Add primitive contact tests

This makes sure that a NULL id will return a NULL contact and additionally
asserts that even a NULL contact will give us sensible primary/secondary display
information.
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-02-18 09:08:55 +01:00
parent 7f40314810
commit f0cd344072
2 changed files with 51 additions and 0 deletions

View File

@@ -164,4 +164,17 @@ if cmocka.found ()
test('ringer', t, env: test_env)
endif
test_sources = [ 'test-contacts.c' ]
t = executable('contacts', test_sources,
c_args : test_cflags,
link_args: test_link_args,
pie: true,
link_with : [calls_vala, libcalls],
dependencies: calls_deps,
include_directories : [
calls_includes,
]
)
test('contacts', t, env: test_env)
endif