[llvm-commits] [PATCH] tests for FileCheck

Dmitri Gribenko gribozavr at gmail.com
Thu Nov 15 06:34:20 PST 2012


On Thu, Nov 15, 2012 at 4:10 PM, Eli Bendersky <eliben at google.com> wrote:
> Hi all,
>
> FileCheck is an important part of our testing infrastructure; although
> it's long become a non-trivial utility, and keeps getting new features
> added and bugs fixed on a regular basis it has no tests of its own.
> True, many of the actual LLVM tests also exercise FileCheck to some
> extent, but IMHO having specific tests targeted to the tool itself is
> important.

Hi Eli,

I like this approach.  It is the closest one to the actual use of FileCheck.

While LLVM and Clang tests do use FileCheck, all those inputs are
correct. It is important to ensure that erroneous CHECK: lines and
other syntax errors are also caught -- and we can do that with tests
for FileCheck itself.

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>*/



More information about the llvm-commits mailing list