2018-04-06 13:46:47 +02:00
|
|
|
|
|
|
|
|
2020-05-07 20:37:47 +05:30
|
|
|
test_units = [
|
|
|
|
'test-hostname',
|
|
|
|
# 'test-time-entry', # FIXME
|
|
|
|
]
|
2018-04-06 13:46:47 +02:00
|
|
|
|
|
|
|
cflags = [
|
|
|
|
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
|
|
|
|
'-DTEST_TOPSRCDIR="@0@"'.format(meson.source_root())
|
|
|
|
]
|
|
|
|
|
2020-05-07 20:37:47 +05:30
|
|
|
foreach unit: test_units
|
|
|
|
exe = executable(
|
|
|
|
unit,
|
|
|
|
unit + '.c',
|
|
|
|
include_directories : [ top_inc, common_inc ],
|
|
|
|
dependencies : common_deps + [libwidgets_dep],
|
|
|
|
c_args : cflags,
|
|
|
|
)
|
|
|
|
test(unit, exe)
|
|
|
|
endforeach
|