mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
b7698a49c2
build and has the object build directory baked into it. This allows 'llvm-lit' to properly find the information needed to run the test suite in all cases, without requiring the user to have LLVM or 'lit' available in their PATH, for example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110000 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
574 B
Python
22 lines
574 B
Python
#!/usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Variables configured at build time.
|
|
llvm_source_root = "@LLVM_SOURCE_DIR@"
|
|
llvm_obj_root = "@LLVM_BINARY_DIR@"
|
|
|
|
# Make sure we can find the lit package.
|
|
sys.path.append(os.path.join(llvm_source_root, 'utils', 'lit'))
|
|
|
|
# Set up some builtin parameters, so that by default the LLVM test suite
|
|
# configuration file knows how to find the object tree.
|
|
builtin_parameters = {
|
|
'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg')
|
|
}
|
|
|
|
if __name__=='__main__':
|
|
import lit
|
|
lit.main(builtin_parameters)
|