[clang] b712aef - [llvm-driver] Mark some tests unsupported

Alex Brachet via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 7 09:47:10 PST 2023


Author: Alex Brachet
Date: 2023-01-07T17:45:26Z
New Revision: b712aef5b37e4e98fcc7bd1a6cfc3bac2d7af0d0

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

LOG: [llvm-driver] Mark some tests unsupported

These tests rely on making symlinks to unkown tool names which will
fail when in the llvm-driver build.

Added: 
    

Modified: 
    clang/test/CMakeLists.txt
    clang/test/Driver/parse-progname.c
    clang/test/lit.cfg.py
    clang/test/lit.site.cfg.py.in
    llvm/test/tools/llvm-objcopy/tool-name.test

Removed: 
    


################################################################################
diff  --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt
index b963a7542589..1d6377b5f2d8 100644
--- a/clang/test/CMakeLists.txt
+++ b/clang/test/CMakeLists.txt
@@ -16,6 +16,7 @@ llvm_canonicalize_cmake_booleans(
   LLVM_ENABLE_THREADS
   LLVM_WITH_Z3
   PPC_LINUX_DEFAULT_IEEELONGDOUBLE
+  LLVM_TOOL_LLVM_DRIVER_BUILD
   )
 
 configure_lit_site_cfg(

diff  --git a/clang/test/Driver/parse-progname.c b/clang/test/Driver/parse-progname.c
index ed907ea12e00..34040b81dc73 100644
--- a/clang/test/Driver/parse-progname.c
+++ b/clang/test/Driver/parse-progname.c
@@ -1,4 +1,5 @@
 // REQUIRES: shell, arm-registered-target
+// UNSUPPORTED: llvm-driver
 
 // RUN: mkdir -p %t
 

diff  --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index 8088ceff5c00..cc55c3c44a41 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -238,6 +238,9 @@ def calculate_arch_features(arch_string):
 if config.clang_vendor_uti:
     config.available_features.add('clang-vendor=' + config.clang_vendor_uti)
 
+if config.have_llvm_driver:
+  config.available_features.add('llvm-driver')
+
 def exclude_unsupported_files_for_aix(dirname):
     for filename in os.listdir(dirname):
         source_path = os.path.join( dirname, filename)

diff  --git a/clang/test/lit.site.cfg.py.in b/clang/test/lit.site.cfg.py.in
index b9ddd0392c2f..89fedd47b008 100644
--- a/clang/test/lit.site.cfg.py.in
+++ b/clang/test/lit.site.cfg.py.in
@@ -39,6 +39,7 @@ config.clang_vendor_uti = "@CLANG_VENDOR_UTI@"
 config.llvm_external_lit = path(r"@LLVM_EXTERNAL_LIT@")
 config.standalone_build = @CLANG_BUILT_STANDALONE@
 config.ppc_linux_default_ieeelongdouble = @PPC_LINUX_DEFAULT_IEEELONGDOUBLE@
+config.have_llvm_driver = @LLVM_TOOL_LLVM_DRIVER_BUILD@
 
 import lit.llvm
 lit.llvm.initialize(lit_config, config)

diff  --git a/llvm/test/tools/llvm-objcopy/tool-name.test b/llvm/test/tools/llvm-objcopy/tool-name.test
index 4364d083061a..6a1f72588e23 100644
--- a/llvm/test/tools/llvm-objcopy/tool-name.test
+++ b/llvm/test/tools/llvm-objcopy/tool-name.test
@@ -1,5 +1,5 @@
 ## Don't make symlinks on Windows.
-# UNSUPPORTED: system-windows
+# UNSUPPORTED: system-windows, llvm-driver
 
 # RUN: rm -rf %t
 # RUN: mkdir %t


        


More information about the cfe-commits mailing list