aboutsummaryrefslogtreecommitdiffstats
path: root/roms/edk2/.pytool/Plugin/HostUnitTestDscCompleteCheck/Readme.md
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/edk2/.pytool/Plugin/HostUnitTestDscCompleteCheck/Readme.md
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/edk2/.pytool/Plugin/HostUnitTestDscCompleteCheck/Readme.md')
-rw-r--r--roms/edk2/.pytool/Plugin/HostUnitTestDscCompleteCheck/Readme.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/roms/edk2/.pytool/Plugin/HostUnitTestDscCompleteCheck/Readme.md b/roms/edk2/.pytool/Plugin/HostUnitTestDscCompleteCheck/Readme.md
new file mode 100644
index 000000000..d77a1f2af
--- /dev/null
+++ b/roms/edk2/.pytool/Plugin/HostUnitTestDscCompleteCheck/Readme.md
@@ -0,0 +1,32 @@
+# Host Unit Test Dsc Complete Check Plugin
+
+This CiBuildPlugin scans all INF files from a package for those related to host
+based unit tests confirms they are listed in the unit test DSC file for the package.
+The test considers it an error if any INF meeting the requirements does not appear
+in the `Components` section of the unit test DSC. This is critical because
+much of the CI infrastructure assumes that modules will be listed in the DSC
+and compiled.
+
+This test will only require INFs in the following cases:
+
+1. When MODULE_TYPE = HOST_APPLICATION
+2. When a Library instance supports the HOST_APPLICATION environment
+
+## Configuration
+
+The plugin has a few configuration options to support the UEFI codebase.
+
+``` yaml
+"HostUnitTestDscCompleteCheck": {
+ "DscPath": "", # Path to Host based unit test DSC file
+ "IgnoreInf": [] # Ignore INF if found in filesystem but not dsc
+}
+```
+
+### DscPath
+
+Path to DSC to consider platform dsc
+
+### IgnoreInf
+
+Ignore error if Inf file is not listed in DSC file