27 # POSSIBILITY OF SUCH DAMAGE. |
27 # POSSIBILITY OF SUCH DAMAGE. |
28 # |
28 # |
29 |
29 |
30 echo -n "Verifying correctness of code only character count: " |
30 echo -n "Verifying correctness of code only character count: " |
31 |
31 |
32 clineprg="$(pwd)/../src/cline" |
32 count=`../build/cline -Vcs testfile.c --exclude-cstyle-comments` |
33 |
|
34 cd $srcdir |
|
35 count=`$clineprg -Vcs testfile.c --exclude-cstyle-comments` |
|
36 expected=50 |
33 expected=50 |
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 |