[libcxx-commits] [PATCH] D81866: [libc++] Add from-scratch configuration files for the test suite

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 15 12:38:04 PDT 2020


ldionne created this revision.
Herald added subscribers: libcxx-commits, dexonsmith, jkorous.
Herald added a project: libc++.
Herald added a reviewer: libc++.
ldionne added a parent revision: D81846: [libc++] Allow specifying custom Lit config files.
ldionne added a comment.

This is a WIP example of how to specify custom config files for running the libc++ test suite. The intent is that such config files can be checked into the repository, representing how different vendors run the test suite. For example, it would make sense to me to have a configuration for running the test suite with MSVC's library or libstdc++.

For those wondering why I'm doing that:

1. The more people we have running the test suite, the more people have an incentive to contribute to it and improve it, which means I get to do less of that and more of other stuff :-)
2. Having different Lit config files is going to remove a lot of complexity from the CMake build, where we have crazy settings for things like "build the shared library but link the tests against the static library". This shouldn't be part of CMake, it should just be a matter of selecting the right testing configuration.


This commit adds the first from-scratch configuration files for running
the libc++ test suite without using the old configuration:

- libcxx-trunk-shared.cfg.py: Runs the test suite against a trunk libc++ shared library.
- libcxx-trunk-static.cfg.py: Runs the test suite against a trunk libc++ static library.
- libcxx-apple-backdeployment.cfg.py: Links tests against one libc++ shared library, but runs them against another libc++ shared library. This makes sure that we can build applications against the libc++ provided in a recent SDK and back-deploy them to platforms containing older libc++ dylibs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81866

Files:
  libcxx/test/configs/libcxx-apple-backdeployment.cfg.in
  libcxx/test/configs/libcxx-trunk-shared.cfg.in
  libcxx/test/configs/libcxx-trunk-static.cfg.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81866.270824.patch
Type: text/x-patch
Size: 9054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200615/3acbd987/attachment-0001.bin>


More information about the libcxx-commits mailing list