3ff2c2489c45772092b8a0889b8976b2ab4739fd
[oota-llvm.git] / utils / llvm-lit / llvm-lit.in
1 #!/usr/bin/env python
2
3 import os
4 import sys
5
6 # Variables configured at build time.
7 llvm_source_root = "@LLVM_SOURCE_DIR@"
8 llvm_obj_root = "@LLVM_BINARY_DIR@"
9
10 # Make sure we can find the lit package.
11 sys.path.append(os.path.join(llvm_source_root, 'utils', 'lit'))
12
13 # Set up some builtin parameters, so that by default the LLVM test suite
14 # configuration file knows how to find the object tree.
15 builtin_parameters = {
16     'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg')
17     }
18
19 if __name__=='__main__':
20     import lit
21     lit.main(builtin_parameters)