summaryrefslogtreecommitdiff
path: root/src/tests/ecore/meson.build
blob: 4c8351a8bc49f4cbcbd72171149d0453dc02899c (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

ecore_suite_src = [
  'ecore_suite.c',
  'ecore_test_ecore.c',
  'ecore_test_ecore_imf.c',
  'ecore_test_idle.c',
  'ecore_test_timer.c',
  'ecore_test_ecore_evas.c',
  'ecore_test_animator.c',
  'ecore_test_ecore_thread_eina_thread_queue.c',
  'ecore_test_ecore_input.c',
  'ecore_test_ecore_file.c',
  'ecore_test_job.c',
  'ecore_test_args.c',
  'ecore_test_pipe.c',
  'ecore_suite.h'
]

ecore_suite_deps = [m]
ecore_suite_deps += ecore
ecore_suite_deps += ecore_file
ecore_suite_deps += ecore_evas
ecore_suite_deps += ecore_input
ecore_suite_deps += ecore_imf

if get_option('audio')
  ecore_suite_deps += ecore_audio
  ecore_suite_src += 'ecore_test_ecore_audio.c'
endif

if get_option('fb')
  ecore_suite_deps += ecore_fb
  ecore_suite_src += 'ecore_test_ecore_fb.c'
endif

if get_option('drm')
  ecore_suite_deps += ecore_drm2
endif

if get_option('x11')
  ecore_suite_src += 'ecore_test_ecore_x.c'
  ecore_suite_deps += ecore_x
endif

ecore_suite = executable('ecore_suite',
  ecore_suite_src,
  dependencies: [ecore_suite_deps, check],
  c_args : [
  '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
  '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
)

test('ecore-suite', ecore_suite,
  timeout : 10*60,
  env : test_env
)