search for: filecheck

Displaying 20 results from an estimated 805 matches for "filecheck".

2013 Jan 17
4
[LLVMdev] [PATCH] A "very verbose" mode for FileCheck
On Jan 16, 2013, at 1:19 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >> I agree that a command line option would be better. But in that case >> all tests should be updated. It is not an issue for me -- it is >> mostly mechanical. So should I change tests to use %FileCheck? > > Here's a third attempt. Thanks in advance for driving this forward. I'm sorry that such a simple thing is so complicated. > The new behavior is as follows: > > 1. In case of errors we always dump output to a temporary file and print > > Saving input file &quo...
2013 Jan 17
0
[LLVMdev] [PATCH] A "very verbose" mode for FileCheck
...2013, at 1:19 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >>> I agree that a command line option would be better. But in that case >>> all tests should be updated. It is not an issue for me -- it is >>> mostly mechanical. So should I change tests to use %FileCheck? >> >> Here's a third attempt. > > Thanks in advance for driving this forward. I'm sorry that such a simple thing is so complicated. > >> The new behavior is as follows: >> >> 1. In case of errors we always dump output to a temporary file and print &g...
2013 Jan 17
2
[LLVMdev] [llvm-commits] [PATCH] A "very verbose" mode for FileCheck
On Thu, Jan 17, 2013 at 8:36 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: > We have to options: > (a) replace 'FileCheck' with '%FileCheck' in all tests, and teach > 'lit' to replace '%FileCheck' with 'FileCheck --dump-input-on-error'; > > (b) teach 'lit' to replace a plain 'FileCheck'. > > The first approach seems cleaner to developers who read and w...
2013 Jan 16
3
[LLVMdev] [PATCH] A "very verbose" mode for FileCheck
On Wed, Jan 16, 2013 at 9:24 PM, Chris Lattner <clattner at apple.com> wrote: > > On Jan 16, 2013, at 10:32 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: > >> 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 th...
2013 Jan 17
2
[LLVMdev] [llvm-commits] [PATCH] A "very verbose" mode for FileCheck
...om> wrote: >> >>> On Thu, Jan 17, 2013 at 7:51 PM, Sean Silva <silvas at purdue.edu> wrote: >>>> On Thu, Jan 17, 2013 at 8:36 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >>>>> We have to options: >>>>> (a) replace 'FileCheck' with '%FileCheck' in all tests, and teach >>>>> 'lit' to replace '%FileCheck' with 'FileCheck --dump-input-on-error'; >>>>> >>>>> (b) teach 'lit' to replace a plain 'FileCheck'. >>>>>...
2013 Jan 16
4
[LLVMdev] [PATCH] A "very verbose" mode for FileCheck
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...
2013 Jan 17
3
[LLVMdev] [llvm-commits] [PATCH] A "very verbose" mode for FileCheck
...Dmitri Gribenko <gribozavr at gmail.com> wrote: > On Thu, Jan 17, 2013 at 7:51 PM, Sean Silva <silvas at purdue.edu> wrote: >> On Thu, Jan 17, 2013 at 8:36 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >>> We have to options: >>> (a) replace 'FileCheck' with '%FileCheck' in all tests, and teach >>> 'lit' to replace '%FileCheck' with 'FileCheck --dump-input-on-error'; >>> >>> (b) teach 'lit' to replace a plain 'FileCheck'. >>> >>> The first approach...
2016 Dec 15
0
[FileCheck] Fix --strict-whitespace --match-full-lines
> -----Original Message----- > From: Tom de Vries [mailto:Tom_deVries at mentor.com] > Sent: Thursday, December 15, 2016 2:31 AM > To: Robinson, Paul > Cc: Jonathan Roelofs; llvm-dev at lists.llvm.org > Subject: Re: [llvm-dev] [FileCheck] Fix --strict-whitespace --match-full- > lines > > On 14/12/16 18:48, Robinson, Paul wrote: > > Please send patches to llvm-commits not llvm-dev. > > > > Writing FileCheck tests has pitfalls. A test along these lines: > > > > bla0 > > CHECK:bla1 > &g...
2013 Jan 16
0
[LLVMdev] [PATCH] A "very verbose" mode for FileCheck
...ibozavr at gmail.com> wrote: > On Wed, Jan 16, 2013 at 9:24 PM, Chris Lattner <clattner at apple.com> wrote: >> >> On Jan 16, 2013, at 10:32 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >> >>> 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 >>> Fi...
2018 Mar 31
4
Writing tests with Filecheck without emitting output to stdin
Hello I have pass operating on bitcode file which produces more than one equivalent representation. opt --my-pass <%s | Filecheck %s --my-pass generates files a.rpt b.rpt c.rpt . How do i write test without writing all 3 files to stdin. I have considered CHECK-LABEL for each. it creates bulky checks. Thanks Mahesh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/p...
2016 Dec 15
3
[FileCheck] Fix --strict-whitespace --match-full-lines
On 14/12/16 18:48, Robinson, Paul wrote: > Please send patches to llvm-commits not llvm-dev. > > Writing FileCheck tests has pitfalls. A test along these lines: > > bla0 > CHECK:bla1 > > will actually pass, because the CHECK pattern is also part of the input > so it will readily match itself. You want the CHECK lines not to match > themselves, which you can easily do by introducing {{}} in...
2016 Dec 14
0
[FileCheck] Fix --strict-whitespace --match-full-lines
Please send patches to llvm-commits not llvm-dev. Writing FileCheck tests has pitfalls. A test along these lines: bla0 CHECK:bla1 will actually pass, because the CHECK pattern is also part of the input so it will readily match itself. You want the CHECK lines not to match themselves, which you can easily do by introducing {{}} into the (middle of the) pattern....
2013 Jan 17
0
[LLVMdev] [llvm-commits] [PATCH] A "very verbose" mode for FileCheck
...;gribozavr at gmail.com> wrote: > >> On Thu, Jan 17, 2013 at 7:51 PM, Sean Silva <silvas at purdue.edu> wrote: >>> On Thu, Jan 17, 2013 at 8:36 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >>>> We have to options: >>>> (a) replace 'FileCheck' with '%FileCheck' in all tests, and teach >>>> 'lit' to replace '%FileCheck' with 'FileCheck --dump-input-on-error'; >>>> >>>> (b) teach 'lit' to replace a plain 'FileCheck'. >>>> >>>> T...
2013 Jan 17
0
[LLVMdev] [llvm-commits] [PATCH] A "very verbose" mode for FileCheck
...gt;> >>>> On Thu, Jan 17, 2013 at 7:51 PM, Sean Silva <silvas at purdue.edu> wrote: >>>>> On Thu, Jan 17, 2013 at 8:36 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >>>>>> We have to options: >>>>>> (a) replace 'FileCheck' with '%FileCheck' in all tests, and teach >>>>>> 'lit' to replace '%FileCheck' with 'FileCheck --dump-input-on-error'; >>>>>> >>>>>> (b) teach 'lit' to replace a plain 'FileCheck'. >>&gt...
2016 Aug 24
9
RFC: FileCheck Enhancements
...ons and comments were made in reviews. Much time has already passed since last comment and uploading changed patches. I made small summary report about features here, because there are some doubts about syntax of some features and changes in patches and it'll be great to know more opinions. 1. FileCheck Enhancement - CHECK-WORD (https://reviews.llvm.org/D22353) I replace special directives by flag --check-word, which turns on mode for each directive in file. It's obvious that this mode can be replaced using \b assert, but current regexp library doesn't have support of this assert and I ha...
2013 Jan 16
3
[LLVMdev] [llvm-commits] [PATCH] A "very verbose" mode for FileCheck
...te: >> On Wed, Jan 16, 2013 at 9:24 PM, Chris Lattner <clattner at apple.com> wrote: >>> >>> On Jan 16, 2013, at 10:32 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >>> >>>> 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...
2013 Jan 17
0
[LLVMdev] [llvm-commits] [PATCH] A "very verbose" mode for FileCheck
On Thu, Jan 17, 2013 at 7:51 PM, Sean Silva <silvas at purdue.edu> wrote: > On Thu, Jan 17, 2013 at 8:36 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: >> We have to options: >> (a) replace 'FileCheck' with '%FileCheck' in all tests, and teach >> 'lit' to replace '%FileCheck' with 'FileCheck --dump-input-on-error'; >> >> (b) teach 'lit' to replace a plain 'FileCheck'. >> >> The first approach seems cleaner to devel...
2016 Dec 14
4
[FileCheck] Fix --strict-whitespace --match-full-lines
Hi, this patch fixes a problem with leading/trailing whitespace matching for FileCheck --strict-whitespace --match-full-lines. Consider a text file: ... $ cat DUMP bla1 bla2 bla3 bla4 bla5 ... with some leading and trailing spaces, made more visible like this: ... $ sed 's/ /_/g' DUMP bla1 bla2 _bla3 bla4_ _bla5_ ... and a FileCheck file CHECK to match DUMP: ... $ cat...
2016 Dec 15
1
[FileCheck] Fix --strict-whitespace --match-full-lines
...binson, Paul wrote: > > >> -----Original Message----- >> From: Tom de Vries [mailto:Tom_deVries at mentor.com] >> Sent: Thursday, December 15, 2016 2:31 AM >> To: Robinson, Paul >> Cc: Jonathan Roelofs; llvm-dev at lists.llvm.org >> Subject: Re: [llvm-dev] [FileCheck] Fix --strict-whitespace --match-full- >> lines >> >> On 14/12/16 18:48, Robinson, Paul wrote: >>> Please send patches to llvm-commits not llvm-dev. >>> >>> Writing FileCheck tests has pitfalls. A test along these lines: >>> >>> bla0 &g...
2013 Jan 16
0
[LLVMdev] [PATCH] A "very verbose" mode for FileCheck
On Jan 16, 2013, at 10:32 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote: > 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 cas...