test_units = [ ['test-general', [libnm_utils, libnm_core]], ['test-nm-client', []], ['test-remote-settings-client', []], ['test-secret-agent', []], ] cflags = [ '-DNETWORKMANAGER_COMPILATION_TEST', '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM', ] + nm_build_cflags foreach test_unit: test_units exe = executable( 'libnm-' + test_unit[0], [ test_unit[0] + '.c', shared_nm_test_utils_impl_c, ], dependencies: [ libnm_dep, nm_core_dep, ], c_args: cflags, link_with: test_unit[1] ) 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_nm_utils_nm_vpn_plugin_utils_c + [libnm_enum[1]], include_directories: libnm_inc, dependencies: nm_core_dep, c_args: cflags )