PG覆盖率检查

覆盖率检查

需要gcov和lcov工具,gcov在gcc中自带,lcov需要自行下载安装

重新编译

./configure --prefix=`pwd`/install --with-perl --with-python --with-tcl --enable-nls --with-gssapi --with-openssl --with-pam --with-ldap --with-libxml --with-libxslt --with-uuid=e2fs --with-extra-version=SRTEST --enable-debug --enable-profiling --enable-cassert --enable-depend --enable-coverage

Make install

Make check回归测试之后

Make coverage-html 进行覆盖率测试

运行结束,显示行覆盖率和函数覆盖率

同时在coverage目录下显示每一个目录函数的覆盖情况

 

重新测试之前清除计数

Make coverage-clean

posted @ 2017-05-16 15:34  hellowcf  阅读(216)  评论(0编辑  收藏  举报