[test-suite] r295274 - Bitcode: Enable single_source lit config

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 18:48:12 PST 2017


Author: matze
Date: Wed Feb 15 20:48:12 2017
New Revision: 295274

URL: http://llvm.org/viewvc/llvm-project?rev=295274&view=rev
Log:
Bitcode: Enable single_source lit config

The compile_time collection fails for the bitcode tests because the test
executable name has no relation to the bitcode input.

Setting single_source=True is not enough to fix it, but at least it
stops lit from summing up the compile of every tests every time (which
slowed the testrunner noticably down).

Added:
    test-suite/trunk/Bitcode/lit.local.cfg
Modified:
    test-suite/trunk/Bitcode/CMakeLists.txt

Modified: test-suite/trunk/Bitcode/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Bitcode/CMakeLists.txt?rev=295274&r1=295273&r2=295274&view=diff
==============================================================================
--- test-suite/trunk/Bitcode/CMakeLists.txt (original)
+++ test-suite/trunk/Bitcode/CMakeLists.txt Wed Feb 15 20:48:12 2017
@@ -15,4 +15,5 @@ if(TEST_SUITE_ENABLE_BITCODE_TESTS)
       add_subdirectory(simd_ops)
     endif()
   endif()
+  file(COPY lit.local.cfg DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
 endif()

Added: test-suite/trunk/Bitcode/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Bitcode/lit.local.cfg?rev=295274&view=auto
==============================================================================
--- test-suite/trunk/Bitcode/lit.local.cfg (added)
+++ test-suite/trunk/Bitcode/lit.local.cfg Wed Feb 15 20:48:12 2017
@@ -0,0 +1 @@
+config.single_source = True




More information about the llvm-commits mailing list