Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: f832329addcb199bb4bee6cb6813dca1ebc3802d
https://github.com/tianocore/edk2/commit/f832329addcb199bb4bee6cb6813dca1ebc3802d
Author: Michael D Kinney <[email protected]>
Date: 2025-09-28 (Sun, 28 Sep 2025)
Changed paths:
M UnitTestFrameworkPkg/UnitTestFrameworkPkgCommon.dsc.inc
Log Message:
-----------
UnitTestFrameworkPkg: Set defines for CLANGPDB builds
Set same defines for CLANGPDB tool chain family as all
tool chain other families.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: 9731114a00e8360d5b116630c133590108640039
https://github.com/tianocore/edk2/commit/9731114a00e8360d5b116630c133590108640039
Author: Michael D Kinney <[email protected]>
Date: 2025-09-28 (Sun, 28 Sep 2025)
Changed paths:
M UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc
Log Message:
-----------
UnitTestFrameworkPkg: Add CLANGDWARF and CLANGPDB support
Update host-based unit test [BuildOptions] to support
CLANGDWARF and CLANGPDB.
* Use CLANG specific code coverage options
* Map CLANG trap function to abort() to resolve link issues
when building Google Test based unit tests. The default
mapping from tools_def.txt is to an unresolved function
to generate a build failure. Mapping to abort() overrides
the default mapping. If a unit test introduces undefined
behavior in a code path that is executed, then abort() is
called and the unit test application exits with an error
and fails the unit test.
* Update GCC to pass --coverage in link command so the
linker automatically includes -lgcov. The explicit
linking of -lgcov is removed.
* Add /EHs to all MSFT components instead of only components
of type HOST_APPLICATION.
* Add CXX_FLAGS for all tool chain families. Use c++ 20 for
MSFT and GCC and c++ 17 for clang. Clang generates errors
compiling Google Test with c++ 20.
* Add -z noexecstack to all GCC builds to reduce warnings.
* Add UNIT_TESTING_CODE_COVERAGE_ENABLE that is enabled by
default. Can be used to temporarily disable code coverage
when debugging interactions between unit testing features.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: 81a7efddd508e78b867d7efa1333564a8a32725f
https://github.com/tianocore/edk2/commit/81a7efddd508e78b867d7efa1333564a8a32725f
Author: Michael D Kinney <[email protected]>
Date: 2025-09-28 (Sun, 28 Sep 2025)
Changed paths:
M UnitTestFrameworkPkg/Include/Library/GoogleTestLib.h
Log Message:
-----------
UnitTestFrameworkPkg/Include: Update GoogleTestLib for CLANG
Update GoogleTestLib.h to support Windows/CLANGPDB build.
When using Windows/CLANGPDB, _MSC_VER is not defined. If
it is not defined, then set to 1900 for Visual Studio 2015
or newer compatibility when using windows include files for
host based unit test application builds. If _MSC_VER is not
set, then those application fail to build.
Also address a Windows/CLANG issue when ASAN is enabled
by providing an alternate implementation of the
EXPECT_THROW_MESSAGE() and ASSERT_THROW_MESSAGE() macros.
Without this alternate implementation, an exception is
generated due to the description of the ASSERT() condition
being NULL.
Update all implementations of EXPECT_THROW_MESSAGE() and
ASSERT_THROW_MESSAGE() to support parameters to the
statement executed to return values.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: 6e65f7df90434c03371790be180becb10e1c30c7
https://github.com/tianocore/edk2/commit/6e65f7df90434c03371790be180becb10e1c30c7
Author: Michael D Kinney <[email protected]>
Date: 2025-09-28 (Sun, 28 Sep 2025)
Changed paths:
M UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.inf
Log Message:
-----------
UnitTestFrameworkPkg/CmockaLib: Add CLANGPDB support
Add CLANGPDB family defines to match MSFT family defines.
Also add -Wno-deprecated-declarations to CLANGPDB family
to ignore warnings detected when building cmocka sources
with clang compiler.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: 0838bf1531b5b6bf1ac8b2bf71c8fe4ce4375141
https://github.com/tianocore/edk2/commit/0838bf1531b5b6bf1ac8b2bf71c8fe4ce4375141
Author: Michael D Kinney <[email protected]>
Date: 2025-09-28 (Sun, 28 Sep 2025)
Changed paths:
M UnitTestFrameworkPkg/Library/SubhookLib/SubhookLib.inf
Log Message:
-----------
UnitTestFrameworkPkg/SubhookLib: Update GCC defines
Add -DSUBHOOK_STATIC to all GCC family builds to match
defines in MSFT family builds.
Also remove /EHsc from MSFT CC_FLAGS. /EHs is added to
CC_FLAGS in UnitTestFrameworkPkgHost.dsc.inc for all
components.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: 07da104cfbe410e5f59791ab9a71fd22241c483c
https://github.com/tianocore/edk2/commit/07da104cfbe410e5f59791ab9a71fd22241c483c
Author: Michael D Kinney <[email protected]>
Date: 2025-09-28 (Sun, 28 Sep 2025)
Changed paths:
M UnitTestFrameworkPkg/Library/GoogleTestLib/GoogleTestLib.inf
Log Message:
-----------
UnitTestFrameworkPkg/GoogleTestLib: Remove extra options
Update MSFT CC_FLAGS options to remove /EHs and /MTd that
are added by UnitTestFrameworkPkgHost.dsc.inc for all
components.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: 55a5ec63fe20152c237039c54e2957720828cf10
https://github.com/tianocore/edk2/commit/55a5ec63fe20152c237039c54e2957720828cf10
Author: Michael D Kinney <[email protected]>
Date: 2025-09-28 (Sun, 28 Sep 2025)
Changed paths:
M
UnitTestFrameworkPkg/Library/UnitTestDebugAssertLib/UnitTestDebugAssertLibHost.inf
Log Message:
-----------
UnitTestFrameworkPkg/UnitTestDebugAddressLib: Remove extra options
Remove /EHsc from CC_FLAGS. /EHs is added to CC_FLAGS in
UnitTestFrameworkPkgHost.dsc.inc for all components.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: 3c454cf7d43c59f7ff0000ca6ac333e8f359673e
https://github.com/tianocore/edk2/commit/3c454cf7d43c59f7ff0000ca6ac333e8f359673e
Author: Michael D Kinney <[email protected]>
Date: 2025-09-28 (Sun, 28 Sep 2025)
Changed paths:
M BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py
Log Message:
-----------
BaseTools/Plugin/HostBasedUnitTestRunner: Add CLANG support
Update HostBasedUnitTestRunner to generate merged Cobertura
coverage.xml output file using CLANG code coverage data
from -fprofile-instr-generate -fcoverage-mapping options.
Signed-off-by: Michael D Kinney <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/8310dfa9f49b...3c454cf7d43c
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits