summaryrefslogtreecommitdiff
path: root/test cases/unit/46 native file binary
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-05-02 16:33:08 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-11-14 15:57:37 -0800
commit42ddc30cfef6aebf4f8b595be4ac0dfa6f4da098 (patch)
treee928570b75365a1b1f96cab95ad051c89e989d67 /test cases/unit/46 native file binary
parentcb2a66cdef3776d917031ccecb7f96340eb3a42b (diff)
downloadmeson-42ddc30cfef6aebf4f8b595be4ac0dfa6f4da098.tar.gz
interpreter: allow find_program to use the native file
Diffstat (limited to 'test cases/unit/46 native file binary')
-rw-r--r--test cases/unit/46 native file binary/meson.build6
-rw-r--r--test cases/unit/46 native file binary/meson_options.txt2
2 files changed, 7 insertions, 1 deletions
diff --git a/test cases/unit/46 native file binary/meson.build b/test cases/unit/46 native file binary/meson.build
index 2e458b0bb..3c99929fe 100644
--- a/test cases/unit/46 native file binary/meson.build
+++ b/test cases/unit/46 native file binary/meson.build
@@ -1,3 +1,9 @@
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')
+endif
diff --git a/test cases/unit/46 native file binary/meson_options.txt b/test cases/unit/46 native file binary/meson_options.txt
index df535db86..83d34e84e 100644
--- a/test cases/unit/46 native file binary/meson_options.txt
+++ b/test cases/unit/46 native file binary/meson_options.txt
@@ -1,5 +1,5 @@
option(
'case',
type : 'combo',
- choices : []
+ choices : ['find_program']
)