blob: 3ff2c2489c45772092b8a0889b8976b2ab4739fd [file] [log] [blame]
Daniel Dunbarb7698a42010-08-02 00:39:42 +00001#!/usr/bin/env python
2
3import os
4import sys
5
6# Variables configured at build time.
7llvm_source_root = "@LLVM_SOURCE_DIR@"
8llvm_obj_root = "@LLVM_BINARY_DIR@"
9
10# Make sure we can find the lit package.
11sys.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.
15builtin_parameters = {
16 'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg')
17 }
18
19if __name__=='__main__':
20 import lit
21 lit.main(builtin_parameters)