From 63f4050c7e67b7171bbb895130a832b77cf9f647 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Wed, 19 Jun 2013 23:23:49 +0000 Subject: [PATCH] [clang-lit] Added the run_long_tests param option/long_tests feature to toggle execution of long running FileCheck tests. This will allow for longer running FileCheck based tests to be committed to clang for use on buildbots, preventing the normal make-check cycle from increasing in time significantly. This is a necessary change in order to commit the end-to-end arm neon intrinsic tests since FileCheck takes ~20 seconds to run said test due to the large amount of neon intrinsics. To force a test to run only when --param run_long_tests=true is passed in use the following requires statement: // REQUIRES: long_tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184385 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lit.cfg b/test/lit.cfg index 6b0ad59c9f..a3578946cd 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -305,3 +305,7 @@ if config.llvm_use_sanitizer == "Address": if (config.llvm_use_sanitizer == "Memory" or config.llvm_use_sanitizer == "MemoryWithOrigins"): config.available_features.add("msan") + +# Check if we should run long running tests. +if lit.params.get("run_long_tests", None) == "true": + config.available_features.add("long_tests") -- 2.40.0