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.105; 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-by2nam03on0105.outbound.protection.outlook.com [104.47.42.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D8EDC222CF1DC for ; Thu, 18 Jan 2018 00:04:54 -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=j28e+N2K1NBfxtqyLfyz7zEpUOhuebl/weCeRJ4b4Kc=; b=c8hMIsprzCXHYQF6A5dNRgXxYkIRwCuy4xsaag9N4DFGqMqZOaHSQXGoJyuJJxKEheQ/gLnxX/AtWxDYyRnE2+kdvdKUO8ZckhvjHVYEQcW8z5aoH8sHGOQI4nwcw/Sxzp5cBddIUtrpLQgdYLtqSC5y2y1S8yYrm6t7RrwEQdo= 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:10:14 +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:10:14 +0000 From: Sean Brogan To: "Kinney, Michael D" , "edk2-devel@lists.01.org" CC: "Gao, Liming" Thread-Topic: [staging/edk2-test Patch 00/10] MsUnitTestPkg: Add Unit Test Support and sample Thread-Index: AQHTeSWIoy2gbmpdJEyHafAgpzlyTqN5dT3Q Date: Thu, 18 Jan 2018 08:10:14 +0000 Message-ID: References: <20171220000014.9140-1-michael.d.kinney@intel.com> In-Reply-To: <20171220000014.9140-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:10:12.9533487Z; 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:CG1tdpdBhI9upT8ttyWW2h6l0wfnmQef1ytexEHOWHd6iuca9pFRLj5vRg7UMcr4xidCRQ4LiZnPNIodqYO7dzMr4MV4d4EU9pwNmHs7SwM1EwjjtN7UikXuFDps4Oaiw6m5wwsSUK4c8fkqlImZBLdXYxGFC+6/SwzhHwXOU/CsdFYelheEUqFHAk6eXmHFLtyCFAtdzbgxzxcS/ZROpW8eSKzq1b4Ikct/7CPt+YU+S74H8eRx4CbqRspdfB8d x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: bb858ecf-988d-4e57-54f7-08d55e4ae78d 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)(111885846020525)(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)(6029001)(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)(59450400001)(74316002)(305945005)(68736007)(97736004)(3280700002)(7696005)(110136005)(25786009)(77096007)(6346003)(26005)(76176011)(86612001)(575784001)(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: CxV2MwzParpyyfKJ23gLYQcfP58GOaZ4C6SCLi6tMuZDmTKTInpn2/HOO3o/GavTUd5q35fkZkdXSguc34UClg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb858ecf-988d-4e57-54f7-08d55e4ae78d X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2018 08:10:14.7162 (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 00/10] MsUnitTestPkg: Add Unit Test Support and sample 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:55 -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:00 PM To: edk2-devel@lists.01.org Cc: Sean Brogan ; Gao, Liming ; Kinney, Michael D Subject: [staging/edk2-test Patch 00/10] MsUnitTestPkg: Add Unit Test Suppo= rt and sample Cherry-picked from branch: https://github.com/Microsoft/MS_UEFI/tree/share/XmlAndUnitTest Commit: https://github.com/Microsoft/MS_UEFI/commit/f2b2a2cb8f4331692297d0cab67a333= 714d71165 https://github.com/Microsoft/MS_UEFI/commit/928546fd6709ceff1f185ecb901e5cd= 4d0f82c7c https://github.com/Microsoft/MS_UEFI/commit/d2901abfc9823c21d3a962fa69e025a= 92832466b Additional updates for 32-bit systems, VS2017, GCC, safe string functions, = missing DEC file declarations, missing DSC file, and EDK II style issues. Cc: Sean Brogan Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Kinney, Michael D (7): MsUnitTestPkg/Include: Remove use of variadic macros MsUnitTestPkg/Library: Use safe string functions MsUnitTestPkg/UnitTestLib: Fix GCC build errors MsUnitTestPkg/Library: Update __FUNCTION__ usage MsUnitTestPkg: Add missing library classes MsUnitTestPkg: Add missing DSC file MsUnitTestPkg: Fix EDK II style issues Sean Brogan (3): MsUnitTestPkg: Add Unit Test Support and sample MsUnitTestPkg: Update copyright and license info MsUnitTestPkg: Update for VS2017 and 32-bit apps .../Include/Guid/MsUnitTestPkgTokenSpace.h | 33 + MsUnitTestPkg/Include/Library/UnitTestAssertLib.h | 146 ++++ MsUnitTestP= kg/Include/Library/UnitTestBootUsbLib.h | 44 + MsUnitTestPkg/Include/Library/UnitTestLib.h | 114 +++ MsUnitTestPkg/Include/Library/UnitTestLogLib.h | 68 ++ .../Include/Library/UnitTestPersistenceLib.h | 95 +++ .../Include/Library/UnitTestResultReportLib.h | 43 + MsUnitTestPkg/Include/UnitTestTypes.h | 221 +++++ .../Library/UnitTestAssertLib/UnitTestAssertLib.c | 318 +++++++ .../UnitTestAssertLib/UnitTestAssertLib.inf | 54 ++ .../UnitTestBootUsbClassLib/UnitTestBootUsb.c | 137 +++ .../UnitTestBootUsbClassLib.inf | 58 ++ .../UnitTestBootUsbMicrosoftLib/UnitTestBootUsb.c | 153 ++++ .../UnitTestBootUsbMicrosoftLib.inf | 57 ++ MsUnitTestPkg/Library/UnitTestLib/Md5.c | 352 ++++++++ MsUnitTestPkg/Library/UnitTestLib/Md5.h | 75 ++ MsUnitTestPkg/Library/UnitTestLib/UnitTestLib.c | 932 +++++++++++++++++= ++++ MsUnitTestPkg/Library/UnitTestLib/UnitTestLib.inf | 61 ++ .../Library/UnitTestLogLib/UnitTestLogLib.c | 261 ++++++ .../Library/UnitTestLogLib/UnitTestLogLib.inf | 60 ++ .../UnitTestPersistenceFileSystemLib.c | 407 +++++++++ .../UnitTestPersistenceFileSystemLib.inf | 71 ++ .../UnitTestPersistenceLibNull.c | 100 +++ .../UnitTestPersistenceLibNull.inf | 48 ++ .../UnitTestResultReportLib.c | 221 +++++ .../UnitTestResultReportLib.inf | 53 ++ MsUnitTestPkg/MsUnitTestPkg.dec | 70 ++ MsUnitTestPkg/MsUnitTestPkg.dsc | 65 ++ MsUnitTestPkg/ReadMe.md | 65 ++ .../Sample/SampleUnitTestApp/SampleUnitTestApp.c | 214 +++++ .../Sample/SampleUnitTestApp/SampleUnitTestApp.inf | 63 ++ 31 files changed, 4659 insertions(+) create mode 100644 MsUnitTestPkg/Include/Guid/MsUnitTestPkgTokenSpace.h create mode 100644 MsUnitTestPkg/Include/Library/UnitTestAssertLib.h create mode 100644 MsUnitTestPkg/Include/Library/UnitTestBootUsbLib.h create mode 100644 MsUnitTestPkg/Include/Library/UnitTestLib.h create mode 100644 MsUnitTestPkg/Include/Library/UnitTestLogLib.h create mode 100644 MsUnitTestPkg/Include/Library/UnitTestPersistenceLib.h create mode 100644 MsUnitTestPkg/Include/Library/UnitTestResultReportLib.h create mode 100644 MsUnitTestPkg/Include/UnitTestTypes.h create mode 100644 MsUnitTestPkg/Library/UnitTestAssertLib/UnitTestAssertL= ib.c create mode 100644 MsUnitTestPkg/Library/UnitTestAssertLib/UnitTestAssertL= ib.inf create mode 100644 MsUnitTestPkg/Library/UnitTestBootUsbClassLib/UnitTestB= ootUsb.c create mode 100644 MsUnitTestPkg/Library/UnitTestBootUsbClassLib/UnitTestB= ootUsbClassLib.inf create mode 100644 MsUnitTestPkg/Library/UnitTestBootUsbMicrosoftLib/UnitT= estBootUsb.c create mode 100644 MsUnitTestPkg/Library/UnitTestBootUsbMicrosoftLib/UnitT= estBootUsbMicrosoftLib.inf create mode 100644 MsUnitTestPkg/Library/UnitTestLib/Md5.c create mode 100644 MsUnitTestPkg/Library/UnitTestLib/Md5.h create mode 100644 MsUnitTestPkg/Library/UnitTestLib/UnitTestLib.c create mode 100644 MsUnitTestPkg/Library/UnitTestLib/UnitTestLib.inf create mode 100644 MsUnitTestPkg/Library/UnitTestLogLib/UnitTestLogLib.c create mode 100644 MsUnitTestPkg/Library/UnitTestLogLib/UnitTestLogLib.inf create mode 100644 MsUnitTestPkg/Library/UnitTestPersistenceFileSystemLib/= UnitTestPersistenceFileSystemLib.c create mode 100644 MsUnitTestPkg/Library/UnitTestPersistenceFileSystemLib/= UnitTestPersistenceFileSystemLib.inf create mode 100644 MsUnitTestPkg/Library/UnitTestPersistenceLibNull/UnitTe= stPersistenceLibNull.c create mode 100644 MsUnitTestPkg/Library/UnitTestPersistenceLibNull/UnitTe= stPersistenceLibNull.inf create mode 100644 MsUnitTestPkg/Library/UnitTestResultReportPlainTextOutp= utLib/UnitTestResultReportLib.c create mode 100644 MsUnitTestPkg/Library/UnitTestResultReportPlainTextOutp= utLib/UnitTestResultReportLib.inf create mode 100644 MsUnitTestPkg/MsUnitTestPkg.dec create mode 100644 MsU= nitTestPkg/MsUnitTestPkg.dsc create mode 100644 MsUnitTestPkg/ReadMe.md c= reate mode 100644 MsUnitTestPkg/Sample/SampleUnitTestApp/SampleUnitTestApp.= c create mode 100644 MsUnitTestPkg/Sample/SampleUnitTestApp/SampleUnitTestAp= p.inf -- 2.14.2.windows.3