diff --git a/test/testenv.py b/test/testenv.py index 4cadef11..77f6e88a 100644 --- a/test/testenv.py +++ b/test/testenv.py @@ -7,6 +7,8 @@ import pytest import strictyaml +from test import conf + testext = '.yaml' testdir = os.path.dirname(os.path.abspath(__file__)) rootdir = os.path.dirname(testdir) @@ -43,7 +45,12 @@ def get_directive_string(self): return directive_str def get_clang_args(self): - clang_args = [] + clang_args = getattr(conf, 'hawkmoth_clang', []) + + if self.domain == 'c': + clang_args.extend(getattr(conf, 'hawkmoth_clang_c', [])) + else: + clang_args.extend(getattr(conf, 'hawkmoth_clang_cpp', [])) clang_args.extend(self.options.get('clang', []))