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
50
51
52
53
54
55
56
57
|
test_names = [
'babl_class_name',
'cairo_cmyk_hack',
'cairo-RGB24',
'cmyk',
'chromaticities',
'conversions',
'extract',
'floatclamp',
'float-to-8bit',
'format_with_space',
'grayscale_to_rgb',
'hsl',
'hsva',
'models',
'n_components',
'n_components_cast',
'nop',
'palette',
'rgb_to_bgr',
'rgb_to_ycbcr',
'sanity',
'srgb_to_lab_u8',
'transparent',
'alpha_symmetric_transform',
'types',
]
if platform_unix
test_names += [
'concurrency-stress-test',
'palette-concurrency-stress-test',
]
endif
test_env = environment()
test_env.prepend('LD_LIBRARY_PATH', join_paths(meson.build_root(), 'babl'))
test_env.set('GI_TYPELIB_PATH', join_paths(meson.build_root(), 'babl'))
test_env.set('BABL_PATH', join_paths(meson.build_root(), 'extensions'))
foreach test_name : test_names
test = executable(
test_name,
test_name + '.c',
include_directories: [ rootInclude, bablInclude, ],
link_with: [ babl, ],
dependencies: [ thread, ],
export_dynamic: true,
install: false,
)
test(test_name,
test,
env: test_env,
workdir: meson.current_build_dir(),
timeout: 120,
)
endforeach
|