[llvm-commits] [llvm] r91403 - /llvm/trunk/test/LLVMC/Init.td

Chris Lattner clattner at apple.com
Mon Dec 14 21:47:38 PST 2009


On Dec 14, 2009, at 7:04 PM, Mikhail Glushenkov wrote:

> Author: foldr
> Date: Mon Dec 14 21:04:14 2009
> New Revision: 91403
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=91403&view=rev
> Log:
> Pipe 'grep' output to 'count'.

Hi Mikhail,

Please convert this to use FileCheck.  Not all systems have "nice" grep implementations that can handle all the escapes etc.  FileCheck is documented here:
http://llvm.org/docs/TestingGuide.html#FileCheck

-Chris

> 
> Modified:
>    llvm/trunk/test/LLVMC/Init.td
> 
> Modified: llvm/trunk/test/LLVMC/Init.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/Init.td?rev=91403&r1=91402&r2=91403&view=diff
> 
> ==============================================================================
> --- llvm/trunk/test/LLVMC/Init.td (original)
> +++ llvm/trunk/test/LLVMC/Init.td Mon Dec 14 21:04:14 2009
> @@ -1,7 +1,7 @@
> // Check that (init true/false) and (init "str") work.
> // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
> -// RUN: grep cl::init("some-string") %t
> -// RUN: grep cl::init(true) %t
> +// RUN: grep cl::init(\\"some-string\\") %t | count 1
> +// RUN: grep cl::init(true) %t | count 1
> 
> include "llvm/CompilerDriver/Common.td"
> 
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list