[PATCH] D39482: Add system-linux to allow tests run with llvm-lit to restrict themselves to linux
Jake Ehrlich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 16:00:03 PDT 2017
jakehehrlich created this revision.
Herald added a reviewer: modocache.
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.
Repository:
rL LLVM
https://reviews.llvm.org/D39482
Files:
utils/lit/lit/llvm/config.py
Index: utils/lit/lit/llvm/config.py
===================================================================
--- utils/lit/lit/llvm/config.py
+++ utils/lit/lit/llvm/config.py
@@ -45,14 +45,16 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39482.121079.patch
Type: text/x-patch
Size: 990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171031/4f000de5/attachment.bin>
More information about the llvm-commits
mailing list