aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/71 cross test passed/meson.build
blob: 4deb74baf7843e885166399ca7cb4e6ae22bab80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project(
  'cross test passed',
  'c',
  version : '>= 0.51'
)

e = executable('exec', 'src/main.c')

py = import('python').find_installation()

test('root', e)
test('main', py, args : [meson.current_source_dir() / 'script.py', e])

wrapper_args = []
if get_option('expect')
  wrapper_args += '--expected'
endif

test('exe_wrapper in env', py, args : [meson.current_source_dir() / 'exewrapper.py', e, wrapper_args])