Gua Guo
3701f105fa
UnitTestFrameworkPkg: Add code coverage support for GCC
...
In order to collect code coverage after running executable
file, generate *.gcda and *.gcno file that require by lcov tool
to generate code coverage report.
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Reviewed-by: Michael Kubacki <mikuback@linux.microsoft.com >
Signed-off-by: Gua Guo <gua.guo@intel.com >
2023-01-04 02:06:01 +00:00
Michael D Kinney
cef0c5c684
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 <mikuback@linux.microsoft.com >
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <quic_llindhol@quicinc.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Michael Kubacki <mikuback@linux.microsoft.com >
Acked-by: Leif Lindholm <quic_llindhol@quicinc.com >
2022-11-11 05:46:51 +00:00
Kun Qin
14a731096d
UnitTestFrameworkPkg: CI YAML: Grant cmockery spell check exception
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3798
UnitTestFrameworkPkg.dec contains cmockery folder from cmocka submodule.
However, the term "cmockery" is unrecognized by cspell tool.
This change grants spell check exception to "cmockery" to prevent
pipeline building failure.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Signed-off-by: Kun Qin <kuqin12@gmail.com >
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com >
2022-01-08 03:47:09 +00:00
Michael D Kinney
f0f3f5aae7
UnitTestFrameworkPkg: Update YAML to ignore specific ECC files/errors
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3749
Update package YAML files to ignore ECC errors that are
already present. These issues must be fixed in the future,
but should not block source code changes for these known
issues.
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Bret Barkelew <bret.barkelew@microsoft.com >
2021-11-30 14:19:07 +00:00
Shenglei Zhang
7b453107f8
UnitTestFrameworkPkg: Add configuration for Ecc check in yaml file
...
Add configuration ExceptionList and IgnoreFiles for package config
files. So users can rely on this to ignore some Ecc issues.
Besides, add submodule path in IgnoreFiles section.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
2020-08-17 03:28:09 +00:00
Bret Barkelew
4698f544d2
UnitTestFrameworkPkg/Readme.md: Update documentation for latest features
...
* Add additional documentation about running tests locally
* Add a note about XML formatting
* Update readme with BaseLib and UNIT_TESTING_DEBUG
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Sean Brogan <sean.brogan@microsoft.com >
Signed-off-by: Bret Barkelew <Bret.Barkelew@microsoft.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com >
2020-08-07 18:29:41 +00:00
Shenglei Zhang
7f79b736b0
UnitTestFrameworkPkg: Add configuration for LicenseCheck in yaml file
...
Add configuration IgnoreFiles for package config files.
So users can rely on this to skip license conflict for
some generated files.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
2020-07-31 02:49:51 +00:00
Bret Barkelew
4403bbd7c0
UnitTestFrameworkPkg: Add info to readme about working with UnitTests
...
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Bret Barkelew <bret.barkelew@microsoft.com >
Signed-off-by: Bret Barkelew <bret.barkelew@microsoft.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
2020-06-02 02:45:46 +00:00
Michael D Kinney
3e61b953b7
UnitTestFrameworkPkg: Add DSC, DSC INC, and YAML files
...
https://bugzilla.tianocore.org/show_bug.cgi?id=2505
* DSC in root of package file to perform a package
build of the UnitTestFrameworkPkg and build sample
unit test for all supported target environments.
* DSC file in Test directory to build the sample
unit test for the host environment.
* UnitTestFrameworkPkgTarget.dsc.inc - DSC include
file to !include when building unit tests for
target environments.
* UnitTestFrameworkPkgHost.dsc.inc - DSC include
file to !include when building unit tests for
target environments.
* YAML file with set of CI checks to perform on UnitTestFrameworkPkg.
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Bret Barkelew <Bret.Barkelew@microsoft.com >
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com >
2020-02-07 19:18:53 +00:00