Add a test for getting the path of a found program

pull/388/head
Nirbheek Chauhan 9 years ago
parent 601ff91622
commit fabb49773e
  1. 11
      test cases/common/105 find program path/meson.build
  2. 3
      test cases/common/105 find program path/program.py

@ -0,0 +1,11 @@
project('find program', 'c')
prog = find_program('program.py')
# Use either Python3 or 2 to run this
python = find_program('python3', required : false)
if not python.found()
python = find_program('python')
endif
run_command(python, prog.path())

@ -0,0 +1,3 @@
#!/usr/bin/env python3
print("Found")
Loading…
Cancel
Save