test/total.sh

changeset 57
68018eac46c3
parent 56
ed65f8c73fb2
child 68
ae763178ee1e
     1.1 --- a/test/total.sh	Thu Aug 23 17:58:38 2018 +0200
     1.2 +++ b/test/total.sh	Thu Aug 23 19:45:36 2018 +0200
     1.3 @@ -27,5 +27,18 @@
     1.4  # POSSIBILITY OF SUCH DAMAGE.
     1.5  #
     1.6  
     1.7 -echo "Verifying correctness of total line count."
     1.8 +echo -n "Verifying correctness of total line count: "
     1.9  
    1.10 +clineprg="$(pwd)/../src/cline"
    1.11 +
    1.12 +cd $srcdir
    1.13 +count=`$clineprg -Vs testfile.c`
    1.14 +expected=21
    1.15 +
    1.16 +if [ "$count" -eq "$expected" ]; then
    1.17 +    echo "OK."
    1.18 +    exit 0;
    1.19 +else
    1.20 +    echo "FAIL! $count is not $expected"
    1.21 +    exit 1;
    1.22 +fi

mercurial