[libc++] Add support for generated tests in the libc++ test format
A recurring problem recently has been that libc++ has several generated tests which all need to be re-generated before committing a change. This creates noise during code reviews and friction for contributors. Furthermore, the way we generated most of these tests resulted in extremely bad compilation times when using modules, because we defined a macro before compiling each file. This commit introduces a new kind of test called a '.gen' test. These tests are normal shell tests, however the Lit test format will run the test to discover the actual Lit tests it should run. This basically allows generating a Lit test suite on the fly using arbitrary code, which can be used in the future to generate tests like our __verbose_abort tests and several others. Differential Revision: https://reviews.llvm.org/D151258
Loading
Please sign in to comment