[llvm-commits] [llvm] r40988 - /llvm/trunk/test/Scripts/count

Chris Lattner clattner at apple.com
Fri Aug 10 08:24:16 PDT 2007

On Aug 10, 2007, at 8:07 AM, Dan Gohman wrote:

> URL: http://llvm.org/viewvc/llvm-project?rev=40988&view=rev
> Log:
> Add a test script for counting lines. This can be used instead of the
> "| grep foo | wc -l | grep 2" idiom used by many tests, so that, for
> example, tests don't mistakenly accept a count of 12 when 2 is
> expected. Also, the new form is more consice: "| grep foo | count 2".

Nifty.  Please convert tests that use "wc -l" to use this instead so  
the suite is consistent.  Thanks Dan,


More information about the llvm-commits mailing list