[WIP] vmgstool copy-igvmfile integration tests#3781
Conversation
There was a problem hiding this comment.
Copilot encountered an error: Your billing is not configured or you have Copilot licenses from multiple standalone organizations or enterprises. To use premium requests, select a billing entity via the GitHub site, under Settings > Copilot > Features.
@microsoft-github-policy-service agree company="Microsoft" |
| /// Tests for `vmgstool copy-igvmfile` and the load-IGVM-from-VMGS flow. | ||
| mod copy_igvmfile; |
| Additionally, the VmgsTool contains a tool to read the IGVMfile from a DLL (passed in as a data file) | ||
| and write it to VMGS FileId 8 (GUEST_FIRMWARE). To do this pass one of five resource codes | ||
| (NONCONFIDENTIAL, SNP, TDX, SNP_NO_HCL, TDX_NO_HCL) into the cmdline tool: | ||
|
|
||
| `vmgstool.exe test copy-igvmfile --filepath <vmgs file path> --datapath <dll path> --resource-code <code>` | ||
| `vmgstool.exe copy-igvmfile --filepath <vmgs file path> --datapath <dll path> --resource-code <code>` |
Summary
Adds integration test coverage for
vmgstool copy-igvmfileand theload-IGVM-from-VMGS boot flow, plus a unit test for the IGVM size guard.
What this does
copy_igvmfile_load_from_vmgstest modified to boot as anisolated SNP CVM.
copy_igvmfile_overwritecopy_igvmfile_corrupt_dllcopy_igvmfile_missing_data_pathcopy_igvmfile_missing_resourcevmgstoolunit testread_igvmfile_rejects_oversized_resource.Testing
Open items (draft)
copy_igvmfile_load_from_vmgson SNP-capable CI