[LNT] r331289 - Use the internal shtest runner and make lit a formal dependency

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Tue May 1 10:57:09 PDT 2018


Author: cmatthews
Date: Tue May  1 10:57:09 2018
New Revision: 331289

URL: http://llvm.org/viewvc/llvm-project?rev=331289&view=rev
Log:
Use the internal shtest runner and make lit a formal dependency

The internal shtest runner is able to print command output etc, so it is
much better for debuggined test failures, especially in CI.  On my
machines ToT lit is able to run all the tests with the internal runner.

Since a newish version of lit is needed (it is for test running as well)
I will add it as a formal dependency.

Modified:
    lnt/trunk/requirements.client.txt
    lnt/trunk/tests/lit.cfg

Modified: lnt/trunk/requirements.client.txt
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/requirements.client.txt?rev=331289&r1=331288&r2=331289&view=diff
==============================================================================
--- lnt/trunk/requirements.client.txt (original)
+++ lnt/trunk/requirements.client.txt Tue May  1 10:57:09 2018
@@ -19,3 +19,4 @@ typing
 click==6.7
 pyyaml==3.12
 requests==2.3.0
+lit>=0.6.0

Modified: lnt/trunk/tests/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/lit.cfg?rev=331289&r1=331288&r2=331289&view=diff
==============================================================================
--- lnt/trunk/tests/lit.cfg (original)
+++ lnt/trunk/tests/lit.cfg Tue May  1 10:57:09 2018
@@ -13,8 +13,7 @@ import lit.util
 config.name = 'LNT'
 
 # testFormat: The test format to use to interpret tests.
-execute_external = platform.system() != 'Windows'
-config.test_format = lit.formats.ShTest(execute_external)
+config.test_format = lit.formats.ShTest()
 
 # suffixes: A list of file extensions to treat as test files.
 config.suffixes = ['.py', '.shtest']
@@ -36,6 +35,8 @@ except:
 config.environment['PYTHONPATH'] = '%s:%s' % (build_root, src_root)
 # Don't generate .pyc files when running tests.
 config.environment['PYTHONDONTWRITEBYTECODE'] = "1"
+config.environment['SUDO_CMD'] = ""
+config.environment['I'] = ""
 
 config.substitutions.append(('%src_root', src_root))
 config.substitutions.append(('%{src_root}', src_root))
@@ -70,3 +71,4 @@ if lit_config.params.get('check-coverage
     config.environment['COVERAGE_PROCESS_START'] = os.path.join(
         os.path.dirname(__file__), ".coveragerc")
     
+




More information about the llvm-commits mailing list