[llvm] r230998 - Change SystemZ large tests to use the existing long_tests property

David Blaikie dblaikie at gmail.com
Mon Mar 2 11:34:11 PST 2015


Author: dblaikie
Date: Mon Mar  2 13:34:11 2015
New Revision: 230998

URL: http://llvm.org/viewvc/llvm-project?rev=230998&view=rev
Log:
Change SystemZ large tests to use the existing long_tests property

(this is already used in Clang for a couple of tests)

Reviewers: uweigand

Differential Revision: http://reviews.llvm.org/D7965

Modified:
    llvm/trunk/test/CodeGen/SystemZ/Large/lit.local.cfg
    llvm/trunk/test/lit.cfg

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/lit.local.cfg?rev=230998&r1=230997&r2=230998&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/lit.local.cfg (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/lit.local.cfg Mon Mar  2 13:34:11 2015
@@ -1,8 +1,8 @@
 config.suffixes = ['.py']
 
 # These tests take on the order of seconds to run, so skip them unless
-# running natively.
-if config.root.host_arch not in ['SystemZ']:
+# we're running long tests.
+if 'long_tests' not in config.available_features:
     config.unsupported = True
 
 if not 'SystemZ' in config.root.targets:

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=230998&r1=230997&r2=230998&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Mon Mar  2 13:34:11 2015
@@ -312,6 +312,10 @@ if config.llvm_use_sanitizer == "Undefin
 else:
     config.available_features.add("not_ubsan")
 
+# Check if we should run long running tests.
+if lit_config.params.get("run_long_tests", None) == "true":
+    config.available_features.add("long_tests")
+
 # Direct object generation
 # Suppress x86_64-mingw32 while investigating since r219108.
 if not 'hexagon' in config.target_triple and not re.match(r'^x86_64.*-(mingw32|windows-gnu|win32)', config.target_triple):





More information about the llvm-commits mailing list