How to test binary compatibility automatically?

2020-02-09 03:45发布

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

3条回答
趁早两清
2楼-- · 2020-02-09 03:55

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

查看更多
ら.Afraid
3楼-- · 2020-02-09 03:56

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.

enter image description here

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
查看更多
放我归山
4楼-- · 2020-02-09 04:13
登录 后发表回答