Sometimes ninja decides to compile tests/interactive-panels/main.c, which requires shell/resources.h, before shell/resources.h is generated. The fix is to use 'sources' argument of declare_dependency to properly declare the dependency on generated headers. A fix for tests/datetime and panels/datetime is also included in the commit to fix a similar problem. Closes https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/472
34 lines
774 B
Meson
34 lines
774 B
Meson
|
|
test_units = [
|
|
'test-timezone',
|
|
'test-timezone-gfx',
|
|
'test-endianess',
|
|
]
|
|
|
|
env = [
|
|
'G_MESSAGES_DEBUG=all',
|
|
'BUILDDIR=' + meson.current_build_dir(),
|
|
'TOP_BUILDDIR=' + meson.build_root(),
|
|
# Disable ATK, this should not be required but it caused CI failures -- 2018-12-07
|
|
'NO_AT_BRIDGE=1'
|
|
]
|
|
cflags = [
|
|
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
|
|
'-DSRCDIR="@0@"'.format(meson.source_root() + '/panels/datetime')
|
|
]
|
|
|
|
foreach unit: test_units
|
|
exe = executable(
|
|
unit,
|
|
[unit + '.c'],
|
|
dependencies : common_deps + [m_dep, datetime_panel_lib_dep],
|
|
c_args : cflags
|
|
)
|
|
endforeach
|
|
|
|
test(
|
|
'test-datetime',
|
|
find_program('test-datetime.py'),
|
|
env : env,
|
|
timeout : 60
|
|
)
|