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

Ján Tomko jtomko at redhat.com
Fri Jun 3 15:00:37 UTC 2022


On a Friday in 2022, Peter Krempa wrote:
>From: Rohit Kumar <rohit.kumar3 at nutanix.com>
>
>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 at nutanix.com>
>Signed-off-by: Florian Schmidt <flosch at nutanix.com>
>Signed-off-by: Rohit Kumar <rohit.kumar3 at nutanix.com>
>---
> .../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 at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220603/05060f5f/attachment.sig>


More information about the libvir-list mailing list