[test-suite] r338625 - cmake: Remove unused option to create custom test in llvm_multisource()/llvm_singlesource()

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 1 13:22:35 PDT 2018


Author: matze
Date: Wed Aug  1 13:22:35 2018
New Revision: 338625

URL: http://llvm.org/viewvc/llvm-project?rev=338625&view=rev
Log:
cmake: Remove unused option to create custom test in llvm_multisource()/llvm_singlesource()

Nobody was using the possibility to specify a custom test in combination
with llvm_multisource()/llvm_singlesource(). Remove the option as people
writing custom tests also should use llvm_test_add_executable() directly
instead.

Modified:
    test-suite/trunk/cmake/modules/SingleMultiSource.cmake

Modified: test-suite/trunk/cmake/modules/SingleMultiSource.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/modules/SingleMultiSource.cmake?rev=338625&r1=338624&r2=338625&view=diff
==============================================================================
--- test-suite/trunk/cmake/modules/SingleMultiSource.cmake (original)
+++ test-suite/trunk/cmake/modules/SingleMultiSource.cmake Wed Aug  1 13:22:35 2018
@@ -39,9 +39,7 @@ macro(llvm_singlesource)
   endif()
   foreach(source ${sources})
     basename(name ${source})
-    if(NOT TESTSCRIPT)
-      llvm_test_traditional(${name})
-    endif()
+    llvm_test_traditional(${name})
     set(_target ${_LSARG_PREFIX}${name})
     llvm_test_executable(${_target} ${source})
     if(_LSARG_TARGET_VAR)
@@ -60,9 +58,7 @@ macro(llvm_multisource)
     file(GLOB sources *.c *.cpp *.cc)
   endif()
 
-  if(NOT TESTSCRIPT)
-    llvm_test_traditional(${PROG})
-  endif()
+  llvm_test_traditional(${PROG})
   set(_target ${PROG})
   llvm_test_executable(${_target} ${sources})
 endmacro()




More information about the llvm-commits mailing list