aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/190 escape and unicode/meson.build
blob: 65377b6a3fd38e478893045f92fddcba79c0a46c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
project('180 escape', 'c')

gen = generator(find_program('file.py'), arguments:['@INPUT@', 'erd\u0151', '@OUTPUT@'], output: '@BASENAME@')

gen_file = gen.process('file.c.in')

find_file_list = run_command(find_program('find.py'))
assert(find_file_list.returncode() == 0, 'Didn\'t find any files.')

# Strings should support both octal \ooo and hex \xhh encodings

found_files_oct = []
foreach l : find_file_list.stdout().strip('\0').split('\000')
  found_files_oct += [files(l)]
endforeach

test('first', executable('first', found_files_oct + [gen_file]))

found_files_hex = []
foreach l : find_file_list.stdout().strip('\x00').split('\x00')
  found_files_hex += [files(l)]
endforeach

test('second', executable('second', found_files_hex + [gen_file]))