2018-04-06 13:46:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
test_unit = 'test-hostname'
|
|
|
|
|
|
|
|
sources = files(
|
|
|
|
test_unit + '.c'
|
|
|
|
)
|
|
|
|
|
|
|
|
cflags = [
|
|
|
|
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
|
|
|
|
'-DTEST_TOPSRCDIR="@0@"'.format(meson.source_root())
|
|
|
|
]
|
|
|
|
|
|
|
|
exe = executable(
|
2018-05-03 00:45:29 -03:00
|
|
|
test_unit,
|
|
|
|
sources,
|
|
|
|
include_directories : [ top_inc, common_inc ],
|
|
|
|
dependencies : common_deps + [libwidgets_dep],
|
|
|
|
c_args : cflags,
|
2018-04-06 13:46:47 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
test(test_unit, exe)
|
|
|
|
|