How to test binary compatibility automatically?

那年仲夏 提交于 2019-11-27 14:49:40

问题


Can it be done before compiling, by comparing code? Is there any tools already doing this?


回答1:


You might find this interesting: Static analysis tool to detect ABI breaks in C++




回答2:


ABI Compliance Checker — a tool for checking backward API/ABI compatibility of a C/C++ library:

abi-compliance-checker -lib NAME -old OLD.abidump -new NEW.abidump

*.abidump files are ABI dumps of OLD and NEW library versions generated by the ABI Dumper tool.

icheck - C interface ABI/API checker:

icheck --canonify -o old_version -I/usr/include/foo/ bar.h
icheck --compare -o results.txt old_version new_version

shlib-compat - ABI compatibility checker that uses DWARF debug info:

python shlib-compat -vv OLD.so NEW.so



回答3:


I recall Purify had some functionality to verify compatibility between builds, take a look here.



来源:https://stackoverflow.com/questions/1970296/how-to-test-binary-compatibility-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!