diff options
| author | Michael Biebl <biebl@debian.org> | 2018-04-23 18:00:21 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-04-23 18:00:21 +0200 |
| commit | f60117b41d5433be1b4a96d82cd11d0c3dce9b63 (patch) | |
| tree | 2dd55c4ab0fdcbe9cddb26adb4a554b1a45c73c8 /dispatcher/tests | |
| parent | 7e9ff09fcb2366b383b7ebbec80d2f6fff117290 (diff) | |
New upstream version 1.11.3 upstream/1.11.3
Diffstat (limited to 'dispatcher/tests')
| -rw-r--r-- | dispatcher/tests/meson.build | 27 | ||||
| -rw-r--r-- | dispatcher/tests/test-dispatcher-envp.c | 1 |
2 files changed, 27 insertions, 1 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()] +) diff --git a/dispatcher/tests/test-dispatcher-envp.c b/dispatcher/tests/test-dispatcher-envp.c index 6dd4db07..25cd5e60 100644 --- a/dispatcher/tests/test-dispatcher-envp.c +++ b/dispatcher/tests/test-dispatcher-envp.c @@ -24,7 +24,6 @@ #include <stdlib.h> #include <string.h> -#include "nm-core-internal.h" #include "nm-dispatcher-utils.h" #include "nm-dispatcher-api.h" |