Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> --- test/restore-config-expected/110.conf | 16 ++++++++++++++++ test/restore-config-input/110.conf | 18 ++++++++++++++++++ test/run_qemu_restore_config_tests.pl | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 test/restore-config-expected/110.conf create mode 100644 test/restore-config-input/110.conf
diff --git a/test/restore-config-expected/110.conf b/test/restore-config-expected/110.conf new file mode 100644 index 00000000..fcbeaa5c --- /dev/null +++ b/test/restore-config-expected/110.conf @@ -0,0 +1,16 @@ +# drives with absolute paths +boot: order=scsi0;ide2;net0 +cores: 1 +cpu: x86-64-v2-AES +ide2: none,media=cdrom +memory: 2048 +meta: creation-qemu=9.0.2,ctime=1726234504 +net0: virtio=BC:24:11:B1:BF:4B,bridge=vmbr0,firewall=1 +numa: 0 +ostype: l26 +scsi0: target:110/vm-110-disk-0.raw,aio=io_uring,iothread=1,size=1G +scsi2: target:110/vm-110-disk-1.raw,size=1G +#scsi3: /dev/sdj,backup=0,size=1G +scsihw: virtio-scsi-single +smbios1: uuid=ebc66780-e174-4abc-8860-afaaeab758d4 +sockets: 1 diff --git a/test/restore-config-input/110.conf b/test/restore-config-input/110.conf new file mode 100644 index 00000000..8c122fe6 --- /dev/null +++ b/test/restore-config-input/110.conf @@ -0,0 +1,18 @@ +# drives with absolute paths +boot: order=scsi0;ide2;net0 +cores: 1 +cpu: x86-64-v2-AES +ide2: none,media=cdrom +memory: 2048 +meta: creation-qemu=9.0.2,ctime=1726234504 +net0: virtio=BC:24:11:B1:BF:4B,bridge=vmbr0,firewall=1 +numa: 0 +ostype: l26 +scsi0: zfs:vm-110-disk-0,aio=io_uring,iothread=1,size=1G +scsi2: /dev/sdm,size=1G +scsi3: /dev/sdj,backup=0,size=1G +scsihw: virtio-scsi-single +smbios1: uuid=ebc66780-e174-4abc-8860-afaaeab758d4 +sockets: 1 +#qmdump#map:scsi0:drive-scsi0:zfs:raw: +#qmdump#map:scsi2:drive-scsi2::raw: diff --git a/test/run_qemu_restore_config_tests.pl b/test/run_qemu_restore_config_tests.pl index 245258c8..f2d220fc 100755 --- a/test/run_qemu_restore_config_tests.pl +++ b/test/run_qemu_restore_config_tests.pl @@ -25,7 +25,7 @@ $pve_cluster_module->mock( ); # NOTE update when you add/remove tests -plan tests => 5; +plan tests => 6; my $cfs_mock = Test::MockModule->new("PVE::Cluster"); $cfs_mock->mock( -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel