Add ABI tracker
This commit is contained in:
parent
3ea4486bed
commit
1b2ebfc69a
35
.travis.yml
35
.travis.yml
|
@ -1,38 +1,10 @@
|
||||||
language: c
|
language: c
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
|
||||||
- x86_64-w64-mingw32-gcc
|
|
||||||
env:
|
env:
|
||||||
- OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Release
|
- OPJ_CI_ABI_CHECK=1
|
||||||
- OPJ_CI_ARCH=i386 OPJ_CI_BUILD_CONFIGURATION=Release
|
|
||||||
- OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug OPJ_CI_ASAN=1
|
|
||||||
- OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
exclude:
|
|
||||||
- os: osx
|
|
||||||
compiler: gcc
|
|
||||||
- os: osx
|
|
||||||
compiler: x86_64-w64-mingw32-gcc
|
|
||||||
- compiler: clang
|
|
||||||
env: OPJ_CI_ARCH=i386 OPJ_CI_BUILD_CONFIGURATION=Release
|
|
||||||
- compiler: clang
|
|
||||||
env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug
|
|
||||||
- os: linux
|
|
||||||
compiler: clang
|
|
||||||
env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Release
|
|
||||||
- compiler: gcc
|
|
||||||
env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug OPJ_CI_ASAN=1
|
|
||||||
- compiler: x86_64-w64-mingw32-gcc
|
|
||||||
env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug OPJ_CI_ASAN=1
|
|
||||||
- compiler: x86_64-w64-mingw32-gcc
|
|
||||||
env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug
|
|
||||||
- os: osx
|
|
||||||
env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug OPJ_CI_ASAN=1
|
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
@ -44,9 +16,14 @@ addons:
|
||||||
- gcc-mingw-w64-i686
|
- gcc-mingw-w64-i686
|
||||||
- gcc-mingw-w64-x86-64
|
- gcc-mingw-w64-x86-64
|
||||||
- gcc-mingw-w64
|
- gcc-mingw-w64
|
||||||
|
- libelf-dev
|
||||||
|
- elfutils
|
||||||
|
- wdiff
|
||||||
|
- exuberant-ctags
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ./tools/travis-ci/install.sh
|
- ./tools/travis-ci/install.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./tools/travis-ci/run.sh
|
- ./tools/travis-ci/run.sh
|
||||||
|
- ./tools/travis-ci/abi-check.sh
|
||||||
|
|
|
@ -677,6 +677,8 @@ typedef struct opj_image {
|
||||||
OPJ_BYTE *icc_profile_buf;
|
OPJ_BYTE *icc_profile_buf;
|
||||||
/** size of ICC profile */
|
/** size of ICC profile */
|
||||||
OPJ_UINT32 icc_profile_len;
|
OPJ_UINT32 icc_profile_len;
|
||||||
|
/** size of ICC profile */
|
||||||
|
OPJ_UINT32 icc_profile_len2;
|
||||||
} opj_image_t;
|
} opj_image_t;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,131 @@
|
||||||
|
{
|
||||||
|
"Name": "openjpeg",
|
||||||
|
"Title": "OpenJPEG",
|
||||||
|
"SourceUrl": "https://github.com/uclouvain/openjpeg/tags",
|
||||||
|
"Git": "https://github.com/uclouvain/openjpeg.git",
|
||||||
|
"Maintainer": "Antonin D.",
|
||||||
|
"MaintainerUrl": "http://www.openjpeg.org/",
|
||||||
|
"Package": "version.",
|
||||||
|
|
||||||
|
"Versions": [
|
||||||
|
{
|
||||||
|
"Number": "current",
|
||||||
|
"Installed": "installed/openjpeg/current",
|
||||||
|
"Source": "@OPJ_SRC_DIR@",
|
||||||
|
"Changelog": "On",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/current/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/current/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "2.1",
|
||||||
|
"Installed": "installed/openjpeg/2.1",
|
||||||
|
"Source": "src/openjpeg/2.1/version.2.1.tar.gz",
|
||||||
|
"Changelog": "NEWS",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/2.1/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/2.1/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "2.0.1",
|
||||||
|
"Installed": "installed/openjpeg/2.0.1",
|
||||||
|
"Source": "src/openjpeg/2.0.1/version.2.0.1.tar.gz",
|
||||||
|
"Changelog": "NEWS",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/2.0.1/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/2.0.1/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "2.0",
|
||||||
|
"Installed": "installed/openjpeg/2.0",
|
||||||
|
"Source": "src/openjpeg/2.0/version.2.0.tar.gz",
|
||||||
|
"Changelog": "NEWS",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "On",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/2.0/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/2.0/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "1.5.2",
|
||||||
|
"Installed": "installed/openjpeg/1.5.2",
|
||||||
|
"Source": "src/openjpeg/1.5.2/version.1.5.2.tar.gz",
|
||||||
|
"Changelog": "NEWS",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/1.5.2/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/1.5.2/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "1.5.1",
|
||||||
|
"Installed": "installed/openjpeg/1.5.1",
|
||||||
|
"Source": "src/openjpeg/1.5.1/version.1.5.1.tar.gz",
|
||||||
|
"Changelog": "NEWS",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/1.5.1/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/1.5.1/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "1.5",
|
||||||
|
"Installed": "installed/openjpeg/1.5",
|
||||||
|
"Source": "src/openjpeg/1.5/version.1.5.tar.gz",
|
||||||
|
"Changelog": "NEWS",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/1.5/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/1.5/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "1.4",
|
||||||
|
"Installed": "installed/openjpeg/1.4",
|
||||||
|
"Source": "src/openjpeg/1.4/version.1.4.tar.gz",
|
||||||
|
"Changelog": "CHANGES",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/1.4/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/1.4/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "1.3",
|
||||||
|
"Installed": "installed/openjpeg/1.3",
|
||||||
|
"Source": "src/openjpeg/1.3/version.1.3.tar.gz",
|
||||||
|
"Changelog": "ChangeLog",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/1.3/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/1.3/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Number": "1.2",
|
||||||
|
"Installed": "installed/openjpeg/1.2",
|
||||||
|
"Source": "src/openjpeg/1.2/version.1.2.tar.gz",
|
||||||
|
"Changelog": "ChangeLog",
|
||||||
|
"HeadersDiff": "On",
|
||||||
|
"PkgDiff": "Off",
|
||||||
|
"ABIView": "Off",
|
||||||
|
"ABIDiff": "Off",
|
||||||
|
"PublicSymbols": "public_symbols/openjpeg/1.2/list",
|
||||||
|
"PublicTypes": "public_types/openjpeg/1.2/list"
|
||||||
|
}]
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script executes the abi-check step when running under travis-ci (in run step)
|
||||||
|
|
||||||
|
# Set-up some bash options
|
||||||
|
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
|
||||||
|
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
|
||||||
|
set -o pipefail ## Fail on error in pipe
|
||||||
|
set -o xtrace ## set -x : Print a trace of simple commands and their arguments after they are expanded and before they are executed.
|
||||||
|
|
||||||
|
# Exit if not ABI check
|
||||||
|
if [ "${OPJ_CI_ABI_CHECK:-}" != "1" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
OPJ_SOURCE_DIR=$(cd $(dirname $0)/../.. && pwd)
|
||||||
|
|
||||||
|
if [ ! -d ${HOME}/abi-check ]; then
|
||||||
|
mkdir ${HOME}/abi-check
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ${HOME}/abi-check
|
||||||
|
|
||||||
|
if [ ! -f ${HOME}/abi-check/.restored ]; then
|
||||||
|
# Clean all if .restored is not present
|
||||||
|
touch not.empty
|
||||||
|
rm -rf ./*
|
||||||
|
# Let's get tools not available with apt
|
||||||
|
mkdir tools
|
||||||
|
wget -qO - https://tools.ietf.org/tools/rfcdiff/rfcdiff-1.42.tgz | tar -xz
|
||||||
|
mv rfcdiff-1.42 ${PWD}/tools/rfcdiff
|
||||||
|
wget -qO - https://github.com/lvc/installer/archive/0.2.tar.gz | tar -xz
|
||||||
|
mkdir ${PWD}/tools/abi-tracker
|
||||||
|
make -C installer-0.2 install prefix=${PWD}/tools/abi-tracker target=abi-tracker
|
||||||
|
mkdir tracker
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd tracker
|
||||||
|
|
||||||
|
# Check ABI
|
||||||
|
export PATH=${PWD}/../tools/rfcdiff:${PWD}/../tools/abi-tracker/bin:$PATH
|
||||||
|
sed -e "s/@OPJ_SOURCE_DIR@/${OPJ_SOURCE_DIR//\//\\/}/g" ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > openjpeg.json
|
||||||
|
abi-monitor -get openjpeg.json
|
||||||
|
abi-monitor -build openjpeg.json
|
||||||
|
abi-tracker -build openjpeg.json
|
|
@ -19,9 +19,10 @@ function exit_handler ()
|
||||||
trap exit_handler EXIT
|
trap exit_handler EXIT
|
||||||
trap exit ERR
|
trap exit ERR
|
||||||
|
|
||||||
# We don't need anything for coverity scan builds
|
# We don't need anything for coverity scan builds. ABI check is managed in abi-check.sh
|
||||||
|
if [ "${COVERITY_SCAN_BRANCH:-}" == "1" ] || [ "${OPJ_CI_ABI_CHECK:-}" == "1" ]; then
|
||||||
if [ "${COVERITY_SCAN_BRANCH:-}" != "1" ]; then
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${OPJ_CI_ASAN:-}" == "1" ]; then
|
if [ "${OPJ_CI_ASAN:-}" == "1" ]; then
|
||||||
# We need a new version of cmake than travis-ci provides
|
# We need a new version of cmake than travis-ci provides
|
||||||
|
@ -82,4 +83,3 @@ if [ "${COVERITY_SCAN_BRANCH:-}" != "1" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
|
@ -7,6 +7,11 @@ set -o nounset ## set -u : exit the script if you try to use an uninitialised
|
||||||
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
|
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
|
||||||
set -o pipefail ## Fail on error in pipe
|
set -o pipefail ## Fail on error in pipe
|
||||||
|
|
||||||
|
# ABI check is done by abi-check.sh
|
||||||
|
if [ "${OPJ_CI_ABI_CHECK:-}" == "1" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Set-up some variables
|
# Set-up some variables
|
||||||
if [ "${OPJ_CI_BUILD_CONFIGURATION:-}" == "" ]; then
|
if [ "${OPJ_CI_BUILD_CONFIGURATION:-}" == "" ]; then
|
||||||
export OPJ_CI_BUILD_CONFIGURATION=Release #default
|
export OPJ_CI_BUILD_CONFIGURATION=Release #default
|
||||||
|
@ -207,8 +212,6 @@ New/unknown test failure found!!!
|
||||||
OPJ_CI_RESULT=1
|
OPJ_CI_RESULT=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit ${OPJ_CI_RESULT}
|
exit ${OPJ_CI_RESULT}
|
||||||
|
|
Loading…
Reference in New Issue