[PATCH] D28558: [CMake] Ignore hidden/metadata files when adding lit check-* testsuites

Elad Cohen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 01:35:55 PST 2017


eladcohen updated this revision to Diff 84807.
eladcohen added a comment.

Fixed Michal's comment


https://reviews.llvm.org/D28558

Files:
  cmake/modules/AddLLVM.cmake


Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -1205,7 +1205,7 @@
     cmake_parse_arguments(ARG "" "" "PARAMS;DEPENDS;ARGS" ${ARGN})
 
     # Search recursively for test directories by assuming anything not
-    # in a directory called Inputs contains tests.
+    # in a directory called Inputs/Output/.* contains tests.
     file(GLOB_RECURSE to_process LIST_DIRECTORIES true ${directory}/*)
     foreach(lit_suite ${to_process})
       if(NOT IS_DIRECTORY ${lit_suite})
@@ -1216,6 +1216,9 @@
       if (NOT (is_inputs EQUAL -1 AND is_output EQUAL -1))
         continue()
       endif()
+      if(${lit_suite} MATCHES ".*[\/][\.].*")
+        continue()
+      endif()
 
       # Create a check- target for the directory.
       string(REPLACE ${directory} "" name_slash ${lit_suite})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28558.84807.patch
Type: text/x-patch
Size: 911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170118/99238a76/attachment.bin>


More information about the llvm-commits mailing list