2019-08-02 11:18:17 +02:00
|
|
|
test_unit = 'test-shared-general'
|
|
|
|
|
|
2019-09-03 13:41:18 +02:00
|
|
|
c_flags = [
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
|
|
|
|
|
]
|
|
|
|
|
|
2019-08-02 11:18:17 +02:00
|
|
|
exe = executable(
|
|
|
|
|
test_unit,
|
|
|
|
|
test_unit + '.c',
|
2019-09-03 13:41:18 +02:00
|
|
|
c_args: c_flags,
|
2019-09-03 09:48:59 +02:00
|
|
|
dependencies: libnm_utils_base_dep,
|
|
|
|
|
link_with: libnm_systemd_logging_stub,
|
2019-08-02 11:18:17 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
test(
|
|
|
|
|
'shared/nm-utils/' + test_unit,
|
|
|
|
|
test_script,
|
|
|
|
|
args: test_args + [exe.full_path()],
|
|
|
|
|
timeout: default_test_timeout,
|
|
|
|
|
)
|