From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A216A04B6; Mon, 12 Oct 2020 10:09:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 411B81D62C; Mon, 12 Oct 2020 10:08:56 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D728A1D619 for ; Mon, 12 Oct 2020 10:08:53 +0200 (CEST) IronPort-SDR: evbXxXmEJvgAQp8JT4XedAzJWNwzHrqHWQFJ5l8N+FV/ECuFXrbaSeT4/VND8/Be5x2rS3goM8 blW+UdZfeCow== X-IronPort-AV: E=McAfee;i="6000,8403,9771"; a="162239014" X-IronPort-AV: E=Sophos;i="5.77,366,1596524400"; d="scan'208";a="162239014" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2020 01:08:52 -0700 IronPort-SDR: PVsJiBKyb5LXLAxulpTzAGzfPAxpWUKLF6G9SopxnOf1WcoQc22R+QwanbkUHjcvjQlxnoVACM SPJAogo4Z/Ew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,366,1596524400"; d="scan'208";a="317841931" Received: from unknown (HELO silpixa00400466.ir.intel.com) ([10.237.213.195]) by orsmga006.jf.intel.com with ESMTP; 12 Oct 2020 01:08:51 -0700 From: Conor Walsh To: mdr@ashroe.eu, nhorman@tuxdriver.com, bruce.richardson@intel.com, thomas@monjalon.net, david.marchand@redhat.com Cc: dev@dpdk.org, Conor Walsh Date: Mon, 12 Oct 2020 08:08:26 +0000 Message-Id: <20201012080829.3446-2-conor.walsh@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201012080829.3446-1-conor.walsh@intel.com> References: <20200918121137.1370883-1-conor.walsh@intel.com> <20201012080829.3446-1-conor.walsh@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 1/4] devtools: add generation of compressed abi dump archives X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch adds a script that generates compressed archives containing .dump files which can be used to perform abi breakage checking in test-meson-build.sh. Invoke using "./gen-abi-tarballs.sh [-v ]" - : dpdk tag e.g. "v20.11" or "latest" e.g. "./gen-abi-tarballs.sh -v latest" If no tag is specified, the script will default to "latest" Using these parameters the script will produce several *.tar.gz archives containing .dump files required to do abi breakage checking Signed-off-by: Conor Walsh --- devtools/gen-abi-tarballs.sh | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 devtools/gen-abi-tarballs.sh diff --git a/devtools/gen-abi-tarballs.sh b/devtools/gen-abi-tarballs.sh new file mode 100755 index 000000000..bcc1beac5 --- /dev/null +++ b/devtools/gen-abi-tarballs.sh @@ -0,0 +1,48 @@ +#! /bin/sh -e +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020 Intel Corporation + +# Generate the required prebuilt ABI references for test-meson-build.sh + +# Get arguments +usage() { echo "Usage: $0 [-v ]" 1>&2; exit 1; } +abi_tag= +while getopts "v:h" arg; do + case $arg in + v) + if [ -n "$DPDK_ABI_REF_VERSION" ]; then + echo "DPDK_ABI_REF_VERSION and -v cannot both be set" + exit 1 + fi + DPDK_ABI_REF_VERSION=${OPTARG} ;; + h) + usage ;; + *) + usage ;; + esac +done + +if [ -z $DPDK_ABI_REF_VERSION ] ; then + DPDK_ABI_REF_VERSION="latest" +fi + +srcdir=$(dirname $(readlink -f $0))/.. + +DPDK_ABI_GEN_REF=-20 +DPDK_ABI_REF_DIR=$srcdir/__abitarballs + +. $srcdir/devtools/test-meson-builds.sh + +abirefdir=$DPDK_ABI_REF_DIR/$DPDK_ABI_REF_VERSION + +rm -rf $abirefdir/build-*.tar.gz +cd $abirefdir +for f in build-* ; do + tar -czf $f.tar.gz $f +done +cp *.tar.gz ../ +rm -rf * +mv ../*.tar.gz . +rm -rf build-x86-default.tar.gz + +echo "The references for $DPDK_ABI_REF_VERSION are now available in $abirefdir" -- 2.25.1