NetworkManager/dispatcher/tests/meson.build
Thomas Haller b7426e91db build: use default NM_BUILD_* defines for tests
Use two common defines NM_BUILD_SRCDIR and NM_BUILD_BUILDDIR
for specifying the location of srcdir and builddir.

Note that this is only relevant for tests, as they expect
a certain layout of the directories, to find files that concern
them.
2018-05-31 15:59:38 +02:00

25 lines
474 B
Meson

test_unit = 'test-dispatcher-envp'
incs = [
dispatcher_inc,
libnm_inc
]
exe = executable(
test_unit,
test_unit + '.c',
include_directories: incs,
dependencies: nm_core_dep,
c_args: [
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
] +
nm_build_cflags,
link_with: libnm_dispatcher_core
)
test(
'dispatcher/' + test_unit,
test_script,
args: test_args + [exe.full_path()]
)