diff options
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'] ) |
