From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: tengfen.sun@intel.com) Received: from mga12.intel.com (mga12.intel.com []) by groups.io with SMTP; Wed, 22 May 2019 00:21:25 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2019 00:21:25 -0700 X-ExtLoop1: 1 Received: from tiano-tengfens.ccr.corp.intel.com ([10.239.9.110]) by orsmga002.jf.intel.com with ESMTP; 22 May 2019 00:21:23 -0700 From: "Sun, Tengfen" To: devel@edk2.groups.io Cc: jiewen.yao@intel.com, liming.gao@intel.com, tengfen.sun@intel.com, chris.wu@intel.com Subject: [PATCH 3/4] [staging/HBFA PATCH]: UefiHostUnitTestCasePkg: Add CmockaLib Date: Wed, 22 May 2019 15:20:43 +0800 Message-Id: <20190522072044.12472-4-tengfen.sun@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20190522072044.12472-1-tengfen.sun@intel.com> References: <20190522072044.12472-1-tengfen.sun@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add CmockaLib into UefiHostUnitTestCasePkg.dsc REF: https://edk2.groups.io/g/devel/message/39893 Signed-off-by: Tengfen Sun --- .../UefiHostUnitTestCasePkg.dsc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/HBFA/UefiHostUnitTestCasePkg/UefiHostUnitTestCasePkg.dsc b/HBFA/UefiHostUnitTestCasePkg/UefiHostUnitTestCasePkg.dsc index d116062eb2d3..8fe1f5b76b7b 100644 --- a/HBFA/UefiHostUnitTestCasePkg/UefiHostUnitTestCasePkg.dsc +++ b/HBFA/UefiHostUnitTestCasePkg/UefiHostUnitTestCasePkg.dsc @@ -99,6 +99,7 @@ !if $(UNIT_TEST_FRAMEWORK_MODE) == CMOCKA UnitTestLib|UefiHostUnitTestPkg/Library/UnitTestLibcmocka/UnitTestLibcmocka.inf UnitTestAssertLib|UefiHostUnitTestPkg/Library/UnitTestAssertLibcmocka/UnitTestAssertLibcmocka.inf + CmockaLib|CmockaHostUnitTestPkg/Library/CmockaLib/CmockaLib.inf !endif !if $(OPENSSL_TEST_ENABLE) @@ -181,6 +182,16 @@ !endif [Components] +!if $(UNIT_TEST_FRAMEWORK_MODE) == CMOCKA + CmockaHostUnitTestPkg/Library/CmockaLib/CmockaLib.inf { + + MSFT:*_*_*_CC_FLAGS == /c /D _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1 /D _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT=1 /D _CRT_NONSTDC_NO_WARNINGS=1 /D _CRT_SECURE_NO_WARNINGS=1 -DHAVE_VSNPRINTF -DHAVE_SNPRINTF + + GCC:*_*_IA32_CC_FLAGS == -m32 -O0 -g -fprofile-arcs -ftest-coverage -std=gnu99 -Wpedantic -Wall -Wshadow -Wmissing-prototypes -Wcast-align -Werror=address -Wstrict-prototypes -Werror=strict-prototypes -Wwrite-strings -Werror=write-strings -Werror-implicit-function-declaration -Wpointer-arith -Werror=pointer-arith -Wdeclaration-after-statement -Werror=declaration-after-statement -Wreturn-type -Werror=return-type -Wuninitialized -Werror=uninitialized -Werror=strict-overflow -Wstrict-overflow=2 -Wno-format-zero-length -Wmissing-field-initializers -Wformat-security -Werror=format-security -fno-common -Wformat -fno-common -fstack-protector-strong -DHAVE_SIGNAL_H + GCC:*_*_X64_CC_FLAGS == -m64 -O0 -g -fprofile-arcs -ftest-coverage -std=gnu99 -Wpedantic -Wall -Wshadow -Wmissing-prototypes -Wcast-align -Werror=address -Wstrict-prototypes -Werror=strict-prototypes -Wwrite-strings -Werror=write-strings -Werror-implicit-function-declaration -Wpointer-arith -Werror=pointer-arith -Wdeclaration-after-statement -Werror=declaration-after-statement -Wreturn-type -Werror=return-type -Wuninitialized -Werror=uninitialized -Werror=strict-overflow -Wstrict-overflow=2 -Wno-format-zero-length -Wmissing-field-initializers -Wformat-security -Werror=format-security -fno-common -Wformat -fno-common -fstack-protector-strong -DHAVE_SIGNAL_H + } +!endif + UefiHostUnitTestCasePkg/TestCase/FatPkg/FatPei/TestPeiGpt.inf { NULL|UefiHostUnitTestCasePkg/TestCase/FatPkg/FatPei/Override/FatPei.inf -- 2.21.0.windows.1