[LLVMdev] [PATCH] A "very verbose" mode for FileCheck

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 16 10:32:56 PST 2013


Hello,

When someone breaks a FileCheck-based test on some buildbot, sometimes
it may not be obvious *why* did it fail.  If the failure can not be
reproduced locally, it can be very hard to fix.

I propose adding a "very verbose" mode to FileCheck.  In this mode
FileCheck will dump the input file in case of failure.  This mode will
be enabled by an environment variable "FILECHECK_VERY_VERBOSE".  If we
chose a command line option, we would have to edit all FileCheck-based
tests to use %FileCheck.

Attached is the proposed patch.  A patch for zorg will follow if this
is accepted.  Normal output for 'make check' is unchanged.

I am not attached to the name "FILECHECK_VERY_VERBOSE", suggestions
for better names are welcome.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filecheck-very-verbose-v1.patch
Type: application/octet-stream
Size: 3688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130116/eccadb06/attachment.obj>


More information about the llvm-dev mailing list