1234567891011121314151617181920212223242526 |
- #!/usr/bin/env python
- import os
- import sys
- # In the Android tree, use the environment variables set by envsetup.sh
- # to determine correct path for the root of the source tree.
- # TODO: To run clang tests, @LLVM_BINARY_DIR@ must be substituted also.
- android_source_root = os.getenv('ANDROID_BUILD_TOP', ".")
- llvm_source_root = os.path.join(android_source_root, 'external', 'llvm')
- libbcc_source_root = os.path.join(android_source_root, 'frameworks', 'compile',
- 'libbcc')
- # 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(libbcc_source_root, 'test', 'debuginfo',
- 'lit.site.cfg')
- }
- if __name__=='__main__':
- import lit
- lit.main(builtin_parameters)
|