[polly] 3f2828d - [polly] Fix up regression test config with current features.
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 30 13:47:25 PDT 2021
Author: Eli Friedman
Date: 2021-07-30T13:44:48-07:00
New Revision: 3f2828dc28575bb5e54010cd121b4c45abe3ad99
URL: https://github.com/llvm/llvm-project/commit/3f2828dc28575bb5e54010cd121b4c45abe3ad99
DIFF: https://github.com/llvm/llvm-project/commit/3f2828dc28575bb5e54010cd121b4c45abe3ad99.diff
LOG: [polly] Fix up regression test config with current features.
Primarily, configure substitutions so we can copy-paste the "RUN" line
of failed tests without worrying about the paths.
Added:
Modified:
polly/test/lit.cfg
polly/test/lit.site.cfg.in
Removed:
################################################################################
diff --git a/polly/test/lit.cfg b/polly/test/lit.cfg
index 293b426739233..41e3a589c61e6 100644
--- a/polly/test/lit.cfg
+++ b/polly/test/lit.cfg
@@ -8,6 +8,8 @@ import subprocess
import lit.formats
import lit.util
+from lit.llvm import llvm_config
+
# Configuration file for the 'lit' test runner.
# name: The name of this test suite.
@@ -38,6 +40,11 @@ path = os.path.pathsep.join((config.llvm_libs_dir,
config.environment.get('LD_LIBRARY_PATH','')))
config.environment['LD_LIBRARY_PATH'] = path
+llvm_config.use_default_substitutions()
+
+tool_patterns = ['opt', 'polly-isl-test']
+llvm_config.add_tool_substitutions(tool_patterns)
+
# opt knows whether it is compiled with -DNDEBUG.
import subprocess
try:
diff --git a/polly/test/lit.site.cfg.in b/polly/test/lit.site.cfg.in
index 83f3aa470fc4d..65da8b412e92b 100644
--- a/polly/test/lit.site.cfg.in
+++ b/polly/test/lit.site.cfg.in
@@ -1,5 +1,5 @@
-## Autogenerated by LLVM/Polly configuration.
-# Do not edit!
+ at LIT_SITE_CFG_IN_HEADER@
+
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
@@ -66,5 +66,8 @@ else:
if config.enable_gpgpu_codegen == 'TRUE' :
config.available_features.add('pollyacc')
+import lit.llvm
+lit.llvm.initialize(lit_config, config)
+
# Let the main config do the real work.
lit_config.load_config(config, "@POLLY_SOURCE_DIR@/test/lit.cfg")
More information about the llvm-commits
mailing list