summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Ehrlich <jakehehrlich@google.com>2017-11-01 00:18:51 +0000
committerJake Ehrlich <jakehehrlich@google.com>2017-11-01 00:18:51 +0000
commitcde781015f21252d5fec3185e1e372ca1f73078a (patch)
treef29beb091ccc7e3dcdd3cff26a321271c20a6c3f
parent7cd48cd8a96185dfc9b4ba2b4ee364bbac1e068b (diff)
downloadbcm5719-llvm-cde781015f21252d5fec3185e1e372ca1f73078a.tar.gz
bcm5719-llvm-cde781015f21252d5fec3185e1e372ca1f73078a.zip
Add system-linux to allow tests run with llvm-lit to restrict themselves to linux
I need a test that only runs in a reasonable amount of time on systems that have sparse files. The broadest class of systems that support sparse files are linux systems. So restricting my test to linux systems should suffice. This change adds the system-linux feature to llvm-lit so that it can be required. Differential Revision: https://reviews.llvm.org/D39482 llvm-svn: 317055
-rw-r--r--llvm/utils/lit/lit/llvm/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index d9e5f88556b..798f08af1be 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -45,14 +45,16 @@ class LLVMConfig(object):
features.add('shell')
# Running on Darwin OS
- if platform.system() in ['Darwin']:
+ if platform.system() == 'Darwin':
# FIXME: lld uses the first, other projects use the second.
# We should standardize on the former.
features.add('system-linker-mach-o')
features.add('system-darwin')
- elif platform.system() in ['Windows']:
+ elif platform.system() == 'Windows':
# For tests that require Windows to run.
features.add('system-windows')
+ elif platform.system() == "Linux":
+ features.add('system-linux')
# Native compilation: host arch == default triple arch
# Both of these values should probably be in every site config (e.g. as
OpenPOWER on IntegriCloud