test/make: select ABI reference build for test
At given time we support two SPDK versions: - last release - LTS release For ABI tests we need to select proper reference build to check against. Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: I674b6092199c4535288f5062ff0523a13890cbce Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5056 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Michal Berger <michalx.berger@intel.com>
This commit is contained in:
parent
13cf7a656c
commit
f75d677908
@ -1,6 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
|
function get_git_tag() {
|
||||||
|
git -C "${1:-$rootdir}" describe --tags --abbrev=0
|
||||||
|
}
|
||||||
|
|
||||||
if [ "$(uname -s)" = "FreeBSD" ]; then
|
if [ "$(uname -s)" = "FreeBSD" ]; then
|
||||||
echo "Not testing for shared object dependencies on FreeBSD."
|
echo "Not testing for shared object dependencies on FreeBSD."
|
||||||
exit 0
|
exit 0
|
||||||
@ -18,13 +22,22 @@ source "$rootdir/test/common/autotest_common.sh"
|
|||||||
|
|
||||||
libdir="$rootdir/build/lib"
|
libdir="$rootdir/build/lib"
|
||||||
libdeps_file="$rootdir/mk/spdk.lib_deps.mk"
|
libdeps_file="$rootdir/mk/spdk.lib_deps.mk"
|
||||||
source_abi_dir="$HOME/spdk_abi_latest/build/lib"
|
|
||||||
suppression_file="$HOME/abigail_suppressions.ini"
|
suppression_file="$HOME/abigail_suppressions.ini"
|
||||||
|
|
||||||
|
spdk_tag=$(get_git_tag)
|
||||||
|
spdk_lts_tag=$(get_git_tag "$HOME/spdk_abi_lts")
|
||||||
|
repo="spdk_abi_latest"
|
||||||
|
if [[ "$spdk_tag" == "$spdk_lts_tag" ]]; then
|
||||||
|
repo="spdk_abi_lts"
|
||||||
|
fi
|
||||||
|
source_abi_dir="$HOME/$repo/build/lib"
|
||||||
|
|
||||||
function confirm_abi_deps() {
|
function confirm_abi_deps() {
|
||||||
local processed_so=0
|
local processed_so=0
|
||||||
local abidiff_output
|
local abidiff_output
|
||||||
|
|
||||||
|
echo "* Running ${FUNCNAME[0]} against $repo" >&2
|
||||||
|
|
||||||
if ! hash abidiff; then
|
if ! hash abidiff; then
|
||||||
echo "Unable to check ABI compatibility. Please install abidiff."
|
echo "Unable to check ABI compatibility. Please install abidiff."
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user