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
58
59
60
61
62
63
64
65
66
67
68
|
PROGS = [
'account_option',
'account_manager',
'authorization_request',
'circular_buffer',
'contact',
'contact_info',
'contact_manager',
'conversation',
'conversation_member',
'credential_manager',
'credential_provider',
'history_adapter',
'history_manager',
'image',
'keyvaluepair',
'markup',
'menu',
'message',
'notification',
'notification_manager',
'person',
'presence',
'protocol',
'protocol_action',
'protocol_xfer',
'purplepath',
'queued_output_stream',
'request_field',
'request_group',
'request_page',
'saved_presence',
'str',
'tags',
'util',
'whiteboard_manager',
'xmlnode',
]
test_ui = static_library(
'test-ui',
'test_ui.c',
'test_ui.h',
c_args: [
'-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir()),
'-DG_LOG_USE_STRUCTURED',
'-DG_LOG_DOMAIN="Purple-TestUI"',
],
dependencies: [libpurple_dep, glib]
)
testenv.set('XDG_CONFIG_HOME', meson.current_build_dir() / 'config')
foreach prog : PROGS
e = executable(f'test_@prog@', f'test_@prog@.c',
c_args : [
'-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
],
dependencies : [libpurple_dep, glib],
link_with: test_ui,
)
test(prog, e,
env: testenv,
)
endforeach
subdir('avatar')
subdir('sqlite3')
|