Skip to content
Snippets Groups Projects

Consolidation with CDI-PIO (1.8.x)

Merged Sergey Kosukhin requested to merge cdi-1.8.x-pio-merge-followup into cdi-1.8.x
All threads resolved!
Compare and Show latest version
10 files
+ 354
29
Compare changes
  • Side-by-side
  • Inline
Files
10
+ 59
0
#!/bin/bash
set -eu
set -o pipefail
script_dir=$(cd "$(dirname "$0")"; pwd)
top_srcdir=$(cd "${script_dir}/../../.."; pwd)
# We want to check with the Debian version of Libtool, which is patched to avoid
# overlinking:
export PATH="/usr/bin:${PATH-}"
. "${script_dir}/utils.sh"
init_nv2130
libtoolize=$(which libtoolize)
test "x${libtoolize}" = 'x/usr/bin/libtoolize' || {
echo "ERROR: '${libtoolize}' is not a Debian-provided system libtoolize" >&2
exit 1
}
# Regenerate the Autotools files even if they are already available:
"${top_srcdir}/autogen.sh"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-mpi \
--enable-option-checking=fatal \
--enable-ppm-dist-array \
--with-eccodes="${ECCODES_ROOT}" \
--with-netcdf="${NETCDF_ROOT}" \
CC="${MPICC}" \
CPPFLAGS="-I${UUID_ROOT}/include" \
FC="${MPIFC}" \
LDFLAGS="-I${UUID_ROOT}/lib" \
MPI_LAUNCH="${MPI_LAUNCH}" \
PKG_CONFIG_PATH="${YAXT_ROOT}/lib/pkgconfig:${PPM_ROOT}/lib/pkgconfig"
make -j8
# Check that an executable is not overlinked to libscalesppmcore.so:
tested_file='examples/pio/.libs/collectData.parallel'
invalid_needed=`readelf -d "${tested_file}" | sed -E -n '/\(NEEDED\).*libscalesppmcore\.so/p'` || {
echo "ERROR: failed to check '${tested_file}' for ELF NEEDED entries" >&2
exit 1
}
if test -n "${invalid_needed}"; then
{
echo "ERROR: '${tested_file}' has excessive ELF NEEDED entries:" >&2
echo "${invalid_needed}" >&2
} >&2
exit 1
fi
make -j8 check || { cat tests/test-suite.log; exit 1; }
check_all_tests_passed tests/test-suite.log
Loading