Skip to content

Clean up test cases regarding sizeof(OBJECT)#564

Merged
stefanberger merged 2 commits intomasterfrom
master.next
Mar 5, 2026
Merged

Clean up test cases regarding sizeof(OBJECT)#564
stefanberger merged 2 commits intomasterfrom
master.next

Conversation

@stefanberger
Copy link
Copy Markdown
Owner

@stefanberger stefanberger commented Mar 5, 2026

Remove unnecessary tests regarding sizeof(OBJECT). The test is not necessary anymore since any OBJECT is written into NVRAM using marshalling. Also, add marshalling tests for SFLs 7 and 8 for RSA key OBJECT and check written sizes against expected sizes.

…rchs

OBJECTs are only written into NVRAM by using marshalling functions, which
should take the same number of bytes for the same OBJECT on all
architectures. So the increase of the size of an OBJECT is not a concern
anymore. Nevertheless, get 'notification' about the increase of the size
of OBJECTs on x86_64.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Extend the test with 2 more expected sizes for marhshalled RSA key
OBJECT for up to the current StateFormatLevel 8.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger merged commit 2c2d6bd into master Mar 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant