You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

abi-check.sh 905 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. prev=0.16
  3. release=0.17
  4. # ... clone json-c, abi-compliance-checker, abi-dumper
  5. mkdir build
  6. cd build
  7. CFLAGS=-Og cmake -DCMAKE_INSTALL_PREFIX=~/json-c-installs/json-c-${release} ..
  8. make && make test && make install
  9. # Assume the old version has already been built
  10. cd ~/abi-compliance-checker
  11. mkxml()
  12. {
  13. ver="$1"
  14. cat <<EOF > json-c-${ver}.xml
  15. <foo>
  16. <version>
  17. ${ver}
  18. </version>
  19. <headers>
  20. ../json-c-installs/json-c-${ver}/include/json-c
  21. </headers>
  22. <libs>
  23. ../json-c-installs/json-c-${ver}/lib64/libjson-c.so
  24. </libs>
  25. </foo>
  26. EOF
  27. }
  28. mkxml ${release}
  29. mkxml ${prev}
  30. perl abi-compliance-checker.pl -lib json-c -dump json-c-${prev}.xml -dump-path ./ABI-${prev}.dump
  31. perl abi-compliance-checker.pl -lib json-c -dump json-c-${release}.xml -dump-path ./ABI-${release}.dump
  32. perl abi-compliance-checker.pl -l json-c -old ABI-${prev}.dump -new ABI-${release}.dump
  33. echo "look in compat_reports/json-c/..."