diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2018-05-02 16:33:08 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2018-11-14 15:57:37 -0800 |
| commit | 42ddc30cfef6aebf4f8b595be4ac0dfa6f4da098 (patch) | |
| tree | e928570b75365a1b1f96cab95ad051c89e989d67 /test cases | |
| parent | cb2a66cdef3776d917031ccecb7f96340eb3a42b (diff) | |
| download | meson-42ddc30cfef6aebf4f8b595be4ac0dfa6f4da098.tar.gz | |
interpreter: allow find_program to use the native file
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/unit/46 native file binary/meson.build | 6 | ||||
| -rw-r--r-- | test cases/unit/46 native file binary/meson_options.txt | 2 |
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'] ) |
