1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
incs = [
top_inc,
shared_inc
]
deps = [
dbus_dep,
dbus_glib_dep,
glib_dep,
libnm_util_dep
]
cflags = [
'-DBUILD_DIR="@0@"'.format(meson.current_build_dir()),
'-DTEST_CERT_DIR="@0@"'.format(test_cert_dir)
]
test = 'test-libnm-linking'
test_libnm_linking = executable(
test,
[test + '.c', libnm_utils_enums_h],
include_directories: incs,
dependencies: deps + [libnm_dep],
c_args: cflags
)
test_units = [
['test-crypto', [libtest_crypto], []],
['test-general', [], [test_libnm_linking]],
['test-secrets', [], []],
['test-setting-8021x', [], []],
['test-setting-dcb', [], []],
['test-settings-defaults', [], []]
]
foreach test_unit: test_units
exe = executable(
'libnm-util-' + test_unit[0],
[test_unit[0] + '.c', libnm_utils_enums_h],
include_directories: incs,
dependencies: deps,
c_args: cflags,
link_with: test_unit[1],
link_depends: test_unit[2]
)
test(test_unit[0], exe)
endforeach
|