gnome-control-center/tests/datetime/meson.build
Georges Basile Stavracas Neto eea231dc1c tests: Run each datetime test under Xvfb
That way, gtk_init() cannot fail.
2018-05-09 18:52:48 -03:00

35 lines
No EOL
793 B
Meson

test_units = [
'test-timezone',
'test-timezone-gfx',
'test-endianess',
]
includes = [top_inc, include_directories('../../panels/datetime')]
env = [
'G_MESSAGES_DEBUG=all',
'BUILDDIR=' + meson.current_build_dir(),
'TOP_BUILDDIR=' + meson.build_root()
]
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'],
include_directories : includes,
dependencies : common_deps + [m_dep],
link_with : [datetime_panel_lib],
c_args : cflags
)
endforeach
test(
'test-datetime',
find_program('test-datetime.py'),
env : env,
timeout : 10
)