summaryrefslogtreecommitdiff
path: root/src/tests/elementary/spec/meson.build
blob: 8b28e2cdd2fea7213fab183c5d77df811298411a (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
efl_ui_suite_behavior_test_files = files([
  'efl_test_pack.c',
  'efl_test_pack_linear.c',
  'efl_test_content.c',
  'efl_test_gfx_arrangement.c',
  'efl_test_clickable.c',
  'efl_test_format.c',
  'efl_test_range_display.c',
  'efl_test_range_interactive.c',
  'efl_test_ui_view.c',
  'efl_test_single_selectable.c',
  'efl_test_multi_selectable.c',
  'efl_test_selectable.c',
  'efl_test_gfx_view.c',
  'efl_test_basics.c'
])

efl_ui_suite_behavior_src = files([
  join_paths('..','suite_helpers.c'),
  join_paths('..','suite_helpers.h'),
  join_paths('..','elm_test_init.c'),
  'efl_ui_spec_suite.c',
  'efl_test_container.c',
]) + efl_ui_suite_behavior_test_files

test_generator = find_program('generator.py')

generated_test_parts = custom_target('generate_test_suite',
  input: efl_ui_suite_behavior_test_files,
  output: 'efl_ui_spec_suite_gen.x',
  command: [test_generator, '@INPUT@', '@OUTPUT@'],
)

efl_ui_behavior_suite = executable('efl_ui_spec_suite',
  efl_ui_suite_behavior_src + [generated_test_parts] + [priv_eo_file_target],
  dependencies: [check, eina, elementary, elementary_deps],
  include_directories : [config_dir] + [elementary_config_dir] + [include_directories('../')],
  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')+'"',
  ]
)

test('efl_ui_spec-suite', efl_ui_behavior_suite,
  env : test_env
)