mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 17:34:47 +00:00
4c70d9ffe9
Backport a few fixes from rawhide concerning tests setup and CI integration.
18 lines
852 B
Python
18 lines
852 B
Python
|
|
config.llvm_tools_dir = '/usr/bin'
|
|
config.llvm_src_root = '/usr/share/llvm/src'
|
|
config.llvm_shlib_dir = '%(llvm_shlib_dir)s' % lit_config.params
|
|
|
|
if hasattr(config, 'host_triple'):
|
|
# This means we are running lit regression tests
|
|
|
|
# Regression tests write output to this directory, so we need to be able to specify
|
|
# a temp directory when invoking lit. e.g. lit -Dllvm_obj_root=/tmp/lit
|
|
config.llvm_obj_root = "%(llvm_obj_root)s" % lit_config.params
|
|
lit_config.load_config(config, '%(llvm_test_root)s/lit.cfg.py' % lit_config.params)
|
|
else:
|
|
# This means we are running lit unit tests
|
|
|
|
# For unit tests, llvm_obj_root is used to find the unit test binaries.
|
|
config.llvm_obj_root = '%(llvm_unittest_bindir)s' % lit_config.params
|
|
lit_config.load_config(config, '%(llvm_test_root)s/Unit/lit.cfg.py' % lit_config.params)
|