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.