diff --git a/test cases/common/105 find program path/meson.build b/test cases/common/105 find program path/meson.build new file mode 100644 index 000000000..b21d6598e --- /dev/null +++ b/test cases/common/105 find program path/meson.build @@ -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()) diff --git a/test cases/common/105 find program path/program.py b/test cases/common/105 find program path/program.py new file mode 100644 index 000000000..2ebc56419 --- /dev/null +++ b/test cases/common/105 find program path/program.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python3 + +print("Found")