summaryrefslogtreecommitdiff
path: root/test cases/unit/46 native file binary
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-05-02 16:22:08 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-11-14 15:57:37 -0800
commitcaf1066cd198ecf66cc5a4e2958627e5a4a5c26b (patch)
tree4795fb4627766b33628ba639930a449aa7b06655 /test cases/unit/46 native file binary
parent42ddc30cfef6aebf4f8b595be4ac0dfa6f4da098 (diff)
downloadmeson-caf1066cd198ecf66cc5a4e2958627e5a4a5c26b.tar.gz
dependencies: Allow config tool dependencies to use native files
This allows tools like llvm-config to be selected from the config file Fixes: #3327
Diffstat (limited to 'test cases/unit/46 native file binary')
-rw-r--r--test cases/unit/46 native file binary/meson.build4
-rw-r--r--test cases/unit/46 native file binary/meson_options.txt2
2 files changed, 5 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 3c99929fe..3754dfafd 100644
--- a/test cases/unit/46 native file binary/meson.build
+++ b/test cases/unit/46 native file binary/meson.build
@@ -6,4 +6,8 @@ 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')
+elif case == 'config_dep'
+ add_languages('cpp')
+ dep = dependency('llvm')
+ assert(dep.get_configtool_variable('version').endswith('12345'), 'Didn\'t load llvm 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 83d34e84e..5663ab353 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 : ['find_program']
+ choices : ['find_program', 'config_dep']
)