[llvm] r190679 - Add "native" to config.available_features, to make it easier to disable non-x-compile-safe tests
Amaury de la Vieuville
amaury.dlv at gmail.com
Fri Sep 13 03:59:02 PDT 2013
Author: amaury.dlv
Date: Fri Sep 13 05:59:01 2013
New Revision: 190679
URL: http://llvm.org/viewvc/llvm-project?rev=190679&view=rev
Log:
Add "native" to config.available_features, to make it easier to disable non-x-compile-safe tests
Patch by Artyom Skrobov!
Modified:
llvm/trunk/test/ExecutionEngine/MCJIT/lit.local.cfg
llvm/trunk/test/ExecutionEngine/lit.local.cfg
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/ExecutionEngine/MCJIT/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/MCJIT/lit.local.cfg?rev=190679&r1=190678&r2=190679&view=diff
==============================================================================
--- llvm/trunk/test/ExecutionEngine/MCJIT/lit.local.cfg (original)
+++ llvm/trunk/test/ExecutionEngine/MCJIT/lit.local.cfg Fri Sep 13 05:59:01 2013
@@ -15,8 +15,12 @@ if root.host_arch not in ['i386', 'x86',
if 'armv7' in root.host_arch:
config.unsupported = False
-if 'i386-apple-darwin' in root.target_triple:
+if 'i386-apple-darwin' in root.target_triple:
config.unsupported = True
if 'powerpc' in root.target_triple and not 'powerpc64' in root.target_triple:
config.unsupported = True
+
+# ExecutionEngine tests are not expected to pass in a cross-compilation setup.
+if 'native' not in config.available_features:
+ config.unsupported = True
Modified: llvm/trunk/test/ExecutionEngine/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/lit.local.cfg?rev=190679&r1=190678&r2=190679&view=diff
==============================================================================
--- llvm/trunk/test/ExecutionEngine/lit.local.cfg (original)
+++ llvm/trunk/test/ExecutionEngine/lit.local.cfg Fri Sep 13 05:59:01 2013
@@ -3,3 +3,7 @@ if config.root.host_arch in ['PowerPC',
if 'hexagon' in config.root.target_triple:
config.unsupported = True
+
+# ExecutionEngine tests are not expected to pass in a cross-compilation setup.
+if 'native' not in config.available_features:
+ config.unsupported = True
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=190679&r1=190678&r2=190679&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Fri Sep 13 05:59:01 2013
@@ -279,6 +279,10 @@ if not 'hexagon' in config.target_triple
if config.have_zlib == "1":
config.available_features.add("zlib")
+# Native compilation: host arch == target arch
+if config.host_arch in config.target_triple:
+ config.available_features.add("native")
+
# llc knows whether he is compiled with -DNDEBUG.
import subprocess
try:
More information about the llvm-commits
mailing list