1.1 --- a/test/nocomments.sh Thu Aug 23 17:58:38 2018 +0200 1.2 +++ b/test/nocomments.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 line count without comments: " 1.9 1.10 +clineprg="$(pwd)/../src/cline" 1.11 + 1.12 +cd $srcdir 1.13 +count=`$clineprg -Vs testfile.c --exclude-cstyle-comments` 1.14 +expected=12 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