add test cases for ds_tizen_renderer
[platform/core/uifw/libds-tizen.git] / tests / meson.build
1 deps_test_common = [
2   deps_libds_tizen,
3   dependency('gmock', required: true),
4   dependency('wayland-client', required: true),
5 ]
6
7 tc_mock_files = [
8   'mockclient.cpp',
9   'mockcompositor.cpp'
10 ]
11
12 ## allcoator_tbm tests
13 tc_allocator_tbm_files = [
14   'tc_main.cpp',
15   'tc_allocator_tbm.cpp',
16 ]
17
18 executable('libds-tizen-allocator-tbm-tests',
19   tc_allocator_tbm_files,
20   dependencies: [
21     deps_test_common,
22     deps_libds_tizen_allocator_tbm,
23     dependency('libdrm', required: true),
24   ],
25   install_dir: libds_tizen_bindir,
26   install : true
27 )
28
29 ## indicator tests
30 tc_indicator_files = [
31   'tc_main.cpp',
32   'tc_indicator.cpp',
33 ]
34
35 executable('libds-tizen-indicator-tests',
36   [
37     tc_mock_files,
38     tc_indicator_files
39   ],
40   dependencies: [
41     deps_test_common,
42     deps_libds_tizen_indicator,
43     dependency('libdrm', required: true),
44   ],
45   install_dir: libds_tizen_bindir,
46   install : true
47 )
48
49 ## clipboard tests
50 tc_clipboard_files = [
51   'tc_main.cpp',
52   'tc_clipboard.cpp',
53 ]
54
55 executable('libds-tizen-clipboard-tests',
56   [
57     tc_mock_files,
58     tc_clipboard_files
59   ],
60   dependencies: [
61     deps_test_common,
62     deps_libds_tizen_clipboard,
63     dependency('libdrm', required: true),
64   ],
65   install_dir: libds_tizen_bindir,
66   install : true
67 )
68
69 ## appinfo tests
70 tc_launch_appinfo_files = [
71   'tc_main.cpp',
72   'tc_launch_appinfo.cpp',
73 ]
74
75 executable('libds-tizen-launch-appinfo-tests',
76   [
77     tc_mock_files,
78     tc_launch_appinfo_files
79   ],
80   dependencies: [
81     deps_test_common,
82     deps_libds_tizen_launch,
83   ],
84   install_dir: libds_tizen_bindir,
85   install : true
86 )
87
88 ## display-policy tests
89 tc_display_policy_files = [
90   'tc_main.cpp',
91   'tc_display_policy.cpp',
92 ]
93
94 executable('libds-tizen-display-policy-tests',
95   [
96     tc_mock_files,
97     tc_display_policy_files
98   ],
99   dependencies: [
100     deps_test_common,
101     deps_libds_tizen_display_policy,
102     dependency('libdrm', required: true),
103   ],
104   install_dir: libds_tizen_bindir,
105   install : true
106 )
107
108 ## memory-flusher tests
109 tc_memory_flusher_files = [
110   'tc_main.cpp',
111   'tc_memory_flusher.cpp',
112 ]
113
114 executable('libds-tizen-memory-flusher-tests',
115   [
116     tc_mock_files,
117     tc_memory_flusher_files
118   ],
119   dependencies: [
120     deps_test_common,
121     deps_libds_tizen_memory_flusher,
122     dependency('libdrm', required: true),
123     dependency('tizen-surface-client', required: true),
124   ],
125   install_dir: libds_tizen_bindir,
126   install : true
127 )
128
129 ## renderer tests
130 tc_renderer_files = [
131   'tc_main.cpp',
132   'tc_renderer.cpp',
133 ]
134
135 executable('libds-tizen-renderer-tests',
136   [
137     tc_mock_files,
138     tc_renderer_files
139   ],
140   dependencies: [
141     deps_test_common,
142     deps_libds_tizen_renderer,
143     dependency('libdrm', required: true),
144     dependency('tizen-extension-client', required: true),
145   ],
146   install_dir: libds_tizen_bindir,
147   install : true
148 )