[llvm] 2402f93 - [AIX] Add system-aix to lit config file

David Tenty via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 09:54:19 PDT 2020


Author: Shuhong Liu
Date: 2020-07-06T12:54:12-04:00
New Revision: 2402f9385e850a1434a4d2ee00d76ca01e44a40b

URL: https://github.com/llvm/llvm-project/commit/2402f9385e850a1434a4d2ee00d76ca01e44a40b
DIFF: https://github.com/llvm/llvm-project/commit/2402f9385e850a1434a4d2ee00d76ca01e44a40b.diff

LOG: [AIX] Add system-aix to lit config file

Summary: This is a complementary patch to D82100 since the aix builbot is still running the unsupported test shtest-format-argv0. Add system-aix to the sub llvm-lit config.

Reviewers: daltenty, hubert.reinterpretcast

Reviewed By: hubert.reinterpretcast

Subscribers: delcypher, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82905

Added: 
    

Modified: 
    llvm/utils/lit/lit/llvm/config.py
    llvm/utils/lit/tests/lit.cfg
    llvm/utils/lit/tests/shtest-format-argv0.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index fe0f1f4441ac..db557a7b1fef 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -51,12 +51,14 @@ def __init__(self, lit_config, config):
         elif platform.system() == 'Windows':
             # For tests that require Windows to run.
             features.add('system-windows')
-        elif platform.system() == "Linux":
+        elif platform.system() == 'Linux':
             features.add('system-linux')
         elif platform.system() in ['FreeBSD']:
             features.add('system-freebsd')
-        elif platform.system() == "NetBSD":
+        elif platform.system() == 'NetBSD':
             features.add('system-netbsd')
+        elif platform.system() == 'AIX':
+            features.add('system-aix')
 
         # Native compilation: host arch == default triple arch
         # Both of these values should probably be in every site config (e.g. as

diff  --git a/llvm/utils/lit/tests/lit.cfg b/llvm/utils/lit/tests/lit.cfg
index 85bdbf180b13..3c49f076a66e 100644
--- a/llvm/utils/lit/tests/lit.cfg
+++ b/llvm/utils/lit/tests/lit.cfg
@@ -87,7 +87,7 @@ if not llvm_config:
   if sys.platform.startswith('win') or sys.platform.startswith('cygwin'):
     config.available_features.add('system-windows')
   if platform.system() == 'AIX':
-    config.available_features.add('aix')
+    config.available_features.add('system-aix')
 
 # For each of lit's internal shell commands ('env', 'cd', '
diff ', etc.), put
 # a fake command that always fails at the start of PATH.  This helps us check

diff  --git a/llvm/utils/lit/tests/shtest-format-argv0.py b/llvm/utils/lit/tests/shtest-format-argv0.py
index 063fa80a678a..28f9acaa3322 100644
--- a/llvm/utils/lit/tests/shtest-format-argv0.py
+++ b/llvm/utils/lit/tests/shtest-format-argv0.py
@@ -5,7 +5,7 @@
 #
 # This test is not supported on AIX since `[` is only available as a shell builtin
 # and is not installed under PATH by default.
-# UNSUPPORTED: aix
+# UNSUPPORTED: system-aix
 #
 # RUN: %{lit} -j 1 -v %{inputs}/shtest-format-argv0 | FileCheck %s
 


        


More information about the llvm-commits mailing list