]> granicus.if.org Git - clang/commitdiff
[clang-lit] Added the run_long_tests param option/long_tests feature to toggle execut...
authorMichael Gottesman <mgottesman@apple.com>
Wed, 19 Jun 2013 23:23:49 +0000 (23:23 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Wed, 19 Jun 2013 23:23:49 +0000 (23:23 +0000)
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

index 6b0ad59c9f1f44e653787b5b9e640c6b7a0a16b7..a3578946cda6936a2d98ce4a171361eb11bbc8fb 100644 (file)
@@ -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")