summaryrefslogtreecommitdiff
path: root/test-data/efivars-0
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-07-22 15:45:23 -0400
committerPeter Jones <pjones@redhat.com>2021-09-07 17:05:04 -0400
commit2c9eebcf6ddd198c5ba49d784c4536d05023c28b (patch)
tree2d719e8b49b3d5d0d2ac0e73cae6fa4eafb60dbb /test-data/efivars-0
parent5ed27307d4854e67cf999fd7785b48f5cf488a51 (diff)
downloadefi-boot-shim-2c9eebcf6ddd198c5ba49d784c4536d05023c28b.tar.gz
efi-boot-shim-2c9eebcf6ddd198c5ba49d784c4536d05023c28b.zip
tests: add a mock implementation of {Get,Set}Variable and tests for it
Some tests will need variables, and so we need a mock implementation of the various calls relating to them. This patch adds implementations for the EFI Runtime Services calls GetVariable(), SetVariable(), GetNextVariableName(), and QueryVariableInfo(). Additionally, it enforces tunable limits on storage for variables, and (with only a little work) the limits can be different for SetVariable() vs what is returned by QueryVariableInfo(). That is, it can lie to you like real systems do. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'test-data/efivars-0')
-rw-r--r--test-data/efivars-0/AMD_PBS_SETUP-a339d746-f678-49b3-9fc7-54ce0f9df226bin0 -> 132 bytes
-rw-r--r--test-data/efivars-0/AMD_RAID-fe26a894-d199-47d4-8afa-070e3d54ba86bin0 -> 12 bytes
-rw-r--r--test-data/efivars-0/AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265ebin0 -> 28 bytes
-rw-r--r--test-data/efivars-0/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8cbin0 -> 122 bytes
-rw-r--r--test-data/efivars-0/db-d719b2cb-3d3a-4596-a3bc-dad00e67656fbin0 -> 7421 bytes
-rw-r--r--test-data/efivars-0/dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8cbin0 -> 6326 bytes
-rw-r--r--test-data/efivars-0/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656fbin0 -> 3728 bytes
-rw-r--r--test-data/efivars-0/dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8cbin0 -> 3728 bytes
8 files changed, 0 insertions, 0 deletions
diff --git a/test-data/efivars-0/AMD_PBS_SETUP-a339d746-f678-49b3-9fc7-54ce0f9df226 b/test-data/efivars-0/AMD_PBS_SETUP-a339d746-f678-49b3-9fc7-54ce0f9df226
new file mode 100644
index 00000000..3e375f03
--- /dev/null
+++ b/test-data/efivars-0/AMD_PBS_SETUP-a339d746-f678-49b3-9fc7-54ce0f9df226
Binary files differ
diff --git a/test-data/efivars-0/AMD_RAID-fe26a894-d199-47d4-8afa-070e3d54ba86 b/test-data/efivars-0/AMD_RAID-fe26a894-d199-47d4-8afa-070e3d54ba86
new file mode 100644
index 00000000..ad58e851
--- /dev/null
+++ b/test-data/efivars-0/AMD_RAID-fe26a894-d199-47d4-8afa-070e3d54ba86
Binary files differ
diff --git a/test-data/efivars-0/AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e b/test-data/efivars-0/AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e
new file mode 100644
index 00000000..480c8c8d
--- /dev/null
+++ b/test-data/efivars-0/AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e
Binary files differ
diff --git a/test-data/efivars-0/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c b/test-data/efivars-0/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c
new file mode 100644
index 00000000..1bebe830
--- /dev/null
+++ b/test-data/efivars-0/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c
Binary files differ
diff --git a/test-data/efivars-0/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f b/test-data/efivars-0/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f
new file mode 100644
index 00000000..794e2236
--- /dev/null
+++ b/test-data/efivars-0/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f
Binary files differ
diff --git a/test-data/efivars-0/dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c b/test-data/efivars-0/dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
new file mode 100644
index 00000000..caa92886
--- /dev/null
+++ b/test-data/efivars-0/dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
Binary files differ
diff --git a/test-data/efivars-0/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f b/test-data/efivars-0/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f
new file mode 100644
index 00000000..7fe70233
--- /dev/null
+++ b/test-data/efivars-0/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f
Binary files differ
diff --git a/test-data/efivars-0/dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c b/test-data/efivars-0/dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
new file mode 100644
index 00000000..b747b47c
--- /dev/null
+++ b/test-data/efivars-0/dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
Binary files differ