2018-04-03 19:26:57 +02:00
|
|
|
|
|
|
|
test_units = [
|
2018-05-03 00:45:29 -03:00
|
|
|
'test-timezone',
|
2018-04-03 19:26:57 +02:00
|
|
|
'test-timezone-gfx',
|
|
|
|
'test-endianess',
|
|
|
|
]
|
|
|
|
|
|
|
|
includes = [top_inc, include_directories('../../panels/datetime')]
|
2018-05-09 17:44:46 -03:00
|
|
|
env = [
|
|
|
|
'G_MESSAGES_DEBUG=all',
|
2018-05-09 18:17:27 -03:00
|
|
|
'BUILDDIR=' + meson.current_build_dir(),
|
2018-12-07 15:39:07 +01:00
|
|
|
'TOP_BUILDDIR=' + meson.build_root(),
|
|
|
|
# Disable ATK, this should not be required but it caused CI failures -- 2018-12-07
|
|
|
|
'NO_AT_BRIDGE=1'
|
2018-05-09 17:44:46 -03:00
|
|
|
]
|
2018-04-03 19:26:57 +02:00
|
|
|
cflags = [
|
|
|
|
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
|
|
|
|
'-DSRCDIR="@0@"'.format(meson.source_root() + '/panels/datetime')
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach unit: test_units
|
|
|
|
exe = executable(
|
2018-05-03 00:45:29 -03:00
|
|
|
unit,
|
|
|
|
[unit + '.c'],
|
|
|
|
include_directories : includes,
|
|
|
|
dependencies : common_deps + [m_dep],
|
|
|
|
link_with : [datetime_panel_lib],
|
|
|
|
c_args : cflags
|
2018-04-03 19:26:57 +02:00
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2018-05-09 18:17:27 -03:00
|
|
|
test(
|
|
|
|
'test-datetime',
|
|
|
|
find_program('test-datetime.py'),
|
|
|
|
env : env,
|
2018-07-14 15:30:31 -03:00
|
|
|
timeout : 60
|
|
|
|
)
|