26 Commits

Author SHA1 Message Date
Nathaniel Mitchell c35e42a6c0 Extend xml validator script to check for invisible characters (#2747)
* Extend xml validator script to check for invisible characters
* Extend cfg_checker to walk subdirs
* Fix iommu IRTA register size
2026-05-26 15:15:26 -07:00
Copilot 7747d45498 Fix: uefi decode returns success when no EFI firmware volumes are found (#2704)
* Initial plan
* Fix: Return error exit code when uefi decode fails to parse EFI firmware
* style: use f-string in uefi_cmd.py decode error message
* fix: correct NVRAM detection and add unit tests for uefi decode failure paths
* style: use f-string in decode() missing-file error log
* style: use f-string for EFI volumes log message in decode()
* fix: replace mutable default List[] with Optional[List] = None in spi.py
* Update uefi_cmd.py
* Correct logging output
* Update exception logging
* Typo fix
* Non-fixed temp directory name
* Correct return value logic

---------

Co-authored-by: dscott90 <dan.scott@intel.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-17 14:21:19 -07:00
Nathaniel Mitchell 17769c2b37 Update test content to pass unit tests for iommu changes
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 13:31:48 -08:00
Nathaniel Mitchell 772caed91c Fix txt unit test by updating json
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell 14bda6657d Update iommu unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Nathaniel Mitchell 088a2ca69c Fixup spi HAL and additional unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-11 20:45:54 -07:00
Nathaniel Mitchell 947f67a6e1 Fix acpi tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-11 20:45:54 -07:00
Nathaniel Mitchell 4b65243d9c Fix more unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-10 09:06:35 -07:00
Nathaniel Mitchell d5345ad8c1 mmio update, unit tests, additional fixes
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-04 22:15:21 -08:00
Nathaniel Mitchell 29d1a2a364 Update to hals
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-04 22:15:21 -08:00
Nathaniel Mitchell 831841ff1a Update some of the unit tests to run
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-25 11:01:06 -08:00
Nathaniel Mitchell 0b07dcd9b6 Update haldata and msr hal/cmd/tests
Change haldata to use cpuid mfgstr
Update MSR hal/cmd/tests

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-18 13:19:38 -08:00
Nathaniel Mitchell 3b33e590ed Add cpuid enumeration data to util test recording
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-18 12:53:30 -08:00
Nathaniel Mitchell a032f04630 Update haldata and msr hal/cmd/tests
Change haldata to use cpuid mfgstr
Update MSR hal/cmd/tests

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-18 12:53:25 -08:00
Dan Scott e3b2ccccdd Add utilcmd unit tests
Remove last remaining python 3.7 reference.

Signed-off-by: Dan Scott <dan.scott@intel.com>
2025-02-18 10:37:07 -08:00
Dan Scott 9095a9bb59 Add unit tests for acpi_tables.py
Signed-off-by: Dan Scott <dan.scott@intel.com>
2024-10-30 12:54:57 -07:00
Nathaniel Mitchell 0fd651aad8 Add test data to txt_cmd json for ut
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-09-25 17:08:04 -07:00
Sara Batllori c71090acff WIP: Add unit tests for igd, interrupts, io, iommu utilcmds
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2024-09-25 09:01:56 -07:00
Nathaniel Mitchell 6e43a6edae Fix record/replay helpers to capture exceptions
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-08-26 16:38:52 -07:00
Nathaniel Mitchell 39cf4bb620 Add UTs for ec_cmd and config_cmd
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-05-28 16:42:16 -07:00
Sae86 4a7afd23cb Add unit testing for msr_cmd, mmcfg_cmd, mmcfg_base_cmd, desc_cmd and cpu_cmd
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-03-28 11:06:56 -07:00
Dan Scott 0e8192cfd0 Move files to library folder 2024-03-22 14:26:59 -07:00
Sae86 6adf3dfae0 Add unit tests for acpi_cmd, chipset_cmd, cmos_cmd
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-12-11 13:35:11 -08:00
Nathaniel Mitchell 0e44e6ae19 Remove mistakenly added log filters from tgl tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-11-20 16:37:42 -08:00
Nathaniel Mitchell a198b99b41 Add _logger.disable() to tests to reduce prints
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-11-09 16:17:50 -08:00
Sae86 c282cd9e2c Add tpm_cmd and txt_cmd unit testing
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-10-26 08:42:24 -07:00