diff options
| author | Peter Jones <pjones@redhat.com> | 2021-07-22 15:45:23 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-09-07 17:05:04 -0400 |
| commit | 2c9eebcf6ddd198c5ba49d784c4536d05023c28b (patch) | |
| tree | 2d719e8b49b3d5d0d2ac0e73cae6fa4eafb60dbb /test-data/efivars-0 | |
| parent | 5ed27307d4854e67cf999fd7785b48f5cf488a51 (diff) | |
| download | efi-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-54ce0f9df226 | bin | 0 -> 132 bytes |
| -rw-r--r-- | test-data/efivars-0/AMD_RAID-fe26a894-d199-47d4-8afa-070e3d54ba86 | bin | 0 -> 12 bytes |
| -rw-r--r-- | test-data/efivars-0/AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e | bin | 0 -> 28 bytes |
| -rw-r--r-- | test-data/efivars-0/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c | bin | 0 -> 122 bytes |
| -rw-r--r-- | test-data/efivars-0/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f | bin | 0 -> 7421 bytes |
| -rw-r--r-- | test-data/efivars-0/dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c | bin | 0 -> 6326 bytes |
| -rw-r--r-- | test-data/efivars-0/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f | bin | 0 -> 3728 bytes |
| -rw-r--r-- | test-data/efivars-0/dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c | bin | 0 -> 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 Binary files differnew file mode 100644 index 00000000..3e375f03 --- /dev/null +++ b/test-data/efivars-0/AMD_PBS_SETUP-a339d746-f678-49b3-9fc7-54ce0f9df226 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 Binary files differnew file mode 100644 index 00000000..ad58e851 --- /dev/null +++ b/test-data/efivars-0/AMD_RAID-fe26a894-d199-47d4-8afa-070e3d54ba86 diff --git a/test-data/efivars-0/AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e b/test-data/efivars-0/AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e Binary files differnew file mode 100644 index 00000000..480c8c8d --- /dev/null +++ b/test-data/efivars-0/AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e diff --git a/test-data/efivars-0/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c b/test-data/efivars-0/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c Binary files differnew file mode 100644 index 00000000..1bebe830 --- /dev/null +++ b/test-data/efivars-0/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c diff --git a/test-data/efivars-0/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f b/test-data/efivars-0/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f Binary files differnew file mode 100644 index 00000000..794e2236 --- /dev/null +++ b/test-data/efivars-0/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f diff --git a/test-data/efivars-0/dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c b/test-data/efivars-0/dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c Binary files differnew file mode 100644 index 00000000..caa92886 --- /dev/null +++ b/test-data/efivars-0/dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c diff --git a/test-data/efivars-0/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f b/test-data/efivars-0/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f Binary files differnew file mode 100644 index 00000000..7fe70233 --- /dev/null +++ b/test-data/efivars-0/dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f diff --git a/test-data/efivars-0/dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c b/test-data/efivars-0/dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c Binary files differnew file mode 100644 index 00000000..b747b47c --- /dev/null +++ b/test-data/efivars-0/dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c |
