From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.11127.1667568633901855491 for ; Fri, 04 Nov 2022 06:30:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=h5Pd2FYV; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: bob.c.feng@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667568633; x=1699104633; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+BhSHOTnV/WBvoKZ29L2y3liUtgCdYJ8E86mS/th2m8=; b=h5Pd2FYVxgapitr0Spr5sGXhyQHE7gbuHCcg5XzUi6yGiUaz+Wy229IZ 3YpIqJNK8A1RMB2fc3YygK8+wR3qms3ciKld5MCni2DbMVH3prR65oPqE 33zs5Mt8B/g9wjFqMq2TVg7cFFa0CprIZ8b1dLoq9TByDgRnzG/22H9Qw EuQ9M8NLH//0/Qtm9gWJA8JQ/JKp7o2qmdZoJCeJ8V4A9AGsYfrlMTvqi TGSXVCgM8g5diqhMoKehXfhZhT7RsZJjPExuuEKkyJsEhn0ZCB4JkPU5d /d/7otshHcX4lFOR7HfqE0PRx8knu0gu438YudxY0c3fg1/m2QnQxobmv w==; X-IronPort-AV: E=McAfee;i="6500,9779,10521"; a="336668734" X-IronPort-AV: E=Sophos;i="5.96,137,1665471600"; d="scan'208";a="336668734" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 06:30:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10521"; a="964346380" X-IronPort-AV: E=Sophos;i="5.96,137,1665471600"; d="scan'208";a="964346380" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga005.fm.intel.com with ESMTP; 04 Nov 2022 06:30:33 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 4 Nov 2022 06:30:32 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Fri, 4 Nov 2022 06:30:32 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Fri, 4 Nov 2022 06:30:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ocgnNrH5CiAZmIiSMWTSc7lapPquypq2JmRnPkrAFDWfhj+krzHkUS2zgAxtfK2BlUZo74TaRD68QfH0455FW7SbMSDcM6dL4fmEe5dGEeLh3O0j80xDKTx0LRYcB/GhI0peH93xcnEht3RKrKfytgcQjTh/jgzKmdU5Z+hhMylqhhneNMS6jyPtT1BSUcLtnutfEDNAfL5oNNCiel7N6AgUTh3FZDZ5NcADszuFGemf+BQZsaw1KParTWpDD0pc7PDPGn8FTPXnb8mEsXkg/dN6M2DRsCdZgFhqiPB3RNLxAz26NaTlJ1prwuTi/k3dehFpq8HN++wUEJvn+7/V7Q== 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=Nlljn9z+IQ4cNoUtGgAfhZXfhkd89hhNh9PxY4lMICc=; b=dr+YYC/RTOFaKbTvCBbfZBvOgdwXzJ2E4bYD7Hx0A+vrl6aOgHq9ADAtoTGyoWpPCKaJ4BtFqBIynL/F7Cy2NSKQ9Jr4coojBKvJ43xTBkvMwhDUragGFH56+vKQb0nuqAX2yg5Ys1zGREpIUWsmGVH5r+Kg52rUBDyzaAUpUjZdDyJfomNRKD20NLZHw/5CqSyoEb7xboKHeu2VBaNhNSbj8pVv9c2OD4TwJJ0Gh4YX8UEmnK1vUXS1o1knd5rHX2ZLygn8ch/gN4rW5U9meZj9KQ811Kx4+1mF6bEnnkasZzM467fqtudeNgwvjDjO2fw15GwkmgezRgHl+CumHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH7PR11MB5863.namprd11.prod.outlook.com (2603:10b6:510:135::11) by SA2PR11MB5017.namprd11.prod.outlook.com (2603:10b6:806:11e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22; Fri, 4 Nov 2022 13:30:23 +0000 Received: from PH7PR11MB5863.namprd11.prod.outlook.com ([fe80::7fae:ad5c:907e:f02e]) by PH7PR11MB5863.namprd11.prod.outlook.com ([fe80::7fae:ad5c:907e:f02e%5]) with mapi id 15.20.5791.022; Fri, 4 Nov 2022 13:30:23 +0000 From: "Bob Feng" To: "Kinney, Michael D" , "devel@edk2.groups.io" CC: "Gao, Liming" , "Chen, Christine" Subject: Re: [Patch 6/7] BaseTools/Plugin/HostBaseUnitTestRunner: Enable gtest xml output Thread-Topic: [Patch 6/7] BaseTools/Plugin/HostBaseUnitTestRunner: Enable gtest xml output Thread-Index: AQHY7/3mHBnrv6/6rEudbwZICDb97K4uwxlw Date: Fri, 4 Nov 2022 13:30:23 +0000 Message-ID: References: <20221104033056.1259-1-michael.d.kinney@intel.com> <20221104033056.1259-7-michael.d.kinney@intel.com> In-Reply-To: <20221104033056.1259-7-michael.d.kinney@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5863:EE_|SA2PR11MB5017:EE_ x-ms-office365-filtering-correlation-id: 0d85e8ea-f57f-4080-ee60-08dabe68b9fe x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LdeeQTQAK7GiZH3a6l2WkeZi+4zxDV02vnHJh2By44bouuhcwQg3Y1okYbhb4husN96uaci8b2hpgUprSYk3W2gWWTs+YZDWNRwedSuyKCeRgNru00TByUda6YB56rwFED+Te7TA3MZ6VWcshR5+ybEFEplkQ5dgkHjlAteFgaWxnh8ndBSqUMT7d16zv0DByccj88Hm6yJIyEmRfcAUORuYegHXcajeEy4xxiQgGg9mCWy35xRFAWzTyRvMF5jAIYgMdcH4g7eBk0AHN7ULnkn7NaOF7dbGL42QLT6wk0d6AV7QQVaxlECkmg200JQuYAc9rxQwWFk0/6RDSBCuZ0tYeaFZmO3Uqm4TJUkyRFYq/Emdz2Nf1Z2hXUkyEEC4eWM5Z8niYOGghRpV3Ae4Ucxw0SSwurRp/7CXNh4/cj8qGYwJ4zNsSc3jmy5Fmj/AHp4kjtsPi0vNqDxbfcR7ZDoUODZsCkYVGd9+PowKjTmXOl5oS0UWxseaRPwLPLlrORuAHc7KJZ//JHgRshJJNww1JW42R4neS0zM3IzBzNVXA4NSNR++H2vgw4mu+j6QP1FfnuWW9pPWptYhL3sebZJJaCr2xPnZqa/Da1aJiIP4G1NTzLd+mBbPSctCzQIb/gG2kRwMVNmGO9KGI/IQg7dRO1xWffiizliwEX7bGgWDqSQi2xHfqapnD2+YM4UthlZZr4yMc5mlIY5iFPj/kqH/yEge5ouR5dwB0PePEjq2Ah1a5UKGwx+WMP9XL0hoC8XVGGmrWjAIqdvrHAgA95oB9IvE6SScTogQjj+RTr170yQGihf5OXX3g1kFNu92phakVaGBRdpyNurJHE0VeQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR11MB5863.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(366004)(346002)(39860400002)(376002)(136003)(451199015)(38100700002)(82960400001)(38070700005)(33656002)(86362001)(55016003)(7696005)(6506007)(966005)(478600001)(2906002)(107886003)(66946007)(76116006)(66476007)(316002)(54906003)(71200400001)(8676002)(66556008)(41300700001)(186003)(52536014)(5660300002)(64756008)(110136005)(8936002)(53546011)(122000001)(9686003)(26005)(4326008)(66446008)(83380400001)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?932DWHfU+mETIPqMYF4UAmB5l64rZainNpsW2XL2jh0HPoAojvf9CxdsXqol?= =?us-ascii?Q?biFaLysHmSK8ihtjgAe/DwNG/WTe7Dbtj4FDl4sATtzZ3YMzhVyxdl8vfzHa?= =?us-ascii?Q?dtmI8TAOKZpWblwCi3lW4mQp04dPNBfA1FEvQlnkm2bH9abN0vExmhYejhEx?= =?us-ascii?Q?8LrpCcPubAGqW92mErDc7b8sTyAKO3zhZR1BDh/bRD5HhSFJ4nC0d4zsJd+H?= =?us-ascii?Q?NaxVSxSj9e1j34NGS9Sifrdd93yG1xwCZh9Hfjq46Q8IOsjnInnsJIFCiT9+?= =?us-ascii?Q?kLcNMVXOFKWIyGEpYUoxFDaLUh6CXLuDvDj4lwhR+mYGKcYcgvSV1nLyDffU?= =?us-ascii?Q?xvaRN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2JyQA?= =?us-ascii?Q?yhniT3nsfubJY+3agzuB+InNUVhl/K2c4gST76XK3tOKB55Se40v/Byngz6J?= =?us-ascii?Q?IP5tpwrim2iGbOaYeinagUKewwwiRcE01SNrrrPG8g3e+joHbu4Ow5579++y?= =?us-ascii?Q?QAPRC5BBjqnggQkz3AWOL5mm368KiAJL19wemCbdWtt9OE3ym7beWp8+cxOJ?= =?us-ascii?Q?VTKxHsV4a5ibV27JOP0afgLv5dwDo5TOyXC+/cWjs9KaIq44S/eEP0lQEexf?= =?us-ascii?Q?fELds9+oQVLZ6y1whnj4+dAEshE/08+tyGswKvW48ADzQLNo/3ZNEqyHzqMq?= =?us-ascii?Q?NfGYvIqpRjmPqKB/LRoXwPitCCyKd/fk/E1fEPPE?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5863.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d85e8ea-f57f-4080-ee60-08dabe68b9fe X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2022 13:30:23.2558 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EB4JNHhGPeiV3Jjw/7zBh4NMVzZMYCMk9MPjuFA0PVU8OBt1ZdjC+XuWpl1heNmwEaArWRr+N8DYZ1N+R8MPOg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5017 Return-Path: bob.c.feng@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bob Feng -----Original Message----- From: Kinney, Michael D =20 Sent: Friday, November 4, 2022 11:31 AM To: devel@edk2.groups.io Cc: Feng, Bob C ; Gao, Liming ; Chen, Christine Subject: [Patch 6/7] BaseTools/Plugin/HostBaseUnitTestRunner: Enable gtest = xml output REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4134 Set environment variable GTEST_OUTPUT to specify the output format of XML a= nd the output file name. Both CMOCKA_XML_FILE and GTEST_OUTPUT are set for= each host based unit test to support both cmocka unit tests and gtest unit= tests. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Michael D Kinney --- .../HostBasedUnitTestRunner/HostBasedUnitTestRunner.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunn= er.py b/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py index c1eeaf26251e..a8220aacd396 100644 --- a/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py +++ b/BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.p +++ y @@ -85,9 +85,12 @@ class HostBasedUnitTestRunner(IUefiBuildPlugin): raise NotImplementedError("Unsupported Operating System") =20 for test in testList: - # Configure output name. + # Configure output name if test uses cmocka. shell_env.set_shell_var( - 'CMOCKA_XML_FILE', test + ".%g." + arch + ".result.xml= ") + 'CMOCKA_XML_FILE', test + ".CMOCKA.%g." + arch + ".res= ult.xml") + # Configure output name if test uses gtest. + shell_env.set_shell_var( + 'GTEST_OUTPUT', "xml:" + test + ".GTEST." + arch +=20 + ".result.xml") =20 # Run the test. ret =3D RunCmd('"' + test + '"', "", workingdir=3Dcp) -- 2.37.1.windows.1