aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/47 native file binary/meson.build
blob: c9b6e5de4745c11709e9786b41b8c0f6eaf2b8e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
project('test project')

case = get_option('case')

if case == 'find_program'
  prog = find_program('bash')
  result = run_command(prog, ['--version'])
  assert(result.stdout().strip().endswith('12345'), 'Didn\'t load bash from config file')
elif case == 'config_dep'
  add_languages('cpp')
  dep = dependency('llvm', method : 'config-tool')
  assert(dep.get_configtool_variable('version').endswith('12345'), 'Didn\'t load llvm from config file')
elif case == 'python3'
  prog = import('python3').find_python()
  result = run_command(prog, ['--version'])
  assert(result.stdout().strip().endswith('12345'), 'Didn\'t load python3 from config file')
elif case == 'python'
  prog = import('python').find_installation()
  result = run_command(prog, ['--version'])
  assert(result.stdout().strip().endswith('12345'), 'Didn\'t load python from config file')
endif