summaryrefslogtreecommitdiff
path: root/tests/datetime/meson.build
blob: 3e7a3785157347b4ffee540c3c8e63a1deeeaf80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

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(),
# 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'],
    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 : 60
)