diff options
Diffstat (limited to 'dispatcher/tests/meson.build')
| -rw-r--r-- | dispatcher/tests/meson.build | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dispatcher/tests/meson.build b/dispatcher/tests/meson.build new file mode 100644 index 00000000..1368a1f3 --- /dev/null +++ b/dispatcher/tests/meson.build @@ -0,0 +1,27 @@ +test_unit = 'test-dispatcher-envp' + +incs = [ + dispatcher_inc, + libnm_inc +] + +cflags = [ + '-DNETWORKMANAGER_COMPILATION_TEST', + '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT', + '-DSRCDIR="@0@"'.format(meson.current_source_dir()), +] + +exe = executable( + test_unit, + test_unit + '.c', + include_directories: incs, + dependencies: nm_core_dep, + c_args: cflags, + link_with: libnm_dispatcher_core +) + +test( + 'dispatcher/' + test_unit, + test_script, + args: test_args + [exe.full_path()] +) |