• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..02-Mar-2021-

HostUnitTestDscCompleteCheck.pyH A D02-Mar-20216.2 KiB14192

HostUnitTestDscCompleteCheck_plug_in.yamlH A D02-Mar-2021338 1312

Readme.mdH A D02-Mar-20211 KiB3322

Readme.md

1# Host Unit Test Dsc Complete Check Plugin
2
3This CiBuildPlugin scans all INF files from a package for those related to host
4based unit tests confirms they are listed in the unit test DSC file for the package.
5The test considers it an error if any INF meeting the requirements does not appear
6in the `Components` section of the unit test DSC. This is critical because
7much of the CI infrastructure assumes that  modules will be listed in the DSC
8and compiled.
9
10This test will only require INFs in the following cases:
11
121. When MODULE_TYPE = HOST_APPLICATION
132. When a Library instance supports the HOST_APPLICATION environment
14
15## Configuration
16
17The plugin has a few configuration options to support the UEFI codebase.
18
19``` yaml
20"HostUnitTestDscCompleteCheck": {
21    "DscPath": "", # Path to Host based unit test DSC file
22    "IgnoreInf": []  # Ignore INF if found in filesystem but not dsc
23}
24```
25
26### DscPath
27
28Path to DSC to consider platform dsc
29
30### IgnoreInf
31
32Ignore error if Inf file is not listed in DSC file
33