[PATCH v2 1/1] .pytool/Plugin/HostUnitTestCompilerPlugin: Enable BUILDREPORT on host tests


Bret Barkelew
 

Update the CI invocable that builds host-based unit tests to make
sure that BUILDREPORT is built for all tests. This is useful for
determining which libraries were consumed in the build.

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Bret Barkelew <Bret.Barkelew@microsoft.com>
---
.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.py | =
2 ++
1 file changed, 2 insertions(+)

diff --git a/.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompiler=
Plugin.py b/.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerP=
lugin.py
index f21b40caf291..43abd1f4795b 100644
--- a/.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.=
py
+++ b/.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.=
py
@@ -86,6 +86,8 @@ class HostUnitTestCompilerPlugin(ICiBuildPlugin):
def RunBuildPlugin(self, packagename, Edk2pathObj, pkgconfig, environm=
ent, PLM, PLMHelper, tc, output_stream=3DNone):=0D
self._env =3D environment=0D
environment.SetValue("CI_BUILD_TYPE", "host_unit_test", "Set in Ho=
stUnitTestCompilerPlugin")=0D
+ environment.SetValue("BUILDREPORTING", "TRUE", "Set in HostUnitTes=
tCompilerPlugin")=0D
+ environment.SetValue("BUILDREPORT_TYPES", "PCD DEPEX LIBRARY BUILD=
_FLAGS", "Set in HostUnitTestCompilerPlugin")=0D
=0D
# Parse the config for required DscPath element=0D
if "DscPath" not in pkgconfig:=0D
--=20
2.27.0.windows.1

Join devel@edk2.groups.io to automatically receive all group messages.