tests: Fix GCalManager test
The unit test that checks GCalManager test fails due to missing schemas. This patch allows schemas to be compiled in the build tree and also sets the environment variables so tests can found them and run properly. Additional code and testing from Mohammed Sadiq <sadiq@sadiqpk.org>
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
edbb4e5b86
commit
11fb4717a2
@@ -1,7 +1,5 @@
|
||||
src_inc = include_directories('.')
|
||||
|
||||
enum_headers = files('gcal-enums.h')
|
||||
|
||||
gcal_deps = [
|
||||
gsettings_desktop_schemas_dep,
|
||||
libedataserverui_dep,
|
||||
@@ -56,19 +54,6 @@ sources = files(
|
||||
'gcal-timer.c'
|
||||
)
|
||||
|
||||
gnome.mkenums(
|
||||
'org.gnome.calendar.enums.xml',
|
||||
sources: enum_headers,
|
||||
comments: '<!-- @comment@ -->',
|
||||
fhead: '<schemalist>',
|
||||
vhead: ' <@type@ id="org.gnome.calendar.@EnumName@">',
|
||||
vprod: ' <value nick="@valuenick@" value="@valuenum@"/>',
|
||||
vtail: ' </@type@>',
|
||||
ftail: '</schemalist>',
|
||||
install_header: true,
|
||||
install_dir: calendar_schemadir
|
||||
)
|
||||
|
||||
enum_types = 'gcal-enum-types'
|
||||
|
||||
sources += gnome.mkenums(
|
||||
|
||||
Reference in New Issue
Block a user