Currently, there two useful techniques for debugging failing tests from LIT:
- -vv flag shows every line as it is executed
- FILECHECK_DUMP_INPUT_ON_FAILURE tells FileCheck to show the original input which failed the comparison.
Note that -vv flag can not be passed through ninja, and a manual LIT invocation is required.
This patch proposes a unification of such debugging features under a common umbrella, so that each flag would not have to be memorized separately.
If LIT_DEBUG=2 and FILECHECK_DUMP_INPUT_ON_FAILURE=0 are specified in the environment, does the former clobber the latter? Should it?