summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2024-04-25 08:18:20 +0300
committerHeinrich Schuchardt <[email protected]>2024-05-01 08:39:16 +0200
commit6b2aaf8d031a364ea35b3e4e89a55ac9a7c5dc01 (patch)
treeba8b0ba40d8b0b1827b83d440c6a8989ab4e09f6 /include
parent9677192c145f2144592892f13de0e2069bcdf4ba (diff)
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 <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/efi_selftest.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/efi_selftest.h b/include/efi_selftest.h
index 5bcebb36828..1b708849bcb 100644
--- a/include/efi_selftest.h
+++ b/include/efi_selftest.h
@@ -148,6 +148,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
*
* The &struct efi_unit_test structure provides a interface to an EFI unit test.