diff options
author | Matthew Carlson <macarl@microsoft.com> | 2020-10-09 06:37:46 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-10-18 00:49:58 +0000 |
commit | 694bfd6ff5b9a8352b4ca8634ed4ce449f505991 (patch) | |
tree | 4fb60a6e72cef9d9c6ef07bbbe079e45196d5ba5 /CryptoPkg/CryptoPkg.ci.yaml | |
parent | 30f0ec8d80072ae3ab58e08014e6b2ffe3ef97e1 (diff) | |
download | edk2-694bfd6ff5b9a8352b4ca8634ed4ce449f505991.tar.gz |
CryptoPkg: BaseCryptLib: Add unit tests (Host and Shell based)
This adds a new INF for BaseCryptLib suitable for
host based environments. It adds a host based unit test for
BaseCryptLib that can also be built as a shell based Unit Test.
In addition, this also adds a UnitTestHostCrtWrapper.c file, which provides
some of the functionality not provided by the default host based unit test
system that OpenSSL expects. This is used by UnitTestHostBaseCryptLib, a
version of the BaseCryptLib meant specifically for host based unit testing.
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Signed-off-by: Matthew Carlson <matthewfcarlson@gmail.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'CryptoPkg/CryptoPkg.ci.yaml')
-rw-r--r-- | CryptoPkg/CryptoPkg.ci.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CryptoPkg/CryptoPkg.ci.yaml b/CryptoPkg/CryptoPkg.ci.yaml index 2ade777aad..5d7c340ae5 100644 --- a/CryptoPkg/CryptoPkg.ci.yaml +++ b/CryptoPkg/CryptoPkg.ci.yaml @@ -19,6 +19,10 @@ ## Both file path and directory path are accepted.
"IgnoreFiles": [
"Library/OpensslLib/openssl",
+ # The unit testing folder is not to be checked
+ "Test/UnitTest",
+ # This has OpenSSL interfaces that aren't UEFI spec compliant
+ "Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c",
# this has OpenSSL interfaces that aren't UEFI spec compliant
"Library/OpensslLib/rand_pool.c"
]
@@ -26,6 +30,10 @@ "CompilerPlugin": {
"DscPath": "CryptoPkg.dsc"
},
+ ## options defined .pytool/Plugin/HostUnitTestCompilerPlugin
+ "HostUnitTestCompilerPlugin": {
+ "DscPath": "Test/CryptoPkgHostUnitTest.dsc"
+ },
"CharEncodingCheck": {
"IgnoreFiles": []
},
|