Re: [PATCH v4 12/13] Add unit tests for new specification of nvram.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Friday in 2022, Peter Krempa wrote:
From: Rohit Kumar <rohit.kumar3@xxxxxxxxxxx>

This patch adds unit tests for remote NVRAM.

Examples:

<nvram type='network'>
 <source protocol='iscsi' name='iqn.2013-07.com.example:iscsi-nopool/0'>
   <host name='example.com' port='6000'/>
   <auth username='myname'>
     <secret type='iscsi' usage='mycluster_myname'/>
   </auth>
 </source>
</nvram>

and

<nvram type='network'>
 <source protocol='nbd' name='bar'>
   <host name='example.org' port='6000'/>
 </source>
</nvram>

and

<nvram type='file'>
 <source file='/var/lib/libvirt/nvram/guest_VARS.fd'/>
</nvram>

Signed-off-by: Prerna Saxena <prerna.saxena@xxxxxxxxxxx>
Signed-off-by: Florian Schmidt <flosch@xxxxxxxxxxx>
Signed-off-by: Rohit Kumar <rohit.kumar3@xxxxxxxxxxx>
---
.../bios-nvram-file.x86_64-latest.args        | 37 ++++++++++++++++
tests/qemuxml2argvdata/bios-nvram-file.xml    | 23 ++++++++++
.../bios-nvram-network-iscsi.x86_64-4.1.0.err |  1 +
...ios-nvram-network-iscsi.x86_64-latest.args | 38 ++++++++++++++++
.../bios-nvram-network-iscsi.xml              | 31 +++++++++++++
.../bios-nvram-network-nbd.x86_64-latest.args | 37 ++++++++++++++++
.../bios-nvram-network-nbd.xml                | 28 ++++++++++++
tests/qemuxml2argvtest.c                      |  4 ++
.../bios-nvram-file.x86_64-latest.xml         | 39 ++++++++++++++++
...bios-nvram-network-iscsi.x86_64-latest.xml | 44 +++++++++++++++++++
.../bios-nvram-network-nbd.x86_64-latest.xml  | 41 +++++++++++++++++
tests/qemuxml2xmltest.c                       |  3 ++
12 files changed, 326 insertions(+)
create mode 100644 tests/qemuxml2argvdata/bios-nvram-file.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/bios-nvram-file.xml
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-iscsi.x86_64-4.1.0.err
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-iscsi.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-iscsi.xml
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-nbd.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-nbd.xml
create mode 100644 tests/qemuxml2xmloutdata/bios-nvram-file.x86_64-latest.xml
create mode 100644 tests/qemuxml2xmloutdata/bios-nvram-network-iscsi.x86_64-latest.xml
create mode 100644 tests/qemuxml2xmloutdata/bios-nvram-network-nbd.x86_64-latest.xml


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux