summaryrefslogtreecommitdiff
path: root/src/tests/elementary/meson.build
blob: 1b43da70643eeabe008781d16f305bc325317a17 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
priv_eo_files = [
   'custom_gesture.eo',
   'custom_recognizer.eo',
   'custom_recognizer2.eo',
   'focus_test.eo',
   'focus_test_sub_main.eo',
   'focus_manager_test.eo'
]

priv_eo_file_target = []
foreach eo_file : priv_eo_files
  priv_eo_file_target += custom_target('eolian_gen_' + eo_file,
    input : eo_file,
    output : [eo_file + '.h'],
    depfile : eo_file + '.d',
    command : eolian_gen + [ '-I', meson.current_source_dir(), eolian_include_directories,
                           '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
                           '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
                           '-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'),
                           '-gchd', '@INPUT@'])
endforeach


elementary_suite_src = [
  'elm_suite.c',
  'elm_suite_build.c',
  'suite_helpers.c',
  'elm_test_atspi.c',
  'elm_test_check.c',
  'elm_test_colorselector.c',
  'elm_test_entry.c',
  'elm_test_init.c',
  'elm_test_list.c',
  'elm_test_button.c',
  'elm_test_image.c',
  'elm_test_photo.c',
  'elm_test_actionslider.c',
  'elm_test_box.c',
  'elm_test_table.c',
  'elm_test_thumb.c',
  'elm_test_menu.c',
  'elm_test_photocam.c',
  'elm_test_win.c',
  'elm_test_icon.c',
  'elm_test_prefs.c',
  'elm_test_map.c',
  'elm_test_glview.c',
  'elm_test_web.c',
  'elm_test_toolbar.c',
  'elm_test_grid.c',
  'elm_test_diskselector.c',
  'elm_test_notify.c',
  'elm_test_mapbuf.c',
  'elm_test_flip.c',
  'elm_test_layout.c',
  'elm_test_slider.c',
  'elm_test_ctxpopup.c',
  'elm_test_separator.c',
  'elm_test_calendar.c',
  'elm_test_inwin.c',
  'elm_test_gengrid.c',
  'elm_test_radio.c',
  'elm_test_scroller.c',
  'elm_test_frame.c',
  'elm_test_datetime.c',
  'elm_test_player.c',
  'elm_test_bg.c',
  'elm_test_video.c',
  'elm_test_segmentcontrol.c',
  'elm_test_progressbar.c',
  'elm_test_fileselector.c',
  'elm_test_fileselector_button.c',
  'elm_test_fileselector_entry.c',
  'elm_test_hoversel.c',
  'elm_test_multibuttonentry.c',
  'elm_test_naviframe.c',
  'elm_test_popup.c',
  'elm_test_bubble.c',
  'elm_test_clock.c',
  'elm_test_conformant.c',
  'elm_test_dayselector.c',
  'elm_test_flipselector.c',
  'elm_test_genlist.c',
  'elm_test_hover.c',
  'elm_test_index.c',
  'elm_test_label.c',
  'elm_test_panel.c',
  'elm_test_panes.c',
  'elm_test_slideshow.c',
  'elm_test_spinner.c',
  'elm_test_plug.c',
  'elm_test_config.c',
  'elm_code_file_test_load.c',
  'elm_code_file_test_memory.c',
  'elm_code_test_basic.c',
  'elm_code_test_line.c',
  'elm_code_test_parse.c',
  'elm_code_test_syntax.c',
  'elm_code_test_text.c',
  'elm_code_test_indent.c',
  'elm_code_test_widget.c',
  'elm_code_test_widget_text.c',
  'elm_code_test_widget_selection.c',
  'elm_code_test_widget_undo.c',
  'elm_test_widget_focus.c',
  'elm_test_widget_basics.c'
]

elementary_suite = executable('elementary_suite',
  elementary_suite_src,
  dependencies: [check, eina, elementary, elementary_deps],
  include_directories : [config_dir] + [elementary_config_dir],
  c_args : [
  '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
  '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
  '-DELM_IMAGE_DATA_DIR="'+join_paths(meson.source_root(), 'data', 'elementary')+'"',
  '-DELM_TEST_DATA_DIR="'+join_paths(meson.build_root(), 'data', 'elementary')+'"',
  ]
)

efl_ui_suite_src = [
  'efl_ui_suite.c',
  'efl_ui_build.c',
  'suite_helpers.c',
  'suite_helpers.h',
  'elm_test_init.c',
  'efl_ui_test_win.c',
  'efl_ui_test_atspi.c',
  'efl_ui_test_callback.c',
  'efl_ui_test_config.c',
  'efl_ui_test_focus_common.c',
  'efl_ui_test_focus_common.h',
  'efl_ui_test_focus.c',
  'efl_ui_test_focus_sub.c',
  'efl_ui_test_gesture.c',
  'efl_ui_test_box.c',
  'efl_ui_test_box_flow.c',
  'efl_ui_test_box_stack.c',
  'efl_ui_test_table.c',
  'efl_ui_test_grid.c',
  'efl_ui_test_relative_container.c',
  'efl_ui_test_image.c',
  'efl_ui_test_image_zoomable.c',
  'efl_ui_test_layout.c',
  'efl_ui_suite.h',
  'efl_ui_model.c',
  'efl_ui_test_widget.c',
  'efl_ui_test_spotlight.c',
  'efl_ui_test_check.c',
  'efl_ui_test_radio_group.c',
  'efl_ui_test_progressbar.c',
  'efl_ui_test_spin.c',
  'efl_ui_test_spin_button.c',
  'efl_ui_test_slider.c',
  'efl_ui_test_collection_common.c',
  'efl_ui_test_collection.c',
  'efl_ui_test_collection_view.c',
  'efl_ui_test_list_collection.c',
  'efl_ui_test_grid_collection.c',
  'efl_ui_test_position_manager_common.c',
  'efl_ui_test_popup.c',
  'efl_ui_test_scroller.c',
  'efl_ui_test_select_model.c',
  'efl_ui_test_view_model.c',
  'efl_ui_test_group_item.c',
  'efl_ui_test_text.c',
  'efl_ui_test_vg_animation.c',
  'custom_gesture.c',
  'custom_recognizer.c',
  'custom_recognizer2.c',
]

efl_ui_suite = executable('efl_ui_suite',
  efl_ui_suite_src, priv_eo_file_target,
  dependencies: [check, eina, elementary, elementary_deps],
  include_directories : [config_dir] + [elementary_config_dir],
  c_args : [
  '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
  '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
  '-DELM_IMAGE_DATA_DIR="'+join_paths(meson.source_root(), 'data', 'elementary')+'"',
  '-DELM_TEST_DATA_DIR="'+join_paths(meson.build_root(), 'data', 'elementary')+'"',
  ]
)

efl_ui_compile_test = executable('efl_ui_compile_test',
  'efl_ui_compile_test.c',
  dependencies: [elementary, eio],
)

executable('efl_ui_window_cnp_dnd_slave',
  'efl_ui_window_cnp_dnd_slave.c',
  dependencies: [elementary],
)

test('elementary-suite', elementary_suite,
  env : test_env
)

test('efl-ui-suite', efl_ui_suite,
  env : test_env
)

install_data(files(['testdiff.diff', 'testfile-windows.txt', 'testfile-withblanks.txt', 'testfile.txt']),
  install_dir : join_paths(dir_data, 'elementary')
)
subdir('spec')