diff options
Diffstat (limited to 'clients/common/tests/meson.build')
| -rw-r--r-- | clients/common/tests/meson.build | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/clients/common/tests/meson.build b/clients/common/tests/meson.build index 3eb32a47..624dd89c 100644 --- a/clients/common/tests/meson.build +++ b/clients/common/tests/meson.build @@ -1,23 +1,43 @@ -test_unit = 'test-general' - -deps = [ - libnm_dep, - libnmc_dep, - libnmc_base_dep, - libnm_core_dep, -] +test_name = 'test-clients-common' exe = executable( - 'clients-' + test_unit, - test_unit + '.c', - dependencies: deps, + test_name, + test_name + '.c', + dependencies: [ + libnm_dep, + libnmc_dep, + libnmc_base_dep, + libnm_core_dep, + ], c_args: clients_cflags + [ '-DNETWORKMANAGER_COMPILATION_TEST', ], ) test( - 'clients/' + test_unit, + test_name, test_script, args: test_args + [exe.full_path()], ) + +############################################################################### + +exe = executable( + 'test-libnm-core-aux', + [ 'test-libnm-core-aux.c', ], + c_args: [ + '-DNETWORKMANAGER_COMPILATION_TEST', + '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT', + ], + dependencies: [ + libnm_dep, + shared_nm_libnm_core_aux_dep, + shared_nm_libnm_core_intern_dep, + ], +) + +test( + 'clients/common/tests/test-libnm-core-aux', + test_script, + args: test_args + [exe.full_path()] +) |