aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/elementary/spec/meson.build
blob: 0f72b54fad75d55e6efed3a738a76b2ce1ac84c7 (plain) (blame)
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

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_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],
  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
)