r184385 - [clang-lit] Added the run_long_tests param option/long_tests feature to toggle execution of long running FileCheck tests.

Michael Gottesman mgottesman at apple.com
Wed Jun 19 16:23:49 PDT 2013


Author: mgottesman
Date: Wed Jun 19 18:23:49 2013
New Revision: 184385

URL: http://llvm.org/viewvc/llvm-project?rev=184385&view=rev
Log:
[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

Modified:
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=184385&r1=184384&r2=184385&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Wed Jun 19 18:23:49 2013
@@ -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")





More information about the cfe-commits mailing list