public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Sun, Tengfen" <tengfen.sun@intel.com>
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	[thread overview]
Message-ID: <20190522072044.12472-4-tengfen.sun@intel.com> (raw)
In-Reply-To: <20190522072044.12472-1-tengfen.sun@intel.com>

Add CmockaLib into UefiHostUnitTestCasePkg.dsc
REF: https://edk2.groups.io/g/devel/message/39893

Signed-off-by: Tengfen Sun <tengfen.sun@intel.com>
---
 .../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 {
+  <BuildOptions>
+    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 {
   <LibraryClasses>
     NULL|UefiHostUnitTestCasePkg/TestCase/FatPkg/FatPei/Override/FatPei.inf
-- 
2.21.0.windows.1


  parent reply	other threads:[~2019-05-22  7:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22  7:20 [PATCH 0/4] [staging/HBFA PATCH]: Enable cmocka unit test build with submodule Sun, Tengfen
2019-05-22  7:20 ` [PATCH 1/4] [staging/HBFA PATCH]: CmockaHostUnitTestPkg: Add cmocka submodule Sun, Tengfen
2019-05-22  7:20 ` [PATCH 2/4] [staging/HBFA PATCH]: CmockaHostUnitTestPkg: Enable CmockaHostUnitTestPkg build Sun, Tengfen
2019-05-22  7:20 ` Sun, Tengfen [this message]
2019-05-22  7:20 ` [PATCH 4/4] [staging/HBFA PATCH]: UefiHostUnitTestPkg: Enable cmocka unit test build with CmockaHostUnitTestPkg Sun, Tengfen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190522072044.12472-4-tengfen.sun@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox