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 /libnm/tests/meson.build | |
| parent | 7e9ff09fcb2366b383b7ebbec80d2f6fff117290 (diff) | |
New upstream version 1.11.3 upstream/1.11.3
Diffstat (limited to 'libnm/tests/meson.build')
| -rw-r--r-- | libnm/tests/meson.build | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/libnm/tests/meson.build b/libnm/tests/meson.build new file mode 100644 index 00000000..c47814b3 --- /dev/null +++ b/libnm/tests/meson.build @@ -0,0 +1,42 @@ +test_units = [ + ['test-general', shared_utils, [libnm_utils]], + ['test-nm-client', shared_test_utils, []], + ['test-remote-settings-client', shared_test_utils, []], + ['test-secret-agent', shared_test_utils, []] +] + +deps = [ + libnm_dep, + nm_core_dep +] + +cflags = [ + '-DNETWORKMANAGER_COMPILATION_TEST', + '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM', + '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tools', 'test-networkmanager-service.py')) +] + +foreach test_unit: test_units + exe = executable( + 'libnm-' + test_unit[0], + [test_unit[0] + '.c'] + test_unit[1], + dependencies: deps, + c_args: cflags, + link_with: test_unit[2] + ) + + test( + 'libnm/' + test_unit[0], + test_script, + args: test_args + [exe.full_path()] + ) +endforeach + +# just test, that we can build "nm-vpn-plugin-utils.c" +libnm_vpn_plugin_utils_test = static_library( + 'nm-vpn-plugin-utils-test', + sources: shared_vpn_plugin_utils + [libnm_enum[1]], + include_directories: libnm_inc, + dependencies: nm_core_dep, + c_args: cflags +) |