Author: Abhina Sree
Date: 2026-10-20T09:54:42-04:00
New Revision: e089d030f382832efaed836d9b125fa77f5991f1

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

LOG: [SystemZ][z/OS] Enable z/OS auto-conversion in clang and llvm unit tests 
(#232437)

This patch enables auto-conversion in the unit tests

Added: 
    

Modified: 
    clang/test/Unit/lit.cfg.py
    llvm/test/Unit/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/clang/test/Unit/lit.cfg.py b/clang/test/Unit/lit.cfg.py
index ebe35a10e7f30..35c5a8a2acfae 100644
--- a/clang/test/Unit/lit.cfg.py
+++ b/clang/test/Unit/lit.cfg.py
@@ -74,6 +74,14 @@ def find_shlibpath_var():
         "unable to inject shared library path on 
'{}'".format(platform.system())
     )
 
+# The unit tests on z/OS need auto-conversion turned on.
+if sys.platform == "zos":
+    config.environment["_BPXK_AUTOCVT"] = "ON"
+    config.environment["_TAG_REDIR_IN"] = "TXT"
+    config.environment["_TAG_REDIR_OUT"] = "TXT"
+    config.environment["_TAG_REDIR_ERR"] = "TXT"
+    config.environment["_CEE_RUNOPTS"] = "FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)"
+
 # It is not realistically possible to account for all options that could
 # possibly be present in system and user configuration files, so disable
 # default configs for the test runs.

diff  --git a/llvm/test/Unit/lit.cfg.py b/llvm/test/Unit/lit.cfg.py
index e29fd76bd8dcc..e426e0eb2ca34 100644
--- a/llvm/test/Unit/lit.cfg.py
+++ b/llvm/test/Unit/lit.cfg.py
@@ -63,3 +63,11 @@
 # Win32 may use %SYSTEMDRIVE% during file system shell operations, so 
propagate.
 if sys.platform == "win32" and "SYSTEMDRIVE" in os.environ:
     config.environment["SYSTEMDRIVE"] = os.environ["SYSTEMDRIVE"]
+
+# The unit tests on z/OS need auto-conversion turned on.
+if sys.platform == "zos":
+    config.environment["_BPXK_AUTOCVT"] = "ON"
+    config.environment["_TAG_REDIR_IN"] = "TXT"
+    config.environment["_TAG_REDIR_OUT"] = "TXT"
+    config.environment["_TAG_REDIR_ERR"] = "TXT"
+    config.environment["_CEE_RUNOPTS"] = "FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)"


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to