llvm.org GIT mirror llvm / 4981a6c
[lit] Update lit's own tests to use lit_config and lit package, as appropriate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188107 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 6 years ago
11 changed file(s) with 15 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
0 import lit.formats
1 config.name = 'top-level-suite'
12 config.suffixes = ['.txt']
23 config.test_format = lit.formats.ShTest()
0 import lit.formats
1 config.name = 'sub-suite'
12 config.suffixes = ['.txt']
23 config.test_format = lit.formats.ShTest()
11 import os
22 config.test_exec_root = os.path.dirname(__file__)
33 config.test_source_root = os.path.join(os.path.dirname(config.test_exec_root), "discovery")
4 lit.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
4 lit_config.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
0 import lit.formats
1
2 # Verify that the site configuration was loaded.
13 if config.test_source_root is None or config.test_exec_root is None:
2 lit.fatal("No site specific configuration")
4 lit_config.fatal("No site specific configuration")
35
46 config.name = 'exec-discovery-in-tree-suite'
57 config.suffixes = ['.txt']
0 import os
11 config.test_exec_root = os.path.dirname(__file__)
22 config.test_source_root = os.path.dirname(config.test_exec_root)
3 lit.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
3 lit_config.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
0 import lit.formats
1 config.name = 'shtest-shell'
12 config.suffixes = ['.txt']
23 config.test_format = lit.formats.ShTest()
0 import lit.formats
1 config.test_format = lit.formats.ShTest(execute_external=True)
0 import lit.formats
1 config.name = 'shtest-format'
12 config.suffixes = ['.txt']
23 config.test_format = lit.formats.ShTest()
0 import lit.formats
1 config.name = 'shtest-shell'
12 config.suffixes = ['.txt']
23 config.test_format = lit.formats.ShTest()
0 import lit.formats
1 config.name = 'unittest-adaptor'
12 config.suffixes = ['.txt']
23 config.test_format = lit.formats.ShTest()
0 # -*- Python -*-
11
22 import os
3
4 import lit.formats
35
46 # Configuration file for the 'lit' test runner.
57
3032
3133 # Enable coverage.py reporting, assuming the coverage module has been installed
3234 # and sitecustomize.py in the virtualenv has been modified appropriately.
33 if lit.params.get('check-coverage', None):
35 if lit_config.params.get('check-coverage', None):
3436 config.environment['COVERAGE_PROCESS_START'] = os.path.join(
3537 os.path.dirname(__file__), ".coveragerc")