gnome-control-center/tests/datetime/meson.build
Nelson Benítez León 6fb6ba1dc9 meson: improve comment and fix deprecated functions
- Clarify that 'mm-glib' dep is for ModemManager (not Network
   Manager which is below). The comment also helps people
   which may confuse it with glibmm library.

 - Fix following Meson warning about two deprecated functions:
   WARNING: Deprecated features used:
   * 0.56.0: {'dependency.get_pkgconfig_variable', 'meson.source_root'}
2023-05-02 11:33:31 +00:00

34 lines
782 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.project_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
)