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 8C72D42DC5; Mon, 3 Jul 2023 21:17:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86B2340ED5; Mon, 3 Jul 2023 21:17:39 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2105.outbound.protection.outlook.com [40.107.243.105]) by mails.dpdk.org (Postfix) with ESMTP id 4B728400EF for ; Mon, 3 Jul 2023 21:17:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nCxhwTl3N6wGw3dwvL9mYiAta0c9eq4oKJNhBQaCha3+w34SZmsonWi0ymUy0hehlTu47wwgFUxLVIaJCOBv7JkehaNAo064E0tzBEr3fHciQ+98DF09eOGB3QHbdUq2LiTI9bAPZPn8bh71ZGH9pMlZKv6Ubk4L6aV5wXGSd4ysrDHVr8QwRqClMcB+TVZ9WjmDF/uk82l84t4Q3d2Ap7Edm3GqxLg5aAnyPQfPBGu+O1bWwoom7wDcL5I6/aeFkH+QtkxuFu/ON1piO9w9cesi4cHBqUyEVcZ0+RGSobkBTTb9sN3473ke3wey4hzgGGNvgVICEIecBgdVuJhf9Q== 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=Mrmpg4A2rgQmw/U3BOX26XFbr59qKbGIaKMKvgYfIH4=; b=CKiXrPEg3kmxZv4b48D/METQ8gC2kZA/uyz0ZJFecsWHvCpnLC/ivgNvhzC7m2uyZpyZ1+MLI0lSbRdy3q+eJziySkLYTS2zJLItmj+yz6cDm4zBluN9/FOqe1MKG7eO9sKphwvBf/QB4k4K9KRqUm3yPYQscvDRMkmcCVu/dHVeA5mTBPcEeg4AOEwD6nYjeUXf3FWmskXOlBAcvtlKG8NNVt8BWGI5oiqTuYVV3GqNGvaNPvRO1aWYXd+1mQDaaEDI5N4qICnSzd8bFqyhxAbA0xL0mQfaTSrfcM/fiT2BjRIZO7Qfnwf8YsT/MLO2uG1kSWbaLLO016SsqkHwBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Mrmpg4A2rgQmw/U3BOX26XFbr59qKbGIaKMKvgYfIH4=; b=r7oQGJHdBSnmqBXrCVpC59FGI35TZk1j3o1H0c/PlTpgSZRBfXZA3od3Su7d9QmMvQAZsizXjOaHROrq5GoGE2yfvdDGHAOajC9R6W6suh9kLA53ZP1GDQk3ENBxE75WcOmBb4uTRYcyCkiA9AJ76vvC6jh10DsYCyg8tFMw4B4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from BY3PR13MB4804.namprd13.prod.outlook.com (2603:10b6:a03:355::13) by MW5PR13MB5581.namprd13.prod.outlook.com (2603:10b6:303:195::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Mon, 3 Jul 2023 19:17:35 +0000 Received: from BY3PR13MB4804.namprd13.prod.outlook.com ([fe80::5ae7:eda4:3881:4f4f]) by BY3PR13MB4804.namprd13.prod.outlook.com ([fe80::5ae7:eda4:3881:4f4f%4]) with mapi id 15.20.6544.024; Mon, 3 Jul 2023 19:17:35 +0000 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= To: dts@dpdk.org Cc: oss-drivers@corigine.com, Qin Ke , Dano Teixeira , =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [PATCH] tests/firmware_version: add case of nfp driver Date: Mon, 3 Jul 2023 21:16:29 +0200 Message-ID: <20230703191629.31297-1-niklas.soderlund@corigine.com> X-Mailer: git-send-email 2.41.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BE1P281CA0128.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:7a::18) To BY3PR13MB4804.namprd13.prod.outlook.com (2603:10b6:a03:355::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY3PR13MB4804:EE_|MW5PR13MB5581:EE_ X-MS-Office365-Filtering-Correlation-Id: 15aabc6f-2391-4b32-8be0-08db7bfa2815 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XjsQT7WUcCn1j/A8ajsY4utmaup1/lhmTrNDVtP/aQar/ZayeOm7m2/+17OwA5fltg7SsuEuGgozdns3Rkt2KAznsYSd+FjRrc8d4fJYKK0c7QsO8OADppva+1EHPYSd+Ml2omejl91/Y6oHbPI7M/mVnYvS6aXS6ZFHUFVqpjUmchPWOmH10wIzIeUnKT/sz9YRZ0FnvORmRZSZ9AteP5qUA7phFrLaMq9XUNek7YyCeitjbiMZfxcgKdtcm0nJSiWU/aucS2HKbrMhjCrI83ekcPPDLvnaXdCz5Ugp1WW/7bDVY4ZDTGHKnNHcAGDwMqYPP5hXt0tC3WVio3KfpqiJAwcghLv/TsNiKPSAnqv03qJmmyb4AhiQvgWP0Wq+LxZ7C2ZXuNoOTZ5PqCig0eNge+NH7I1G+lWy8rujUYFHhAYR7jbOo67oitNDTAUUMccJORTW4bmIdtvCwaA/dqHUKG10IwX2Ta4iLM9QeTp/xoLG7AVJ9Ld8L2OMy13o6H46Kqvx/UtPG7ET1Qbqak8viF6WZHnqv1JhSvgV9lcExJta7plfJCSC8lVq2s6KZZvxrcDuyxmsKsWPgF+KGj12Io5my07W3jHy/yHJfv08o5kHmWn7iqRCGyWd8jrK X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY3PR13MB4804.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(346002)(136003)(376002)(396003)(39840400004)(366004)(451199021)(107886003)(26005)(478600001)(1076003)(6666004)(6512007)(6506007)(86362001)(2616005)(186003)(38350700002)(38100700002)(54906003)(66476007)(6916009)(66556008)(4326008)(66946007)(83380400001)(66574015)(52116002)(6486002)(316002)(5660300002)(8676002)(8936002)(41300700001)(2906002)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?US9LWkZmZUdBSGc5QWpGdThjZnl3M3hYYyszNjMyRGZvT3JKcTAxcVByUTEz?= =?utf-8?B?b25xdDFlb29YTFBhSVF1UlhXOFloSFlvSEJQWW1VYjM4S0cxQkRqek9udzJ3?= =?utf-8?B?c1VvT1VvZFZXM3ltdGgwdWxLeG1rZzBvRVh2SVFQSHI0S0s0WVZLdlFLY3Fk?= =?utf-8?B?ZUdQaFdRcmcyS2ZSZkRIdHV1RnlNK2V1MU1ib1NJK3hJMkZqU2JENnh0Y2JP?= =?utf-8?B?ODNnOTd3VXZRUnNaR1FHc05NdDhOOXJqVHpYY3RDOExUcGFLTGxFT28rUVdr?= =?utf-8?B?TXhRN3VCbHRlZEVudzQrZkVjVTBwRURnMHZxWWJYbkVxcXlDVnNtNUgyZ3hw?= =?utf-8?B?VTdQKzMzT20xSVJJamIwalFweHVuSUhUQ0tMaGVnNkYyTW9kb29TOUhkd3Bw?= =?utf-8?B?UXc1NGk2TDhRbnhOdEVmcmZXQTF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b32-8be0-08db7bfa2815 X-MS-Exchange-CrossTenant-AuthSource: BY3PR13MB4804.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2023 19:17:34.8967 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jCaZvAO3rz0vGqRo5tPz4trtARtQ7AxiowNELCuRZB/yJLQM9WczZxrNxBB2p9KtucwVGBAGfkYuXLgzq+qWOVkTspGS0G8iFeFzpix+77Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR13MB5581 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org From: Qin Ke Add case of nfp driver to check related firmware version and format. Signed-off-by: Qin Ke Acked-by: Dano Teixeira Reviewed-by: Niklas Söderlund --- tests/TestSuite_firmware_version.py | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/tests/TestSuite_firmware_version.py b/tests/TestSuite_firmware_version.py index a5215c40441b..0e26b519ed19 100644 --- a/tests/TestSuite_firmware_version.py +++ b/tests/TestSuite_firmware_version.py @@ -140,6 +140,50 @@ class TestFirmwareVersion(TestCase): None, ) + elif self.kdriver == "nfp": + # Get the version information from output and cfg file + ( + exp_vnic_version, + exp_nsp_version, + exp_mip, + exp_app, + ) = expected_version_info + vnic_version, nsp_version, mip, app = version_info.split() + + self.check_format( + exp_nsp_version, + nsp_version, + "nsp_version", + r"^\d{1,4}\.\d{1,4}$", + None, + ) + + self.check_firmware_version(exp_nsp_version, nsp_version) + + self.check_format( + exp_vnic_version, + vnic_version, + "vnic_version", + r"^((\d{1,4}\.\d{1,4}\.\d{1,4}\.\d{1,4})|\*)$", + None, + ) + + self.check_format( + exp_mip, + mip, + "mip", + r"^(tc|sriov|nic)-.*$", + None, + ) + + self.check_format( + exp_app, + app, + "app", + r"(flower|nic|unknown)", + None, + ) + else: self.verify(False, f"Test: case fails on {self.kdriver} driver") -- 2.41.0