Debian Codegraph @

test cases/unit/11 cross prog/meson.build

raw
1 project('cross find program', 'c')
2
3 native_exe = find_program('sometool.py', native : true)
4 cross_exe = find_program('sometool.py')
5 cross_other_exe = find_program('someothertool.py')
6
7 native_out = run_command(native_exe, check: true).stdout().strip()
8 cross_out = run_command(cross_exe, check: true).stdout().strip()
9 cross_other_out = run_command(cross_other_exe, check: true).stdout().strip()
10
11 assert(native_out == 'native',
12 'Native output incorrect:' + native_out)
13 assert(cross_out == 'cross',
14 'Cross output incorrect:' + cross_out)
15 assert(cross_out == cross_other_out,
16 'Cross output incorrect:' + cross_other_out)