From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1B7E1A0543; Tue, 6 Dec 2022 13:24:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AAA44410FB; Tue, 6 Dec 2022 13:24:03 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2087.outbound.protection.outlook.com [40.107.237.87]) by mails.dpdk.org (Postfix) with ESMTP id 801074021D for ; Tue, 6 Dec 2022 13:24:02 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cyk9Wlh106Zx8A3mFaW2WeHK+1SSqv2GhBOHORozwR/JopsLdR1q6mjzWW7cmM3ZFZrAG8QVI1PsZbdr15w2kkEdEWqV+JLFaAPEeMHiz3e9/pwoN12HOfcOeHwJpNu/UbFqOv3KAHVXKBYkc9JKltXK4faCflj9hr7p9qADIR76yeQDUAh4JSJGdExOfnqqv+opv+4x78YNAGsAesGs9SS6Rc0WEiYV31Fktac+3SrQMg8w49hCC3p8AqIfBSBwBouSiMbN7RO/ElEX9PAP5YWo6PA+nARdqeeeYucCSTHQqafA2c+yL6nJfLlUr8c2EVfp3BL1KJ1mm9oRwu9dfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RMknjkQqtD9ngYq9HjdpLf+m3L9BWpVjw5RlcR8m5n4=; b=Mf7gAknegjppJUJFO4M10k8vMM5/VqhfyyYJAvgCfYF34581InAD4n8sV3K8MR6mYi8GSTfkwSo5UdBUmuCASjFGupCiE2Ez1YJG5sZcFnDXOA88z0fUwyNtwHWG+cxV+DwA+wSQX0z9MDuvEPJpEg6lZlXq0moyvP7kti4WxDut7n2LKwIR1uCIPEcES7bV0dTRILrFP1fiOWuCMls42wU0ErGt3YmPBimIOBQmj//cGt2LYQOFsei53PDcXr5W8KgXBjbeHY9JgRMcG575oYVrusWjgM9NymdOzeZnsQZ0iuCTOi5ZEdirQtO2Ll+y4r9EWo0EyKtQAdaPReR0NA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=monjalon.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RMknjkQqtD9ngYq9HjdpLf+m3L9BWpVjw5RlcR8m5n4=; b=l+biVHEfeZ4tbbdhmAUd5O7cKyIoanXA5GEJNKX+FIV6XkWDeNY6pCAo+aFSA9KxtfNF1x/yXPJpFahRMAC5WQDPe7DUNzpJJhT+9S1oL8rrco00MvAyJ+m6cyTxdjweYwQDRmQF2E9R76NRJY0mdnYeyTH/dOI3f7GzJDYIKEQ= Received: from BN9P222CA0026.NAMP222.PROD.OUTLOOK.COM (2603:10b6:408:10c::31) by CY8PR12MB7416.namprd12.prod.outlook.com (2603:10b6:930:5c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Tue, 6 Dec 2022 12:24:00 +0000 Received: from BN8NAM11FT072.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10c:cafe::13) by BN9P222CA0026.outlook.office365.com (2603:10b6:408:10c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14 via Frontend Transport; Tue, 6 Dec 2022 12:24:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT072.mail.protection.outlook.com (10.13.176.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5901.14 via Frontend Transport; Tue, 6 Dec 2022 12:24:00 +0000 Received: from telcodpdk.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 6 Dec 2022 06:23:59 -0600 From: Ferruh Yigit To: Thomas Monjalon , Bruce Richardson CC: David Marchand , Subject: [PATCH 2/2] devtools: configure source repo to use as ABI reference Date: Tue, 6 Dec 2022 12:23:41 +0000 Message-ID: <20221206122341.3046688-2-ferruh.yigit@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221206122341.3046688-1-ferruh.yigit@amd.com> References: <20221206122341.3046688-1-ferruh.yigit@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT072:EE_|CY8PR12MB7416:EE_ X-MS-Office365-Filtering-Correlation-Id: 71a84c26-b5cd-4ba2-b4fd-08dad784c168 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: usFJw9ePELAFv4b6WSiQDUYpz0QyFc0AbkYx7B3n5Sit8dYnMjTEamlEYlZX2axabam+Y13MBG7OuOWmlEylG7w9QZnHPVn773JXnXpwwPp0IOwWHTZ0mcGEy8Xr580Idj1Cs0FGkwF+x/11u+8U6lArWKHqV4SKsxsVA6Sr6pyfHLwhRvkEEM/YQ+2IifLStnjL7s9JJYuSGvVdvytMAW7FuaumC6qjEytcuVF0trOkbraezVNCVC+wg0qUZz+L/s5IMiuA7XsdOJuyTwsNyOuZ8nkVTptbgnJ1OJajWW9GkbNZNE4h2XhFG40hrJ9mSP14YyUys3RW9qO9PHBJj7w9UZobg4pXJC+LRnfgfrrpCwR+wRBcjyENj3+KycxKWWlhzrHSYCcDNo728DpZ/yGxYbPuTNAqfVHLUYOXx7lLFnDCfKf9tRE5s8G58PFTBYlbNd+3hrOk7LKbgYalLDXLcyjySQNAbh2MruMhtsfWMqCFpjR/cZHJc2Esk4AzIkFYTCNQOYKjirjOUdWhR6kUJqo87xaeQvnIezcLIIi8ZqhI0jvH4B7zew0lhOtVwo1zcex34sI3wzAQ7SP1GgrrwkFzdKYkSADrSBvx9xWVl2CbeUXm99ChVbEmpjuY/ehwLaxQfQ4cKSREDhx2nhQyq82yz1veWdkRBGfUHuA5kPUzk6o8G5YIKIjv3if+G7zPzmp7+UXqiJAQLtq2hrdzDGft2FdtTaWk/YoMvKg= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(346002)(136003)(396003)(376002)(451199015)(36840700001)(40470700004)(46966006)(426003)(47076005)(40460700003)(86362001)(478600001)(7696005)(82740400003)(40480700001)(81166007)(36756003)(26005)(336012)(82310400005)(83380400001)(36860700001)(356005)(2616005)(16526019)(1076003)(186003)(8676002)(5660300002)(44832011)(41300700001)(8936002)(4326008)(6666004)(70206006)(2906002)(316002)(110136005)(70586007)(54906003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2022 12:24:00.6397 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 71a84c26-b5cd-4ba2-b4fd-08dad784c168 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT072.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7416 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org By default 'test-meson-builds.sh' script clones the repository which the script is in, and selects a configured branch ('DPDK_ABI_REF_VERSION') as a reference for ABI check. This patch enables selecting different repository to close for reference using 'DPDK_ABI_REF_SRC' environment variable. It is possible to put these variables to 'devel.config' config file, or provide via command line, like: ` DPDK_ABI_REF_SRC=~/dpdk-stable/ \ DPDK_ABI_REF_VERSION=v22.11.1 \ DPDK_ABI_REF_DIR=/tmp/dpdk-abiref \ ./devtools/test-meson-builds.sh ` When 'DPDK_ABI_REF_SRC' is not defined, script behaves as it did previously. Other alternative to using 'DPDK_ABI_REF_SRC' variable is adding that other repo as a new 'remote' to the exiting git repository. Signed-off-by: Ferruh Yigit --- devtools/test-meson-builds.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index bbe90e2bde2e..8a0ed92fcf0a 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -18,6 +18,7 @@ srcdir=$(dirname $(readlink -f $0))/.. # # - DPDK_MESON_OPTIONS # +# - DPDK_ABI_REF_SRC # - DPDK_ABI_REF_DIR # - DPDK_ABI_REF_VERSION # @@ -185,12 +186,13 @@ build () # [meson options] if [ -n "$DPDK_ABI_REF_VERSION" -a "$abicheck" = ABI ] ; then abirefdir=${DPDK_ABI_REF_DIR:-reference}/$DPDK_ABI_REF_VERSION if [ ! -d $abirefdir/$targetdir ]; then + abirefsrc=${DPDK_ABI_REF_SRC:-$srcdir} # clone current sources if [ ! -d $abirefdir/src ]; then git clone --local --no-hardlinks \ --single-branch \ -b $DPDK_ABI_REF_VERSION \ - $srcdir $abirefdir/src + $abirefsrc $abirefdir/src fi rm -rf $abirefdir/build -- 2.25.1