projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add another optimization from PR2330. Also catch some missing cases that are
[oota-llvm.git]
/
test
/
Scripts
/
count
1
#!/bin/sh
2
#
3
# Program: count
4
#
5
# Synopsis: Count the number of lines of input on stdin and test that it
6
# matches the specified number.
7
#
8
# Syntax: count <number>
9
10
set -e
11
set -u
12
input_lines=`wc -l`
13
if [ "$input_lines" -ne "$1" ]; then
14
echo "count: expected $1 lines and got ${input_lines}."
15
exit 1
16
fi
17
exit 0