From nobody Mon Feb 9 00:42:43 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+96118+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+96118+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1667949186; cv=none; d=zohomail.com; s=zohoarc; b=TZ9KJvkR573QCdm9RP3XXcSj6ou3EOac7mn30Op9IUhcnmaRzAGqjstl7wkqV2HTTPCQBoD3rN2afpZuJgCxPq0MuQhPktMA9kCmYsY5OxhOmK19o8JRzSf1f5IDb/wIzyU0UACoveXyKRxqEUBR9UpayZsl9E12Wzr1NhscOKw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667949186; 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=y1Q0nqCsgxqpJ6gne8MOn/X9IPrBfZ8V7Ax2cjkb/NE=; b=FswmM33ROZap1BpPyFFgj/VXbd5SUVVwUAvnkcU8TOvnS/Dmrgq7wLPDL5E2PjClgEcCWMo+31Tm1Eb+365JoWHbxaYGk84UkJasJ6jiKi4qWru90GQMhSoE9fzw4Sc4K9rzSPJ0Cd6UyS+2Fg1qlhAEqXeC+C3v+zOaH5fAWlc= 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+96118+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 1667949186306946.4337041525459; Tue, 8 Nov 2022 15:13:06 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 6Co2YY1788612xSRvWl8yM1u; Tue, 08 Nov 2022 15:13:06 -0800 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web08.21.1667949182063513285 for ; Tue, 08 Nov 2022 15:13:03 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="311990225" X-IronPort-AV: E=Sophos;i="5.96,149,1665471600"; d="scan'208";a="311990225" X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 15:13:01 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="636512169" X-IronPort-AV: E=Sophos;i="5.96,149,1665471600"; d="scan'208";a="636512169" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.209.46.35]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 15:13:01 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [edk2-devel] [Patch v3 6/7] BaseTools/Plugin/HostBaseUnitTestRunner: Enable gtest xml output Date: Tue, 8 Nov 2022 15:12:51 -0800 Message-Id: <20221108231252.1864-7-michael.d.kinney@intel.com> In-Reply-To: <20221108231252.1864-1-michael.d.kinney@intel.com> References: <20221108231252.1864-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: WPIP01qwNOWcyU3w2LvlkZNpx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1667949186; bh=orc10SseB1e1I2vp4KLdb35x7LV1iGjP7ERTF33silI=; h=Cc:Date:From:Reply-To:Subject:To; b=bcY9rEWctPH5/rjNMjuAlkQYu8r2u3/KcCQdvYWdOGQ2y794SafFuyZ/iG8xFaalS+Z rIAmXgruLpnXzuSsqoAU5jnSTR3EWARB9Lv9XPVDKYtH0B56DBGDaOT3u+1i7Wot6VOFu DKlMBUFDrcsvMLg/TZDTsCJVGnL5o778VvA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1667949187312100015 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 (#96118): https://edk2.groups.io/g/devel/message/96118 Mute This Topic: https://groups.io/mt/94902394/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-