tests: Add comprehensive tests for libeos-parental-controls
These test get/set behaviour of EpcAppFilter, GAppInfo support, and various error handling paths and corner cases. With these tests, coverage of app-filter.c is: • Lines: 97% • Functions: 100% • Branches: 57.5% The branch coverage is not correctly reported, as it factors in the failure branches for g_return_if_fail() precondition assertions, which we deliberately do not test. With those branches manually excluded, branch coverage is around 89% instead. This adds libglib-testing as a subproject dependency, for its GtDBusQueue. It adds gio-unix-2.0 as a dependency of the app-filter tests, in order to be able to construct GDesktopAppInfos. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://phabricator.endlessm.com/T24004
This commit is contained in:
parent
b932f443d5
commit
a2c2965d25
6 changed files with 1205 additions and 1 deletions
|
@ -33,6 +33,9 @@ polkit_gobject = dependency('polkit-gobject-1')
|
|||
polkitpolicydir = polkit_gobject.get_pkgconfig_variable('policydir',
|
||||
define_variable: ['prefix', prefix])
|
||||
|
||||
libglib_testing = subproject('libglib-testing')
|
||||
libglib_testing_dep = libglib_testing.get_variable('libglib_testing_dep')
|
||||
|
||||
config_h = configuration_data()
|
||||
config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name())
|
||||
configure_file(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue