27 # POSSIBILITY OF SUCH DAMAGE. |
27 # POSSIBILITY OF SUCH DAMAGE. |
28 # |
28 # |
29 |
29 |
30 echo -n "Verifying correctness of line count without comments: " |
30 echo -n "Verifying correctness of line count without comments: " |
31 |
31 |
32 clineprg="$(pwd)/../src/cline" |
32 count=`../build/cline -Vs testfile.c --exclude-cstyle-comments` |
33 |
|
34 cd $srcdir |
|
35 count=`$clineprg -Vs testfile.c --exclude-cstyle-comments` |
|
36 expected=12 |
33 expected=12 |
37 |
34 |
38 if [ "$count" -eq "$expected" ]; then |
35 if [ "$count" -eq "$expected" ]; then |
39 echo "OK." |
36 echo "OK." |
40 exit 0; |
37 exit 0 |
41 else |
38 else |
42 echo "FAIL! $count is not $expected" |
39 echo "FAIL! $count is not $expected" |
43 exit 1; |
40 exit 1 |
44 fi |
41 fi |