Here's an RFC with patch on documentation explaining the how and why of splitting up tests in the testsuite. Effectively: "Why we don’t emit assembly in the clang testsuite”. It largely elaborates on things already in the developer documentation, but provides a (hopefully) useful example and answers a few questions I've gotten a lot over the years. I wrote this a while back after having to explain for the Nth time why we split things up :)
I've added a few people that probably care about this sort of thing to the review line.
This patch:
- Adds a link to a testing philosophy document in the developer documentation.
- Creates a set of explanatory text in another file explaining our philosophy.
Is it worth mentioning Sema tests? This is targeted at backend / ISA people, but oftentimes attributes and target features need diagnostic tests. We could mention it briefly here and link to the VerifyDiagnosticConsumer doxygen to explain the other test format: https://clang.llvm.org/doxygen/classclang_1_1VerifyDiagnosticConsumer.html