summaryrefslogtreecommitdiff
path: root/test/profile
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2019-06-27 20:56:04 +0000
committerReid Kleckner <rnk@google.com>2019-06-27 20:56:04 +0000
commit60eb072a16750ccae175e4c06f9135ba3669cbdd (patch)
treee02b08a7781866e05e6390ff90c9b6c735074ff0 /test/profile
parent09f9fd48848d915f14c5146b4e67d37b2be45ead (diff)
downloadcompiler-rt-60eb072a16750ccae175e4c06f9135ba3669cbdd.tar.gz
[compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.*
These lit configuration files are really Python source code. Using the .py file extension helps editors and tools use the correct language mode. LLVM and Clang already use this convention for lit configuration, this change simply applies it to all of compiler-rt. Reviewers: vitalybuka, dberris Differential Revision: https://reviews.llvm.org/D63658 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@364591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile')
-rw-r--r--test/profile/CMakeLists.txt4
-rw-r--r--test/profile/Linux/lit.local.cfg.py (renamed from test/profile/Linux/lit.local.cfg)0
-rw-r--r--test/profile/Posix/lit.local.cfg.py (renamed from test/profile/Posix/lit.local.cfg)0
-rw-r--r--test/profile/lit.cfg.py (renamed from test/profile/lit.cfg)2
-rw-r--r--test/profile/lit.site.cfg.py.in (renamed from test/profile/lit.site.cfg.in)2
5 files changed, 4 insertions, 4 deletions
diff --git a/test/profile/CMakeLists.txt b/test/profile/CMakeLists.txt
index 5a4cfa101..4b0313065 100644
--- a/test/profile/CMakeLists.txt
+++ b/test/profile/CMakeLists.txt
@@ -17,8 +17,8 @@ foreach(arch ${PROFILE_TEST_ARCH})
get_test_cc_for_arch(${arch} PROFILE_TEST_TARGET_CC PROFILE_TEST_TARGET_CFLAGS)
set(CONFIG_NAME Profile-${arch})
configure_lit_site_cfg(
- ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
- ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg
+ ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
+ ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py
)
list(APPEND PROFILE_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
endforeach()
diff --git a/test/profile/Linux/lit.local.cfg b/test/profile/Linux/lit.local.cfg.py
index 98d79518b..98d79518b 100644
--- a/test/profile/Linux/lit.local.cfg
+++ b/test/profile/Linux/lit.local.cfg.py
diff --git a/test/profile/Posix/lit.local.cfg b/test/profile/Posix/lit.local.cfg.py
index 60a946082..60a946082 100644
--- a/test/profile/Posix/lit.local.cfg
+++ b/test/profile/Posix/lit.local.cfg.py
diff --git a/test/profile/lit.cfg b/test/profile/lit.cfg.py
index e59407d72..bda1e28a2 100644
--- a/test/profile/lit.cfg
+++ b/test/profile/lit.cfg.py
@@ -8,7 +8,7 @@ def get_required_attr(config, attr_name):
lit_config.fatal(
"No attribute %r in test configuration! You may need to run "
"tests from your build directory or add this attribute "
- "to lit.site.cfg " % attr_name)
+ "to lit.site.cfg.py " % attr_name)
return attr_value
# Setup config name.
diff --git a/test/profile/lit.site.cfg.in b/test/profile/lit.site.cfg.py.in
index 1cb61b51c..bb81fb0c9 100644
--- a/test/profile/lit.site.cfg.in
+++ b/test/profile/lit.site.cfg.py.in
@@ -9,4 +9,4 @@ config.target_arch = "@PROFILE_TEST_TARGET_ARCH@"
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
# Load tool-specific config that would do the real work.
-lit_config.load_config(config, "@PROFILE_LIT_SOURCE_DIR@/lit.cfg")
+lit_config.load_config(config, "@PROFILE_LIT_SOURCE_DIR@/lit.cfg.py")