summaryrefslogtreecommitdiffstats
path: root/waf_libbsd.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-09-30 15:31:23 +1000
committerChris Johns <chrisj@rtems.org>2020-09-30 15:31:53 +1000
commit7027254d293cf3a8c888bd9f25052e96f458bc67 (patch)
treea192929db0931c6b9a9f9dbced1f35152eccce67 /waf_libbsd.py
parentAdd moxie support (diff)
downloadrtems-libbsd-7027254d293cf3a8c888bd9f25052e96f458bc67.tar.bz2
waf: Fix test module dependency check
Diffstat (limited to 'waf_libbsd.py')
-rw-r--r--waf_libbsd.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/waf_libbsd.py b/waf_libbsd.py
index ac7c2752..3e15e9e6 100644
--- a/waf_libbsd.py
+++ b/waf_libbsd.py
@@ -572,13 +572,18 @@ class Builder(builder.ModuleManager):
tests = []
if 'tests' in self.data:
tests = self.data['tests']['user']
+ enabled_modules = self.getEnabledModules()
for testName in sorted(tests):
test = tests[testName]['all']
test_source = []
libs = ['bsd', 'm', 'z', 'rtemstest']
for cfg in test:
build_test = True
- if cfg != 'default':
+ for mod in test[cfg]['modules']:
+ if mod not in enabled_modules:
+ build_test = False
+ break
+ if build_test and cfg != 'default':
for c in cfg.split(' '):
if not bld.env['HAVE_%s' % (c)]:
build_test = False