commit | 57a6f30125ad4f83de0147379835e4386872f479 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Aug 10 15:07:05 2007 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Aug 10 15:07:05 2007 +0000 |
tree | a2d140b043b9fc77ac5360490ead4bc54616242e | |
parent | 25ac7e8364f475597e2a6f3628fce839583e1f45 [diff] |
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". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40988 91177308-0d34-0410-b5e6-96231b3b80d8