Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test binary compatibility automatically? [duplicate]

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

like image 681
graphite Avatar asked Dec 28 '09 16:12

graphite


1 Answers

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
like image 152
linuxbuild Avatar answered Sep 21 '22 07:09

linuxbuild