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
|
test_env = [
'GUPNP_AV_DATADIR="@0@"'.format(join_paths(meson.source_root(), 'data')),
'MALLOC_PERTURB_=170',
'MALLOC_CHECK_=2'
]
tests = [
'regression',
'didl-lite-object',
'media-collection',
'last-change-parser',
'cds-last-change-parser'
]
foreach subtest : tests
test_name = 'test-' + subtest
test_source = test_name + '.c'
test(
test_name,
executable(
test_name,
test_source,
dependencies : [gupnp_av, gobject, libxml],
c_args: [common_cflags, '-DDATA_PATH="@0@"'.format(meson.current_source_dir())]
),
env : test_env
)
endforeach
|