From nobody Mon Feb 9 03:13:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+95970+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95970+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1667593545; cv=none; d=zohomail.com; s=zohoarc; b=I7r0VkmBCKAoBeZd2Q8eM4AqIGKh6U4BrRtffBtM2j82tFOZQu6GgDHByjKflAPLcUzQ0DOjQANDy+/9FS9V5drE5CbmoLh4qyl6MVKyR/nYFfZLco4mmUsFJPdJ35fTGBMR25YQUb7+spd38sk9kCmKb5vH0tptYOXuq0x5YOY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667593545; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=rRJdC7FY8TN5QBYjnDqRPI69roJ/S3WxGiaV7c2hQDM=; b=DlJc4D24hYAccrL9DDY9qTL1Hz54DRtqgy4s1dbk4JMxUdUjlh/bjlF9oWJO0AOWgqN2z0cX2rPtwpCujhA+AgsYA8YdoHbzaI4GpESO92KGCO5TNXNd9CsTsn0lICJtFy6t1Zusjmk6snZrUdjfXPqG1dRIOUlZzpCQsq7ukos= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95970+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1667593545896176.8112003504341; Fri, 4 Nov 2022 13:25:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Kl0hYY1788612x2qArZSjUXf; Fri, 04 Nov 2022 13:25:45 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.2518.1667593537052236213 for ; Fri, 04 Nov 2022 13:25:39 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10521"; a="396363628" X-IronPort-AV: E=Sophos;i="5.96,138,1665471600"; d="scan'208";a="396363628" X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 13:25:39 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10521"; a="777839160" X-IronPort-AV: E=Sophos;i="5.96,138,1665471600"; d="scan'208";a="777839160" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.255.31]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 13:25:38 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [edk2-devel] [Patch V2 6/7] BaseTools/Plugin/HostBaseUnitTestRunner: Enable gtest xml output Date: Fri, 4 Nov 2022 13:25:27 -0700 Message-Id: <20221104202528.1157-7-michael.d.kinney@intel.com> In-Reply-To: <20221104202528.1157-1-michael.d.kinney@intel.com> References: <20221104202528.1157-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com X-Gm-Message-State: Mg1vAQikpkd659i7veEKbjzQx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1667593545; bh=Sny+fvu2/CcM2uwfdFSJ5pDp0rWPAYjCl0khlGlH6tI=; h=Cc:Date:From:Reply-To:Subject:To; b=a7GxxXdUK2vKj7tIBBdfbRsgh3PFWTkDSfXuW6j3iqN5aS5JIlXTJVaOBZlGurlYRhU ob+sJa5e4CNBsAX3cZh96Oz+WQ1iEhtcEnrQGFx1Moo30ReA4aQDXzeAlVFEMFWcX/2p+ FmXkdyZUrrpKYzY/NXi7rMXvIODU95MRHaI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1667593547368100001 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4134 Set environment variable GTEST_OUTPUT to specify the output format of XML and 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 Reviewed-by: Bob Feng --- .../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.py @@ -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 + ".r= esult.xml") =20 # Run the test. ret =3D RunCmd('"' + test + '"', "", workingdir=3Dcp) --=20 2.37.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#95970): https://edk2.groups.io/g/devel/message/95970 Mute This Topic: https://groups.io/mt/94814645/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-