efi_selftest: add tests for QueryVariableInfo at runtime

Since we support QueryVariableInfo at runtime now add the relevant
tests. Since we want those to be reusable at bootime, add them
in a separate file

Add tests for
- Test QueryVariableInfo returns EFI_SUCCESS
- Test null pointers for the function arguments
- Test invalid combination of attributes

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
Ilias Apalodimas
2024-04-25 08:18:20 +03:00
committed by Heinrich Schuchardt
parent 9677192c14
commit 6b2aaf8d03
4 changed files with 118 additions and 4 deletions

View File

@@ -147,6 +147,17 @@ void *efi_st_get_config_table(const efi_guid_t *guid);
*/
u16 efi_st_get_key(void);
/**
* efi_st_query_variable_common - Common variable tests for boottime/runtime
*
* @runtime: Pointer to services table
* @attributes: Attributes used
*
* Return: EFI_ST_SUCCESS/FAILURE
*/
int efi_st_query_variable_common(struct efi_runtime_services *runtime,
u32 attributes);
/**
* struct efi_unit_test - EFI unit test
*