[all-commits] [llvm/llvm-project] a4b010: [llvm-config] Make tests more resiliant

Chris B via All-commits all-commits at lists.llvm.org
Tue Oct 18 08:04:51 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4b010034f57b428acb3a57a767366eb40816173
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M llvm/test/tools/llvm-config/booleans.test
    M llvm/test/tools/llvm-config/system-libs.test

  Log Message:
  [llvm-config] Make tests more resiliant

In some modes llvm-config issues an error if a requested library is not
available on the system. The in-tree lit tests do not add explicit
dependencies on all component libraries, instead relying on the
transitive dependencies of tools and other libraries.

This can result in some configurations where a component library may not
be used by any of the test dependencies, so it may not be generated
before the tests run. This occurs when optional components of the LLVM
build are excluded, or not included.

In the case where a component library is not generated two test caess
are currently failing. One which tests the shared library boolean flag,
and one which tests the system library requirements. Neither test
require the full set of LLVM libraries to be specifed, so in both cases
I've limited the requested library set to Support to make the tests more

More information about the All-commits mailing list