From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.20; helo=mga02.intel.com; envelope-from=michael.d.kinney@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 DACAA21CB865F for ; Tue, 19 Dec 2017 16:11:25 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2017 16:16:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,429,1508828400"; d="scan'208";a="3742575" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.241.98.58]) by fmsmga007.fm.intel.com with ESMTP; 19 Dec 2017 16:16:12 -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:16:05 -0800 Message-Id: <20171220001607.22736-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.14.2.windows.3 Subject: [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: Wed, 20 Dec 2017 00:11:26 -0000 Initial version of a unit test package for the MdePkg that uses services from the MsUnitTestPkg to implement test cases for the SafeIntLib in the MdePkg. The initial version of these tests is from the following branch and commit: https://github.com/Microsoft/MS_UEFI/tree/share/intsafelib/MdeModulePkg/UnitTests/IntSafeLib https://github.com/Microsoft/MS_UEFI/commit/cc2e9d229d4e876ab64d75dee16761a297582fd9 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 ++++ MdePkgUnitTest/SafeIntLib/SafeIntLibUnitTests64.c | 639 ++++ 10 files changed, 5415 insertions(+) create mode 100644 MdePkgUnitTest/MdePkgUnitTest.dec create mode 100644 MdePkgUnitTest/MdePkgUnitTest.dsc create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUintnIntnUnitTests32.c create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUintnIntnUnitTests64.c create mode 100644 MdePkgUnitTest/SafeIntLib/SafeIntLibUintnIntnUnitTestsEbc.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