From 6c6fd7e9596e7c870e322f4030bdd16235348378 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Fri, 15 Nov 2013 13:37:49 +0000 Subject: [PATCH] Ignore test Inputs globally and remove redundant lit.local.cfg files By adding a default config.excludes pattern we can avoid individual suppressions in subdirectories. This matches LLVM's lit.cfg which also excludes a few other common non-test filenames for consistency. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194814 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/ASTMerge/Inputs/lit.local.cfg | 1 - test/Driver/Inputs/lit.local.cfg | 1 - test/Frontend/Inputs/lit.local.cfg | 1 - test/Index/Inputs/lit.local.cfg | 1 - test/SemaCXX/Inputs/lit.local.cfg | 1 - test/Tooling/Inputs/lit.local.cfg | 1 - test/lit.cfg | 5 +++++ 7 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 test/ASTMerge/Inputs/lit.local.cfg delete mode 100644 test/Driver/Inputs/lit.local.cfg delete mode 100644 test/Frontend/Inputs/lit.local.cfg delete mode 100644 test/Index/Inputs/lit.local.cfg delete mode 100644 test/SemaCXX/Inputs/lit.local.cfg delete mode 100644 test/Tooling/Inputs/lit.local.cfg diff --git a/test/ASTMerge/Inputs/lit.local.cfg b/test/ASTMerge/Inputs/lit.local.cfg deleted file mode 100644 index e6f55eef7a..0000000000 --- a/test/ASTMerge/Inputs/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = [] diff --git a/test/Driver/Inputs/lit.local.cfg b/test/Driver/Inputs/lit.local.cfg deleted file mode 100644 index e6f55eef7a..0000000000 --- a/test/Driver/Inputs/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = [] diff --git a/test/Frontend/Inputs/lit.local.cfg b/test/Frontend/Inputs/lit.local.cfg deleted file mode 100644 index e6f55eef7a..0000000000 --- a/test/Frontend/Inputs/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = [] diff --git a/test/Index/Inputs/lit.local.cfg b/test/Index/Inputs/lit.local.cfg deleted file mode 100644 index e6f55eef7a..0000000000 --- a/test/Index/Inputs/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = [] diff --git a/test/SemaCXX/Inputs/lit.local.cfg b/test/SemaCXX/Inputs/lit.local.cfg deleted file mode 100644 index e6f55eef7a..0000000000 --- a/test/SemaCXX/Inputs/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = [] diff --git a/test/Tooling/Inputs/lit.local.cfg b/test/Tooling/Inputs/lit.local.cfg deleted file mode 100644 index e6f55eef7a..0000000000 --- a/test/Tooling/Inputs/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = [] diff --git a/test/lit.cfg b/test/lit.cfg index bfac9f2415..19daa61a64 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -46,6 +46,11 @@ config.test_format = lit.formats.ShTest(execute_external) # suffixes: A list of file extensions to treat as test files. config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s'] +# excludes: A list of directories to exclude from the testsuite. The 'Inputs' +# subdirectories contain auxiliary inputs for various tests in their parent +# directories. +config.excludes = ['Inputs', 'CMakeLists.txt', 'README.txt', 'LICENSE.txt'] + # test_source_root: The root path where tests are located. config.test_source_root = os.path.dirname(__file__) -- 2.40.0