[PATCH] [LIT] Allow suite configs to be reloaded allowing for better support of out-of-dir builds.

Eric Fiselier eric at efcs.ca
Fri Nov 14 11:51:50 PST 2014


Hi ddunbar, danalbert, jroelofs,

This patch was inspired by the following use case when testing libc++:

* The `lit.site.cfg` is in build-libcxx/test/lit.site.cfg
* Your working out of libcxx/test

Currently the only solution is to copy or symlink the generated `lit.site.cfg` into the source tree and then teach your VCS to ignore it. This patch allows the user to manually specify configuration files to load. It works by pre-loading the suite configuration file cache. The configuration files can be specified one of two ways:

* using the `--config` command line parameter
* using the `LIT_CONFIG` environment variable.  

The configuration files specified using `--config` are loaded before the ones in `LIT_CONFIG`. configuration files with the same path or the same test source path are not loaded twice.

@ddunbar If you disagree with this direction please let me know.

http://reviews.llvm.org/D6275

Files:
  docs/CommandGuide/lit.rst
  utils/lit/lit/discovery.py
  utils/lit/lit/main.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6275.16233.patch
Type: text/x-patch
Size: 5339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141114/e5241191/attachment.bin>


More information about the cfe-commits mailing list