]> granicus.if.org Git - clang/commitdiff
[lit] Rename lld and clang lit configs to end in .py
authorZachary Turner <zturner@google.com>
Thu, 21 Sep 2017 17:38:13 +0000 (17:38 +0000)
committerZachary Turner <zturner@google.com>
Thu, 21 Sep 2017 17:38:13 +0000 (17:38 +0000)
This follows in line with a previous patch of renaming LLVM's.

Working on these files is difficult in certain operating systems
and/or environments that don't like handling python code with a
non .py file extension.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313892 91177308-0d34-0410-b5e6-96231b3b80d8

test/CMakeLists.txt
test/Unit/lit.cfg.py [moved from test/Unit/lit.cfg with 100% similarity]
test/Unit/lit.site.cfg.py.in [moved from test/Unit/lit.site.cfg.in with 99% similarity]
test/lit.cfg.py [moved from test/lit.cfg with 100% similarity]
test/lit.site.cfg.py.in [moved from test/lit.site.cfg.in with 96% similarity]

index a3a70282a7dc017cb81080c035c9856e8b900c32..9bc733bc7752b91ee24fd927a4971313e29804f7 100644 (file)
@@ -26,13 +26,17 @@ llvm_canonicalize_cmake_booleans(
   HAVE_LIBZ)
 
 configure_lit_site_cfg(
-  ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
-  ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
+  ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
+  ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
+  MAIN_CONFIG
+  ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
   )
 
 configure_lit_site_cfg(
-  ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
-  ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
+  ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
+  ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
+  MAIN_CONFIG
+  ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
   )
 
 option(CLANG_TEST_USE_VG "Run Clang tests under Valgrind" OFF)
similarity index 100%
rename from test/Unit/lit.cfg
rename to test/Unit/lit.cfg.py
similarity index 99%
rename from test/Unit/lit.site.cfg.in
rename to test/Unit/lit.site.cfg.py.in
index c2f81463f239d716fc710995229c7a7a11c02c56..715b4d93f58f61834fd91b82e6fa13f4763619c3 100644 (file)
@@ -25,4 +25,4 @@ except KeyError:
     lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
 
 # Let the main config do the real work.
-lit_config.load_config(config, "@CLANG_SOURCE_DIR@/test/Unit/lit.cfg")
+lit_config.load_config(config, "@CLANG_SOURCE_DIR@/test/Unit/lit.cfg.py")
similarity index 100%
rename from test/lit.cfg
rename to test/lit.cfg.py
similarity index 96%
rename from test/lit.site.cfg.in
rename to test/lit.site.cfg.py.in
index 3df69fb35ec1073a68edbfd04be1f7c6f6448093..5d75ea4f32b1a9adc83c11ef84539d28636e888c 100644 (file)
@@ -42,4 +42,4 @@ except KeyError:
 @LIT_SITE_CFG_IN_FOOTER@
 
 # Let the main config do the real work.
-lit_config.load_config(config, "@CLANG_SOURCE_DIR@/test/lit.cfg")
+lit_config.load_config(config, "@CLANG_SOURCE_DIR@/test/lit.cfg.py")