This changes are aiming to capture and dump whole stdin to FileCheck.
In automated builders, we are often missing actual input, to wonder why the failure was.
- Implement -verbose in FileCheck to dump stdin to stderr.
- Introduce LLVM_FILECHECK to override default value of -verbose.
- Introduce LIT_PASS_VARS in Lit, to customize variables available in the test.
How to activate this changes;
LIT_PASS_VARS=LLVM_FILECHECK LLVM_FILECHECK=-verbose bin/llvm-lit path/to/...
This patch is W-I-P. FIXME:
- Give the description for -verbose with cl::desc().
- Generalize LLVM_FILECHECK to accept additional options.
- Improve the output of -verbose.
- Add tests for -verbose itself.
This should be LLVM_FILECHECK_OPTIONS or LLVM_FILECHECK_EXTRA_ARGS or something.