2017-11-25 11:39:06 +01:00
|
|
|
test_unit = 'test-dispatcher-envp'
|
|
|
|
|
|
|
|
|
|
incs = [
|
2018-01-07 15:39:42 +01:00
|
|
|
dispatcher_inc,
|
|
|
|
|
libnm_inc
|
2017-11-25 11:39:06 +01:00
|
|
|
]
|
|
|
|
|
|
2018-01-02 13:37:06 +01:00
|
|
|
cflags = [
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
|
|
|
|
|
'-DSRCDIR="@0@"'.format(meson.current_source_dir()),
|
|
|
|
|
]
|
2017-11-25 11:39:06 +01:00
|
|
|
|
|
|
|
|
exe = executable(
|
|
|
|
|
test_unit,
|
2018-01-07 15:39:42 +01:00
|
|
|
test_unit + '.c',
|
2017-11-25 11:39:06 +01:00
|
|
|
include_directories: incs,
|
2018-01-07 15:39:42 +01:00
|
|
|
dependencies: nm_core_dep,
|
2017-11-25 11:39:06 +01:00
|
|
|
c_args: cflags,
|
|
|
|
|
link_with: libnm_dispatcher_core
|
|
|
|
|
)
|
|
|
|
|
|
2018-04-11 10:49:33 +02:00
|
|
|
test(
|
2018-04-11 14:47:07 +02:00
|
|
|
'dispatcher/' + test_unit,
|
2018-04-11 10:49:33 +02:00
|
|
|
test_script,
|
|
|
|
|
args: test_args + [exe.full_path()]
|
|
|
|
|
)
|