From 2fec54da5588c22441ef528cb61bdde308c0f029 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 21 Sep 2017 17:38:13 +0000 Subject: [PATCH] [lit] Rename lld and clang lit configs to end in .py 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 | 12 ++++++++---- test/Unit/{lit.cfg => lit.cfg.py} | 0 test/Unit/{lit.site.cfg.in => lit.site.cfg.py.in} | 2 +- test/{lit.cfg => lit.cfg.py} | 0 test/{lit.site.cfg.in => lit.site.cfg.py.in} | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) rename test/Unit/{lit.cfg => lit.cfg.py} (100%) rename test/Unit/{lit.site.cfg.in => lit.site.cfg.py.in} (99%) rename test/{lit.cfg => lit.cfg.py} (100%) rename test/{lit.site.cfg.in => lit.site.cfg.py.in} (96%) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a3a70282a7..9bc733bc77 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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) diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg.py similarity index 100% rename from test/Unit/lit.cfg rename to test/Unit/lit.cfg.py diff --git a/test/Unit/lit.site.cfg.in b/test/Unit/lit.site.cfg.py.in similarity index 99% rename from test/Unit/lit.site.cfg.in rename to test/Unit/lit.site.cfg.py.in index c2f81463f2..715b4d93f5 100644 --- a/test/Unit/lit.site.cfg.in +++ b/test/Unit/lit.site.cfg.py.in @@ -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") diff --git a/test/lit.cfg b/test/lit.cfg.py similarity index 100% rename from test/lit.cfg rename to test/lit.cfg.py diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.py.in similarity index 96% rename from test/lit.site.cfg.in rename to test/lit.site.cfg.py.in index 3df69fb35e..5d75ea4f32 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.py.in @@ -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") -- 2.49.0