-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
30 lines (26 loc) · 967 Bytes
/
meson.build
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_@[email protected]'.format(test_name))
reference_file = files('test_@[email protected]'.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')