From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=michael.d.kinney@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 691F621CB865F for ; Tue, 19 Dec 2017 15:55:33 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2017 16:00:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,429,1508828400"; d="scan'208";a="13197357" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.241.98.58]) by FMSMGA003.fm.intel.com with ESMTP; 19 Dec 2017 16:00:19 -0800 From: "Kinney, Michael D" To: edk2-devel@lists.01.org Cc: Sean Brogan , Liming Gao , Michael D Kinney Date: Tue, 19 Dec 2017 16:00:04 -0800 Message-Id: <20171220000014.9140-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.14.2.windows.3 Subject: [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: Tue, 19 Dec 2017 23:55:33 -0000 Cherry-picked from branch: https://github.com/Microsoft/MS_UEFI/tree/share/XmlAndUnitTest Commit: https://github.com/Microsoft/MS_UEFI/commit/f2b2a2cb8f4331692297d0cab67a333714d71165 https://github.com/Microsoft/MS_UEFI/commit/928546fd6709ceff1f185ecb901e5cd4d0f82c7c https://github.com/Microsoft/MS_UEFI/commit/d2901abfc9823c21d3a962fa69e025a92832466b 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 ++++ MsUnitTestPkg/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/UnitTestAssertLib.c create mode 100644 MsUnitTestPkg/Library/UnitTestAssertLib/UnitTestAssertLib.inf create mode 100644 MsUnitTestPkg/Library/UnitTestBootUsbClassLib/UnitTestBootUsb.c create mode 100644 MsUnitTestPkg/Library/UnitTestBootUsbClassLib/UnitTestBootUsbClassLib.inf create mode 100644 MsUnitTestPkg/Library/UnitTestBootUsbMicrosoftLib/UnitTestBootUsb.c create mode 100644 MsUnitTestPkg/Library/UnitTestBootUsbMicrosoftLib/UnitTestBootUsbMicrosoftLib.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/UnitTestPersistenceLibNull.c create mode 100644 MsUnitTestPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.inf create mode 100644 MsUnitTestPkg/Library/UnitTestResultReportPlainTextOutputLib/UnitTestResultReportLib.c create mode 100644 MsUnitTestPkg/Library/UnitTestResultReportPlainTextOutputLib/UnitTestResultReportLib.inf create mode 100644 MsUnitTestPkg/MsUnitTestPkg.dec create mode 100644 MsUnitTestPkg/MsUnitTestPkg.dsc create mode 100644 MsUnitTestPkg/ReadMe.md create mode 100644 MsUnitTestPkg/Sample/SampleUnitTestApp/SampleUnitTestApp.c create mode 100644 MsUnitTestPkg/Sample/SampleUnitTestApp/SampleUnitTestApp.inf -- 2.14.2.windows.3