diff --git a/t/abi-check.sh b/t/abi-check.sh index 5ef921f..1dd5a0e 100755 --- a/t/abi-check.sh +++ b/t/abi-check.sh @@ -43,6 +43,15 @@ cp -r "${source_path}"/.git "${CHECK_DIR}/source.$new_version_norm" mkdir -p lib make ) + +old_soversion="$(grep VERSION= "${CHECK_DIR}/source.$old_version_norm/Makefile")" +new_soversion="$(grep VERSION= "${CHECK_DIR}/source.$new_version_norm/Makefile")" + +if [ "${old_soversion}" != "${new_soversion}" ]; then + echo "The SOVERSION is different, skipping API/ABI tests." + exit 0 +fi + # generate config files cat > "${CHECK_DIR}/${old_version_norm}.xml" << EOF