File: meson.build

package info (click to toggle)
libhinoko 1.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: ansic: 2,557; python: 693; makefile: 9; javascript: 5
file content (31 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
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
tests = [
  'hinoko-enum',
  'fw-iso-ctx',
  'fw-iso-ir-single',
  'fw-iso-ir-multiple',
  'fw-iso-it',
  'fw-iso-resource',
  'fw-iso-resource-auto',
  'fw-iso-resource-once',
  'hinoko-functions',
]

builddirs = []
builddirs += join_paths(meson.project_build_root(), 'src')
if hinawa_is_subproject
  builddirs += hinawa_gir_dir
endif

envs = environment()
envs.append('LD_LIBRARY_PATH', builddirs, separator : ':')
envs.append('GI_TYPELIB_PATH', builddirs, separator : ':')

foreach test : tests
  name = test
  script = test
  prog = find_program(script)
  test(name, prog,
    env: envs,
    depends: hinoko_gir,
  )
endforeach