File: meson.build

package info (click to toggle)
fribidi 1.0.16-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,024 kB
  • sloc: ansic: 8,767; sh: 4,766; makefile: 372; python: 27
file content (30 lines) | stat: -rw-r--r-- 967 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
tests = [
  ['CapRTL', 'explicit'],
  ['CapRTL', 'implicit'],
  ['CapRTL', 'isolate'],
  ['ISO8859-8', 'hebrew'],
  ['UTF-8', 'persian'],
  ['UTF-8', 'reordernsm'],
]

test_runner = find_program('test-runner.py')

foreach t : tests
  charset = t[0]
  suffix = t[1]
  test_name = '@0@_@1@'.format(charset, suffix)
  input_file = files('test_@0@.input'.format(test_name))
  reference_file = files('test_@0@.reference'.format(test_name))
  test(test_name, test_runner, args: [fribidi, charset, input_file, reference_file])
endforeach

if get_option('fuzzer_ldflags') != ''
  cases = run_command(import('python').find_installation(), '-c',
    '''import os; print('\n'.join(os.listdir('@0@')))'''.format(join_paths(meson.current_source_dir(), 'fuzzing'))
  ).stdout().strip().split('\n')
  foreach case : cases
    test('@0@'.format(case), fribidi_fuzzer, args: [join_paths(meson.current_source_dir(), 'fuzzing', case)])
  endforeach
endif

subdir('unicode-conformance')