mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Validate the bios_date format for <sysinfo>
Add incorrectly formatted bios_date validation test
This commit is contained in:
23
tests/qemuxml2argvdata/qemuxml2argv-smbios-date.xml
Normal file
23
tests/qemuxml2argvdata/qemuxml2argv-smbios-date.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<domain type='qemu'>
|
||||
<name>smbios</name>
|
||||
<uuid>362d1fc1-df7d-193e-5c18-49a71bd1da66</uuid>
|
||||
<memory unit='KiB'>1048576</memory>
|
||||
<currentMemory unit='KiB'>1048576</currentMemory>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type arch='i686' machine='pc'>hvm</type>
|
||||
<smbios mode="sysinfo"/>
|
||||
</os>
|
||||
<sysinfo type="smbios">
|
||||
<bios>
|
||||
<entry name="date">999/999/123</entry>
|
||||
</bios>
|
||||
</sysinfo>
|
||||
<clock offset='utc'/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu</emulator>
|
||||
</devices>
|
||||
</domain>
|
||||
@@ -825,6 +825,7 @@ mymain(void)
|
||||
|
||||
|
||||
DO_TEST("smbios", QEMU_CAPS_SMBIOS_TYPE);
|
||||
DO_TEST_PARSE_ERROR("smbios-date", QEMU_CAPS_SMBIOS_TYPE);
|
||||
|
||||
DO_TEST("watchdog", NONE);
|
||||
DO_TEST("watchdog-device", QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG);
|
||||
|
||||
Reference in New Issue
Block a user