summaryrefslogtreecommitdiff
path: root/test cases/unit
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-05-11 09:14:18 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-11-14 15:57:37 -0800
commit091452f8cd886dedc2bc5d3ec292dcf899989a24 (patch)
tree876f93539a8579babb9b9927845912bbe1cc7a3a /test cases/unit
parentf159735c3b82849d0c5d33345b7b07a5f5024428 (diff)
downloadmeson-091452f8cd886dedc2bc5d3ec292dcf899989a24.tar.gz
modules/python3: allow specifying in the native file
Diffstat (limited to 'test cases/unit')
-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 3754dfafd..76d69835a 100644
--- a/test cases/unit/46 native file binary/meson.build
+++ b/test cases/unit/46 native file binary/meson.build
@@ -10,4 +10,8 @@ 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')
+elif case == 'python3'
+ prog = import('python3').find_python()
+ result = run_command(prog, ['--version'])
+ assert(result.stdout().strip().endswith('12345'), 'Didn\'t load python3 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 5663ab353..ef7fe0228 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', 'config_dep']
+ choices : ['find_program', 'config_dep', 'python3']
)