跳至主要内容

lcov --diff usage

# Pathnames in the diff file need to be absolute (note
# to self: document)
diff -u $(PWD)/hello_old.c $(PWD)/hello_new.c > difffile

# Without --convert-filenames, the data from RUN1 will
# still be associated with hello_old.c
lcov --diff RUN1.INFO difffile --convert-filenames -o RUN1_CONVERTED.INFO

然后修改RUN1_CONVERTED.INFO的TN和SF,与RUN2.INFO一致

# Add data from both runs lcov -a RUN1_CONVERTED.INFO -a RUN2.INFO -o RUN_ALL.INFO



oldfile

newfile
merge old coverage to newfile

merge all coverage result



评论

此博客中的热门博文

ubuntu 添加root登录

Login to your server as root. As the root user, edit the sshd_config file found in  /etc/ssh/sshd_config : vim /etc/ssh/sshd_config ( For details on working with Vim check out our article here !) Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there. PermitRootLogin yes Save and exit the file. Restart the SSH server: systemctl restart sshd or service sshd restart