summaryrefslogtreecommitdiff
path: root/src/tests/efreet/meson.build
blob: 27ce1a0cc0c45733495cab4d5fded666002034a5 (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
57
58
59
60
61
62
63
64
65
66
efreet_suite_src = [
  'efreet_suite.c',
  'efreet_suite.h',
  'efreet_test_efreet.c',
  'efreet_test_efreet_cache.c'
]

efreet_suite = executable('efreet_suite',
  efreet_suite_src,
  dependencies: [check, efreet],
  include_directories : config_dir,
  c_args : [
  '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
  '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"']
)

test('efreet-suite', efreet_suite,
  env : test_env
)

efreet_test_src = [
  'ef_data_dirs.c',
  'ef_desktop.c',
  'ef_icon_theme.c',
  'ef_ini.c',
  'ef_locale.c',
  'ef_menu.c',
  'ef_mime.c',
  'ef_test.h',
  'ef_utils.c',
  'main.c'
]

efreet_test = executable('efreet_test',
  efreet_test_src,
  dependencies: [check, efreet, ecore, ecore_file, efreet_mime],
  include_directories : config_dir,
  c_args : [
  package_c_args,
  '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
  '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
  '-DDATA_DIR="'+dir_data+'"']
)

additional_tests = [
  'efreet_async_test',
  'efreet_spec_test',
  'efreet_icon_cache_dump',
  'efreet_user_dir',
  join_paths('compare', 'efreet_alloc'),
  join_paths('compare', 'efreet_menu_alloc')
]

foreach additional_test : additional_tests
  efreet_tmp = executable(additional_test.underscorify(),
    additional_test+'.c',
    dependencies: [check, efreet, ecore, eet, ecore_file, efreet_mime],
    include_directories : config_dir,
    c_args : [
    package_c_args,
    '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"',
    '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"',
    '-DDATA_DIR="'+dir_data+'"']
  )

endforeach