From cef0c5c68427f4e93dc9c4135a8e60018f2307b5 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Mon, 20 Jun 2022 19:52:03 -0700 Subject: UnitTestFrameworkPkg: Add googletest submodule and GoogleTestLib REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4134 Add submodule for googletest and add GoogleTestLib that is required for GoogleTest based unit tests. Add GoogleTest documentation to Readme.md along with a port of the sample unit test to the GoogleTest style. A few typos in Readme.md are also fixed. Cc: Michael Kubacki Cc: Sean Brogan Cc: Andrew Fish Cc: Leif Lindholm Signed-off-by: Michael D Kinney Reviewed-by: Michael Kubacki Acked-by: Leif Lindholm --- UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml') diff --git a/UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml b/UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml index 77d51e1..072df62 100644 --- a/UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml +++ b/UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml @@ -78,7 +78,8 @@ "SpellCheck": { "AuditOnly": False, # Fails test but run in AuditOnly mode to collect log "IgnoreFiles": [ # use gitignore syntax to ignore errors in matching files - "Library/CmockaLib/cmocka/**/*.*" # not going to spell check a submodule + "Library/CmockaLib/cmocka/**/*.*", # not going to spell check a submodule + "Library/GoogleTestLib/googletest/**/*.*" # not going to spell check a submodule ], "ExtendWords": [ # words to extend to the dictionary for this package "testcase", @@ -91,6 +92,7 @@ "NOFAILURE", "cmockery", "DHAVE", # build flag for cmocka in the INF + "gtest", # file name in GoogleTestLib.inf "corthon", # Contact GitHub account in Readme "mdkinney", # Contact GitHub account in Readme "spbrogan" # Contact GitHub account in Readme -- cgit v1.1