aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
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 /run_unittests.py
parent42ddc30cfef6aebf4f8b595be4ac0dfa6f4da098 (diff)
downloadmeson-caf1066cd198ecf66cc5a4e2958627e5a4a5c26b.zip
meson-caf1066cd198ecf66cc5a4e2958627e5a4a5c26b.tar.gz
meson-caf1066cd198ecf66cc5a4e2958627e5a4a5c26b.tar.bz2
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 'run_unittests.py')
-rwxr-xr-xrun_unittests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index b375629..cd1bf62 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -4548,6 +4548,12 @@ class NativeFileTests(BasePlatformTests):
def test_find_program(self):
self._simple_test('find_program', 'bash')
+ def test_config_tool_dep(self):
+ # Do the skip at this level to avoid screwing up the cache
+ if not shutil.which('llvm-config'):
+ raise unittest.SkipTest('No llvm-installed, cannot test')
+ self._simple_test('config_dep', 'llvm-config')
+
def unset_envs():
# For unit tests we must fully control all command lines