From nobody Tue Nov 26 02:30:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+62284+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62284+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1594267539; cv=none; d=zohomail.com; s=zohoarc; b=D3XVncrlAQszFF61HU1qXhdHRSk1VqfEhIFqhojJhgjjcSIsT68VDh67I9iYoGE4zXjer/2BFH9ZUodmVlKEJPOQUFxbblo2TTdVbckPBjufV9fzvdtVKVgk7MEpVUV0qjqDqYtAxGzgnFlX+V/bdLp3cT4AdIpI0nGlgYp+V7A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594267539; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=w3vRgtSm8vSRhFTow8yMhfQIlX2HHdGU2OlEA38Eifw=; b=jQS2Yul8YkI4oUHaOmXz1+RELTB4Mx0CR0KNg5sTERj2uTEMHCj7NIaG85oPgo8vWJ/3AAiTvPiHfHqPXRoZYGMgX29W0wM7UKvJt2t99HorqxmhcK7hSxyFbS49PnApuJ5RFiEZGh4msXFCANE7F0QrFe99J92dqvlGuC0zKx0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62284+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1594267539505949.3976647717402; Wed, 8 Jul 2020 21:05:39 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id qA88YY1788612xKJBSngAzcc; Wed, 08 Jul 2020 21:05:39 -0700 X-Received: from mga07.intel.com (mga07.intel.com []) by mx.groups.io with SMTP id smtpd.web11.4378.1594267536731145998 for ; Wed, 08 Jul 2020 21:05:37 -0700 IronPort-SDR: 9Pp523dk3yvuG2Evg22EAhzOHYPPPESx37tYB18hpcdeGw/AC1g5hvZ+J04/Nq9qnXyzKIjq9Z JQ83qh31ObHg== X-IronPort-AV: E=McAfee;i="6000,8403,9676"; a="212851088" X-IronPort-AV: E=Sophos;i="5.75,330,1589266800"; d="scan'208";a="212851088" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2020 21:05:37 -0700 IronPort-SDR: idatV5s4Q6pukMSNgS1BYHNrWYvkCbmku5wfSRGdEx7ASi5cdrj5jC49qC++bUrJ2ao2z1ZlUT hM/8vLBdapIQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,330,1589266800"; d="scan'208";a="280163928" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.255.230.8]) by orsmga003.jf.intel.com with ESMTP; 08 Jul 2020 21:05:36 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Jiewen Yao Subject: [edk2-devel] [Patch v2 07/16] UnitTestFrameworkPkg: Enable source level debug for host tests Date: Wed, 8 Jul 2020 21:05:12 -0700 Message-Id: <20200709040521.3748-8-michael.d.kinney@intel.com> In-Reply-To: <20200709040521.3748-1-michael.d.kinney@intel.com> References: <20200709040521.3748-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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: yC7uzuryglBhZSG4tkoBECIWx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1594267539; bh=wWnZyQ2Xqm89vNgRdTmTsWhiNjJ0OFlSQYol5bnaESA=; h=Cc:Date:From:Reply-To:Subject:To; b=NeHxp66/yMYWzk/iM9KR3rkS9r/PWym9uGPihfhQMo5skJ+rYrUOtYIGdaTEePIWMd9 sQymBI0q+jEn6kXBU2Gnwpsxfymb0ABQhKmxTdwmILllMtwbftpWgz4KI+6evEwPO+nEd 5zL5D/ccKWlq8lS0CsXiCHv3uSJL9NoFMEs= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2804 Optionally enable a feature to support source level debug of a host based unit test. By default, this feature is disabled. Exceptions are caught by the unit test framework and are interpreted as a test failure. When a unit test is under development, bugs may generate exceptions or a unit test developer may want to trace the execution of unit tests to debug some unexpected behavior. Defining UNIT_TESTING_DEBUG in the DSC file or from the build command line allows exceptions to be caught by the host OS and allows the developer to debug their unit test under development or debug the Unit Test Framework itself. Cc: Sean Brogan Cc: Bret Barkelew Cc: Jiewen Yao Signed-off-by: Michael D Kinney --- UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc b/UnitTe= stFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc index f6a5b16096..5de3c45d5a 100644 --- a/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc +++ b/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc @@ -19,6 +19,11 @@ [LibraryClasses.common.HOST_APPLICATION] =20 [BuildOptions] GCC:*_*_*_CC_FLAGS =3D -fno-pie +!ifdef $(UNIT_TESTING_DEBUG) + MSFT:*_*_*_CC_FLAGS =3D -D UNIT_TESTING_DEBUG=3D1 + GCC:*_*_*_CC_FLAGS =3D -D UNIT_TESTING_DEBUG=3D1 + XCODE:*_*_*_CC_FLAGS =3D -D UNIT_TESTING_DEBUG=3D1 +!endif =20 [BuildOptions.common.EDKII.HOST_APPLICATION] # --=20 2.21.0.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 (#62284): https://edk2.groups.io/g/devel/message/62284 Mute This Topic: https://groups.io/mt/75391614/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-