From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.42.132; helo=nam03-by2-obe.outbound.protection.outlook.com; envelope-from=sean.brogan@microsoft.com; receiver=edk2-devel@lists.01.org Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0132.outbound.protection.outlook.com [104.47.42.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 639A1222CF1DC for ; Thu, 18 Jan 2018 00:04:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XY1OapogCI1W7/jtN5mWL1AIh7ZNWV/ikEWUGkdGVF4=; b=E8MQWI35ngsQdNiFXcUIkQUltAgl/5jCS9hND0YUheCy1lFwFIvLTfWxi+Oe7ZndU8gSXvcs5RYx0tlRPfKEaBXjsH4s1U9OsB6U9i4eI5eHVw8PFnpT8jwdMFTPrVm/Y9rTkgAq9qwp6cneDukS90tEPWmn0CkYQC5rRHCe34g= Received: from MWHPR21MB0480.namprd21.prod.outlook.com (10.172.102.19) by MWHPR21MB0638.namprd21.prod.outlook.com (10.175.141.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.444.5; Thu, 18 Jan 2018 08:09:52 +0000 Received: from MWHPR21MB0480.namprd21.prod.outlook.com ([10.172.102.19]) by MWHPR21MB0480.namprd21.prod.outlook.com ([10.172.102.19]) with mapi id 15.20.0444.004; Thu, 18 Jan 2018 08:09:52 +0000 From: Sean Brogan To: "Kinney, Michael D" , "edk2-devel@lists.01.org" CC: "Gao, Liming" Thread-Topic: [staging/edk2-test Patch 0/2] MdePkgUnitTest: Add unit test package for MdePkg Thread-Index: AQHTeSfAvmrdIq00PkmtuNwVGeEgJaN5dR0A Date: Thu, 18 Jan 2018 08:09:51 +0000 Message-ID: References: <20171220001607.22736-1-michael.d.kinney@intel.com> In-Reply-To: <20171220001607.22736-1-michael.d.kinney@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=sebrogan@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-01-18T08:09:50.1170830Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [50.47.104.211] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR21MB0638; 7:2oDgYGBaBat8B4e7wt4Tl38MVbGwqyDw/oga6Z5m43bk5mA4gB1yC8V/i4ehQ6cyMFy3P8rQiWITOs1FID9G+ApomBiJDEXwSQhvjBnFc50pWZMIum3Im5NbwVg1S3Wx8oDUKrLb3C7ywIeTeTe8YlYgYLM4s9XiGgdqIPqTqKJ2uofo7AROlPXvK1eNo8Tlu77pnKDG5GwmZxMla7U+a5KySrfmDkSk9j8el/R4/Am4f0hdToIIIJBfoSjMkYUB x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 3d641ee0-294c-4c0e-55a0-08d55e4ada08 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7193020); SRVR:MWHPR21MB0638; x-ms-traffictypediagnostic: MWHPR21MB0638: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(166708455590820)(162533806227266)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040492)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231046)(2400058)(944501161)(6055026)(61426038)(61427038)(6041279)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:MWHPR21MB0638; BCL:0; PCL:0; RULEID:(100000803126)(100110400120); SRVR:MWHPR21MB0638; x-forefront-prvs: 05568D1FF7 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39380400002)(346002)(39860400002)(396003)(376002)(366004)(13464003)(199004)(189003)(14454004)(102836004)(81156014)(81166006)(6246003)(86362001)(8990500004)(53546011)(478600001)(6506007)(8676002)(966005)(10090500001)(66066001)(106356001)(7736002)(10290500003)(74316002)(305945005)(68736007)(97736004)(3280700002)(7696005)(110136005)(25786009)(77096007)(6346003)(26005)(76176011)(86612001)(4326008)(99286004)(316002)(22452003)(2906002)(8936002)(3660700001)(55016002)(5660300001)(2950100002)(9686003)(6306002)(6116002)(6436002)(3846002)(229853002)(53936002)(2501003)(33656002)(105586002)(2900100001)(19627235001); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR21MB0638; H:MWHPR21MB0480.namprd21.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=sean.brogan@microsoft.com; x-microsoft-antispam-message-info: 2Q4ahrZVG8Dsu/mqKsBDC0d8wSjjszQGf5q89Dv1ESnn/lpLzCh9NIVc72k1Hs8lbAkTeSGSsKvPfShfr6pd/Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d641ee0-294c-4c0e-55a0-08d55e4ada08 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2018 08:09:51.9772 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR21MB0638 Subject: Re: [staging/edk2-test Patch 0/2] MdePkgUnitTest: Add unit test package for MdePkg X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 08:04:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Sean Brogan -----Original Message----- From: Kinney, Michael D [mailto:michael.d.kinney@intel.com]=20 Sent: Tuesday, December 19, 2017 4:16 PM To: edk2-devel@lists.01.org Cc: Sean Brogan ; Gao, Liming ; Kinney, Michael D Subject: [staging/edk2-test Patch 0/2] MdePkgUnitTest: Add unit test packag= e for MdePkg Initial version of a unit test package for the MdePkg that uses services fr= om the MsUnitTestPkg to implement test cases for the SafeIntLib in the MdeP= kg. The initial version of these tests is from the following branch and commit: https://github.com/Microsoft/MS_UEFI/tree/share/intsafelib/MdeModulePkg/Uni= tTests/IntSafeLib https://github.com/Microsoft/MS_UEFI/commit/cc2e9d229d4e876ab64d75dee16761a= 297582fd9 Additional updates for CPU compatibility, CHAR8 signed/unsigned, and EDK II= code style issues. Cc: Sean Brogan Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Kinney, Michael D (1): MdePkgUnitTest: Fix EDK II style issues Michael D Kinney (1): MdePkgUnitTest: Add unit test package for MdePkg MdePkgUnitTest/MdePkgUnitTest.dec | 20 + MdePkgUnitTest/MdePkgUnitTest.dsc | 57 + .../SafeIntLib/SafeIntLibUintnIntnUnitTests32.c | 54 + .../SafeIntLib/SafeIntLibUintnIntnUnitTests64.c | 54 + .../SafeIntLib/SafeIntLibUintnIntnUnitTestsEbc.c | 65 + MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests.c | 3667 ++++++++++++++++= ++++ MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests.h | 155 + MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests.inf | 69 + MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests32.c | 635 ++++ MdePkgUnit= Test/SafeIntLib/SafeIntLibUnitTests64.c | 639 ++++ 10 files changed, 5415 insertions(+) create mode 100644 MdePkgUnitTest/MdePkgUnitTest.dec create mode 100644 M= dePkgUnitTest/MdePkgUnitTest.dsc create mode 100644 MdePkgUnitTest/SafeInt= Lib/SafeIntLibUintnIntnUnitTests32.c create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUintnIntnUnitTests6= 4.c create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUintnIntnUnitTestsE= bc.c create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests.c create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests.h create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests.inf create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests32.c create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests64.c -- 2.14.2.windows.3