mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 13:35:10 +00:00
[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
This commit is contained in:
parent
1e07de3529
commit
4981a6ca97
@ -1,3 +1,4 @@
|
||||
import lit.formats
|
||||
config.name = 'top-level-suite'
|
||||
config.suffixes = ['.txt']
|
||||
config.test_format = lit.formats.ShTest()
|
||||
|
@ -1,3 +1,4 @@
|
||||
import lit.formats
|
||||
config.name = 'sub-suite'
|
||||
config.suffixes = ['.txt']
|
||||
config.test_format = lit.formats.ShTest()
|
||||
|
@ -1,6 +1,8 @@
|
||||
import lit.formats
|
||||
|
||||
# Verify that the site configuration was loaded.
|
||||
if config.test_source_root is None or config.test_exec_root is None:
|
||||
lit.fatal("No site specific configuration")
|
||||
lit_config.fatal("No site specific configuration")
|
||||
|
||||
config.name = 'exec-discovery-in-tree-suite'
|
||||
config.suffixes = ['.txt']
|
||||
|
@ -1,4 +1,4 @@
|
||||
import os
|
||||
config.test_exec_root = os.path.dirname(__file__)
|
||||
config.test_source_root = os.path.dirname(config.test_exec_root)
|
||||
lit.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
|
||||
lit_config.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
|
@ -2,4 +2,4 @@
|
||||
import os
|
||||
config.test_exec_root = os.path.dirname(__file__)
|
||||
config.test_source_root = os.path.join(os.path.dirname(config.test_exec_root), "discovery")
|
||||
lit.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
|
||||
lit_config.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
|
||||
|
@ -1,3 +1,4 @@
|
||||
import lit.formats
|
||||
config.name = 'shtest-shell'
|
||||
config.suffixes = ['.txt']
|
||||
config.test_format = lit.formats.ShTest()
|
||||
|
@ -1 +1,2 @@
|
||||
import lit.formats
|
||||
config.test_format = lit.formats.ShTest(execute_external=True)
|
||||
|
@ -1,3 +1,4 @@
|
||||
import lit.formats
|
||||
config.name = 'shtest-format'
|
||||
config.suffixes = ['.txt']
|
||||
config.test_format = lit.formats.ShTest()
|
||||
|
@ -1,3 +1,4 @@
|
||||
import lit.formats
|
||||
config.name = 'shtest-shell'
|
||||
config.suffixes = ['.txt']
|
||||
config.test_format = lit.formats.ShTest()
|
||||
|
@ -1,3 +1,4 @@
|
||||
import lit.formats
|
||||
config.name = 'unittest-adaptor'
|
||||
config.suffixes = ['.txt']
|
||||
config.test_format = lit.formats.ShTest()
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
import os
|
||||
|
||||
import lit.formats
|
||||
|
||||
# Configuration file for the 'lit' test runner.
|
||||
|
||||
# name: The name of this test suite.
|
||||
@ -31,6 +33,6 @@ config.substitutions.append(('%{lit}', os.path.join(src_root, 'lit.py')))
|
||||
|
||||
# Enable coverage.py reporting, assuming the coverage module has been installed
|
||||
# and sitecustomize.py in the virtualenv has been modified appropriately.
|
||||
if lit.params.get('check-coverage', None):
|
||||
if lit_config.params.get('check-coverage', None):
|
||||
config.environment['COVERAGE_PROCESS_START'] = os.path.join(
|
||||
os.path.dirname(__file__), ".coveragerc")
|
||||
|
Loading…
Reference in New Issue
Block a user