From patchwork Fri Apr 8 13:31:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12806754 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 183B1C433F5 for ; Fri, 8 Apr 2022 13:33:00 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.301597.514785 (Exim 4.92) (envelope-from ) id 1ncojB-0001gZ-8I; Fri, 08 Apr 2022 13:32:41 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 301597.514785; Fri, 08 Apr 2022 13:32:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ncojB-0001gS-54; Fri, 08 Apr 2022 13:32:41 +0000 Received: by outflank-mailman (input) for mailman id 301597; Fri, 08 Apr 2022 13:32:39 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ncoj9-0001gM-7Y for xen-devel@lists.xenproject.org; Fri, 08 Apr 2022 13:32:39 +0000 Received: from esa4.hc3370-68.iphmx.com (esa4.hc3370-68.iphmx.com [216.71.155.144]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 5a09c2bb-b740-11ec-8fbc-03012f2f19d4; Fri, 08 Apr 2022 15:32:37 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 5a09c2bb-b740-11ec-8fbc-03012f2f19d4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1649424757; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=WGJ4CgXNLi1TAOJBwy//92r7OiD6bYyBigPIi1XfE2c=; b=ZNhCePHCMttnzcFINn5N1L/q4HEHc3C4zUEAKWkuWw8n/UFuWQa7cdhL dp2cg7qBGFfveJ8x14HMGKegGzZsjaTS/a2jMSVRBRR3hf9eYriMZzCAd o4gOBiUpifl0lB/PStUgaOnbiTHNb1C31mIwOt4dHQ+a1YUe+8s4AWCU7 Y=; Authentication-Results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com X-SBRS: 5.1 X-MesageID: 70771134 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:pg6FVKjruX5gnEX7lml3iI8CX161GxAKZh0ujC45NGQN5FlHY01je htvWDuHPffcY2Pzc9Byb4Wzph4PvsXVyoQ2GlRuqXoxFykb9cadCdqndUqhZCn6wu8v7a5EA 2fyTvGacajYm1eF/k/F3oDJ9CU6jefSLlbFILas1hpZHGeIcw98z0M78wIFqtQw24LhX1vd4 YmaT/D3YzdJ5RYlagr41IrbwP9flKyaVOQw5wFWiVhj5TcyplFNZH4tDfjZw0jQG+G4KtWSV efbpIxVy0uCl/sb5nFJpZ6gGqECaua60QFjERO6UYD66vRJjnRaPqrWqJPwwKqY4tmEt4kZ9 TlDiXC/YT4wF7fWvcNGajwGKysvAq8Z9pDbCGfq5KR/z2WeG5ft6/BnDUVwNowE4OdnR2pJ8 JT0KhhUMErF3bjvhuvmFK883azPL+GyVG8bkmtnwjzDS+4vXLjIQrnQ5M8e1zA17ixLNamGO JVAMGEzBPjGSwxmIGZOOsMgp+CpiGfOdXp7lUOql4Nitg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0rlvNWp2BDULEZdKRaoeUkjQlo+a87bW3HAb0cYa dT5Jm23ocWTbraVQGTgoBX+q3hYpxpdS32AnTruaSuokprdT5CvgglLfck7wY9HaIGOud5Dt v/Q9RVfcl1P7crhIJGdZM8qJiMexvwqSylChPgHb2gLtBEB07w X-IronPort-AV: E=Sophos;i="5.90,245,1643691600"; d="scan'208";a="70771134" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ih2orIlwBhK9/4YXOWTFIJ5ce/RAA/lL7hr51Zad0SmHTrtSi+0cFVQxHZ7v40e37YlzJxxPW1qt1gtNrOlWQinZFXhcL6XUW0gKk3KQeG8CStZrCUTWBNMC3zEn8WbmcvBob95S8qswQ0nZPh9P5zgcQGXSyHfGxc59qhEZztV8E51AO/4D1tcvNiVswtM2RrZ2aB4hOv01C5LFqX2mTtLpuZHEv7K8v0pVEm7oAmRkYABEPm29Qf8XP8I3HOGUuyyuJ3MZ/VKVaQMoqM1D1+RXYq5p2lQe+hXgoXQsNdjk1MNWaEXcoRtzRQQu2+lw6+2wHucyhgTz2LgKaN+7jw== 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=mycfYRjCuGQviAUZ42UDfke1LB0gXnoRC/rpO3Rwhhs=; b=nzB3cKjTwFd6oX1BVSYqsgqsdhbFvaz8BeDsgMz0D30lGtFrYEVnfWxEr8MpKd0RcRohcID1ImCtXUC43l2LKe0ST0VkX2HC8OtAgCEtFTnmU4X2JZZHca1mx8beqae+miZ9Kjp4z81CaAj03RwsdmsMhTkqHmJOETTE7qdVdOeeGw9BRwKtMsqmuqcfm7MzKZOZp2YW1T83zr99wRq4WnuGpwCH+1c9Yf/gYhqxT+n10VzsfDB31soNTUt+QGLyfiBdgUtoDuSMOBW9s8lhyBrTEhhRQx4jRz4cCcAR1oU+zVybw528wciZ10S02356NO+ePqvr4hzTHnSh+9L6hg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mycfYRjCuGQviAUZ42UDfke1LB0gXnoRC/rpO3Rwhhs=; b=TbKYu2ZMPBiEKScCJ9VFaumv1K3DYjdMRyWLoCKkVJkwchCdG6p5jpyFs7WJYAI1WLKnRHWMMaKdHm36T4pIuh4TRWjtEcecKBhsyH/2k9dyiCOErs1TZZCFHNwfBl8J5yXLy/zC3O4Jf1yA06VmCxnnBd4OWA3UDqF8b10ear8= From: Roger Pau Monne To: CC: Roger Pau Monne , Wei Liu , Anthony PERARD Subject: [PATCH] tools/xl: fix vif and vcpupin parse tests Date: Fri, 8 Apr 2022 15:31:46 +0200 Message-ID: <20220408133146.48117-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: LO4P265CA0020.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ae::16) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 09fb0442-1224-43be-44b4-08da19642f5f X-MS-TrafficTypeDiagnostic: MN2PR03MB5247:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y4gSdwEllLQmPUZML5UgTFuz+KrS/62nHSFTFVjJsxI4ZF76oupXkfX7Cec9zoMrQxavJWSXwjFM1UZQSNwkmXSvJNYo1CwPWEJibXAj50XOThFs/FISplkVoit4LrULc6X5WvCInHg/3MCeIAJlSNmTLCH/hA2Ir8JiiD0G9MVvf+ColNEGPexoT85Ft3ELz+iAGOXNt5UvgaU0xrhb6v+2eMGgk+2yOwfs2e2iC2ZT/z7hTHKccdGvk8Wq2rvgSt9cGWvsOG5ToMqDxyAOVAjoTe5xwQroB+1FUyLIb+PK+xSFJIrHCzTazA9gx5r0mcV4UFM5usLW8xawqg+kxz/nBLrB1ZTqPExrhiJfQj55bav5U52UOCnK+QUVsu3zjrFmZER/+kWaGW8q7VXj++4EPqgwgHqwIJ9qjmo49X3//I38dUbXHo+Vje5xhOUWYyWfKaCyiYkZXhCAP4bh2CcHEXP8VqQkPjVHbOVMezRuBdnBTo+PZfjmzV9U9plvcq8xh64LL1/Ly+Hw1/ItftsHxFfpMN4cW7H0qIO6oAjPrHRVRjlgOpjIWjsYNDGq4z6EJp303taaqVMzXhlAshtqQDhNvK3ZEOguJds3Hjk0gfRMlUtyirE7qJ57SEc/vU68QyFjWvYo9i1PwW1IHQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(4326008)(6512007)(54906003)(38100700002)(8676002)(66476007)(66556008)(6916009)(2616005)(66946007)(5660300002)(6506007)(86362001)(186003)(82960400001)(83380400001)(6666004)(508600001)(6486002)(8936002)(2906002)(36756003)(1076003)(107886003)(26005)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Oq/una4aVwrqHhQUvy5m50dEHX/w?= =?utf-8?q?XLJ+CW93cf/Zf6ST11C9+t20O8JYBqo/x+akTyF4iZOOaqfXbNlZJJVAI6Rz+LbeT?= =?utf-8?q?ZPSuVkNV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WZWnJDbR/bUmhkPHyiyzFAzH8vdwBmg+NWs/zRDrkUZilYWQZZhCx?= =?utf-8?q?HtrzLBUiT6C+Qtuyvwni6gLLoBJgnup3LlcvBDqIhbDAW7TJmwXdAzNVsBNB86vLU?= =?utf-8?q?5i70LQmapVZKuvM5hoKnF73+ew7+i20K8FOTaGoAyx/qVIDZd3CD8xSUG+xG/JmtW?= =?utf-8?q?Rh5guaf76F47BQpmN0ffeVfdbvsG8ISqLzoOs03jUZthVZuItxLv3NBAZEJMBnaPo?= =?utf-8?q?Shp98xQOFmCG0Tb4VEYvGZlrPD7Vm/rO5MSESX+rS86mTG/tGkZjBbChOSstGDBBL?= =?utf-8?q?GnhGDlbR+1ZLELBMjxUgZnlbjPZAcDNXPUzVPgBstAzY13dnEuOpMd9ONRgc4syRs?= =?utf-8?q?iFacakziAZq02yoUjZ1ZoZsEBJwywoo+LHdfRnY702uWwy0RKA89K6azJqzFH4pXi?= =?utf-8?q?bIrJwdeLoi51jPqcJ7H+pv5M7fUN/5dAaNIw+sVdwz/qOCzAOoRMh9ZBIytTbxI7/?= =?utf-8?q?mq8FJLFbno9wz245p0pqB6G5t+Gau/p9VwgYDmRux+8ZprfeF9PPOxNrZPxN2Fcev?= =?utf-8?q?IqQM74CSGGbIH2AqVM5BEAcwDF56saNg9pJ3gDWEmmAZ7Lc10roMbdyhZLFtM8irL?= =?utf-8?q?77b9bOvntP7ozj1vmaZ57Od3Cw2az5PX+yyfBR+ELQmuC15i5gHIb+vy27NkUz7BY?= =?utf-8?q?HeiprtM35GRqIVwvMucAzXk+NMiDYhrw=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 09fb0442-1224-43be-44b4-08da19642f5f X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2022 13:32:11.0730 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JGQ3ZiXe/EAqYmM1bRwZj/QVA7aD1EmZEHVVw6wPdi+DurS4k+dbDrcswW+biLIdUCtregAzlZCGYaBGsLZgAQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR03MB5247 X-OriginatorOrg: citrix.com Current vif and vcpupin parse tests are out of sync. First of all, xl returns 1 on failure, so replace the expected error code. Secondly fix the expected output from some vif tests, as xl will no longer print the unpopulated fields. Signed-off-by: Roger Pau Monné Acked-by: Anthony PERARD --- We should find a way for those tests to be run as part of osstest, or else they will go stale again sooner or later. --- tools/xl/check-xl-vcpupin-parse | 2 +- tools/xl/check-xl-vif-parse | 52 +-------------------------------- 2 files changed, 2 insertions(+), 52 deletions(-) diff --git a/tools/xl/check-xl-vcpupin-parse b/tools/xl/check-xl-vcpupin-parse index 21f8421ad0..633616a597 100755 --- a/tools/xl/check-xl-vcpupin-parse +++ b/tools/xl/check-xl-vcpupin-parse @@ -158,7 +158,7 @@ END RANDOM=$seed echo "# Testing a wrong configuration" >> $outfile -write foo 255 "" +write foo 1 "" echo "# Testing the 'all' syntax" >> $outfile write "all" 0 "cpumap: all" diff --git a/tools/xl/check-xl-vif-parse b/tools/xl/check-xl-vif-parse index 02c6dbaeb6..04bd9463d8 100755 --- a/tools/xl/check-xl-vif-parse +++ b/tools/xl/check-xl-vif-parse @@ -40,7 +40,7 @@ complete () { fi } -e=255 +e=1 #---------- test data ---------- @@ -62,16 +62,6 @@ one $e rate=10ZB/m # test b/s and B/s rate units expected <