[llvm] r188107 - [lit] Update lit's own tests to use lit_config and lit package, as appropriate.
Daniel Dunbar
daniel at zuster.org
Fri Aug 9 14:39:18 PDT 2013
Author: ddunbar
Date: Fri Aug 9 16:39:17 2013
New Revision: 188107
URL: http://llvm.org/viewvc/llvm-project?rev=188107&view=rev
Log:
[lit] Update lit's own tests to use lit_config and lit package, as appropriate.
Modified:
llvm/trunk/utils/lit/tests/Inputs/discovery/lit.cfg
llvm/trunk/utils/lit/tests/Inputs/discovery/subsuite/lit.cfg
llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg
llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/obj/lit.site.cfg
llvm/trunk/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg
llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg
llvm/trunk/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg
llvm/trunk/utils/lit/tests/Inputs/shtest-format/lit.cfg
llvm/trunk/utils/lit/tests/Inputs/shtest-shell/lit.cfg
llvm/trunk/utils/lit/tests/Inputs/unittest-adaptor/lit.cfg
llvm/trunk/utils/lit/tests/lit.cfg
Modified: llvm/trunk/utils/lit/tests/Inputs/discovery/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/discovery/lit.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/discovery/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/discovery/lit.cfg Fri Aug 9 16:39:17 2013
@@ -1,3 +1,4 @@
+import lit.formats
config.name = 'top-level-suite'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
Modified: llvm/trunk/utils/lit/tests/Inputs/discovery/subsuite/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/discovery/subsuite/lit.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/discovery/subsuite/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/discovery/subsuite/lit.cfg Fri Aug 9 16:39:17 2013
@@ -1,3 +1,4 @@
+import lit.formats
config.name = 'sub-suite'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
Modified: llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/lit.cfg Fri Aug 9 16:39:17 2013
@@ -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']
Modified: llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/obj/lit.site.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/obj/lit.site.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/obj/lit.site.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/exec-discovery-in-tree/obj/lit.site.cfg Fri Aug 9 16:39:17 2013
@@ -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"))
\ No newline at end of file
+lit_config.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))
\ No newline at end of file
Modified: llvm/trunk/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/exec-discovery/lit.site.cfg Fri Aug 9 16:39:17 2013
@@ -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"))
Modified: llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg Fri Aug 9 16:39:17 2013
@@ -1,3 +1,4 @@
+import lit.formats
config.name = 'shtest-shell'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
Modified: llvm/trunk/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg Fri Aug 9 16:39:17 2013
@@ -1 +1,2 @@
+import lit.formats
config.test_format = lit.formats.ShTest(execute_external=True)
Modified: llvm/trunk/utils/lit/tests/Inputs/shtest-format/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/shtest-format/lit.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/shtest-format/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/shtest-format/lit.cfg Fri Aug 9 16:39:17 2013
@@ -1,3 +1,4 @@
+import lit.formats
config.name = 'shtest-format'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
Modified: llvm/trunk/utils/lit/tests/Inputs/shtest-shell/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/shtest-shell/lit.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/shtest-shell/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/shtest-shell/lit.cfg Fri Aug 9 16:39:17 2013
@@ -1,3 +1,4 @@
+import lit.formats
config.name = 'shtest-shell'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
Modified: llvm/trunk/utils/lit/tests/Inputs/unittest-adaptor/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/unittest-adaptor/lit.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/unittest-adaptor/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/unittest-adaptor/lit.cfg Fri Aug 9 16:39:17 2013
@@ -1,3 +1,4 @@
+import lit.formats
config.name = 'unittest-adaptor'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
Modified: llvm/trunk/utils/lit/tests/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/lit.cfg?rev=188107&r1=188106&r2=188107&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/lit.cfg Fri Aug 9 16:39:17 2013
@@ -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}', o
# 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")
More information about the llvm-commits
mailing list