7 FILES_TO_PRINT="build/meson-logs/testlog.txt build/.ninja_log build/meson-logs/meson-log.txt"
9 for pr_file in $FILES_TO_PRINT; do
10 if [ -e "$pr_file" ]; then
17 install_libabigail() {
21 wget -q "http://mirrors.kernel.org/sourceware/libabigail/${version}.tar.gz"
22 tar -xf ${version}.tar.gz
23 cd $version && autoreconf -vfi && cd -
25 cd $version/build && ../configure --prefix=$instdir && cd -
26 make -C $version/build all install
31 if [ "$AARCH64" = "1" ]; then
32 # convert the arch specifier
33 OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_gcc"
36 if [ "$BUILD_DOCS" = "1" ]; then
37 OPTS="$OPTS -Denable_docs=true"
40 if [ "$BUILD_32BIT" = "1" ]; then
41 OPTS="$OPTS -Dc_args=-m32 -Dc_link_args=-m32"
42 export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
45 if [ "$DEF_LIB" = "static" ]; then
46 OPTS="$OPTS -Dexamples=l2fwd,l3fwd"
48 OPTS="$OPTS -Dexamples=all"
51 OPTS="$OPTS --default-library=$DEF_LIB"
52 OPTS="$OPTS --buildtype=debugoptimized"
53 meson build --werror $OPTS
56 if [ "$AARCH64" != "1" ]; then
60 if [ "$ABI_CHECKS" = "1" ]; then
61 LIBABIGAIL_VERSION=${LIBABIGAIL_VERSION:-libabigail-1.6}
63 if [ "$(cat libabigail/VERSION 2>/dev/null)" != "$LIBABIGAIL_VERSION" ]; then
65 # if we change libabigail, invalidate existing abi cache
69 if [ ! -d libabigail ]; then
70 install_libabigail $LIBABIGAIL_VERSION $(pwd)/libabigail
71 echo $LIBABIGAIL_VERSION > libabigail/VERSION
74 export PATH=$(pwd)/libabigail/bin:$PATH
76 REF_GIT_REPO=${REF_GIT_REPO:-https://dpdk.org/git/dpdk}
77 REF_GIT_TAG=${REF_GIT_TAG:-v19.11}
79 if [ "$(cat reference/VERSION 2>/dev/null)" != "$REF_GIT_TAG" ]; then
83 if [ ! -d reference ]; then
84 refsrcdir=$(readlink -f $(pwd)/../dpdk-$REF_GIT_TAG)
85 git clone --single-branch -b $REF_GIT_TAG $REF_GIT_REPO $refsrcdir
86 meson --werror $OPTS $refsrcdir $refsrcdir/build
87 ninja -C $refsrcdir/build
88 DESTDIR=$(pwd)/reference ninja -C $refsrcdir/build install
89 devtools/gen-abi.sh reference
90 echo $REF_GIT_TAG > reference/VERSION
93 DESTDIR=$(pwd)/install ninja -C build install
94 devtools/gen-abi.sh install
95 devtools/check-abi.sh reference install ${ABI_CHECKS_WARN_ONLY:-}
98 if [ "$RUN_TESTS" = "1" ]; then
99 sudo meson test -C build --suite fast-tests -t 3