test/total.sh

changeset 68
ae763178ee1e
parent 57
68018eac46c3
equal deleted inserted replaced
67:767fe7a007f7 68:ae763178ee1e
27 # POSSIBILITY OF SUCH DAMAGE. 27 # POSSIBILITY OF SUCH DAMAGE.
28 # 28 #
29 29
30 echo -n "Verifying correctness of total line count: " 30 echo -n "Verifying correctness of total line count: "
31 31
32 clineprg="$(pwd)/../src/cline" 32 count=`../build/cline -Vs testfile.c`
33
34 cd $srcdir
35 count=`$clineprg -Vs testfile.c`
36 expected=21 33 expected=21
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

mercurial