aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2007-11-20 10:05:45 +0000
committerDaniel Veillard <veillard@redhat.com>2007-11-20 10:05:45 +0000
commitef4006b3a57108c8622b46ffddf350ef2fad7149 (patch)
treeae2bdded0bc928b52bbc601c9834a50edee84234 /tests/xml2sexprdata
parentRe-add quotes around top_srcdir/top_builddir (diff)
downloadlibvirt-ef4006b3a57108c8622b46ffddf350ef2fad7149.tar.gz
libvirt-ef4006b3a57108c8622b46ffddf350ef2fad7149.tar.bz2
libvirt-ef4006b3a57108c8622b46ffddf350ef2fad7149.zip
* tests/sexpr2xmltest.c tests/xml2sexprtest.c: warn before exiting
if the path environment variable is missing, add the tests for <shareable/> from/to w! ode for disk * tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.sexpr tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.xml tests/xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr tests/xml2sexprdata/xml2sexpr-disk-block-shareable.xml: the new tests data Daniel
Diffstat (limited to 'tests/xml2sexprdata')
-rw-r--r--tests/xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr1
-rw-r--r--tests/xml2sexprdata/xml2sexpr-disk-block-shareable.xml33
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr b/tests/xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr
new file mode 100644
index 000000000..5e91e220c
--- /dev/null
+++ b/tests/xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr
@@ -0,0 +1 @@
+(vm (name 'pvtest')(memory 384)(maxmem 512)(vcpus 1)(uuid '49a0c6ffc066539264983632d093c2e7')(bootloader '/usr/bin/pygrub')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(device (tap (dev 'xvda')(uname 'tap:aio:/var/lib/xen/images/rhel5pv.img')(mode 'w!')))(device (vif (mac '00:16:3e:23:9e:eb')(bridge 'xenbr0')(script 'vif-bridge')))) \ No newline at end of file
diff --git a/tests/xml2sexprdata/xml2sexpr-disk-block-shareable.xml b/tests/xml2sexprdata/xml2sexpr-disk-block-shareable.xml
new file mode 100644
index 000000000..1c996c236
--- /dev/null
+++ b/tests/xml2sexprdata/xml2sexpr-disk-block-shareable.xml
@@ -0,0 +1,33 @@
+<domain type='xen'>
+ <name>pvtest</name>
+ <uuid>49a0c6ffc066539264983632d093c2e7</uuid>
+ <bootloader>/usr/bin/pygrub</bootloader>
+ <os>
+ <type>linux</type>
+ <kernel>/var/lib/xen/boot_kernel.BCkYBN</kernel>
+ <initrd>/var/lib/xen/boot_ramdisk.sjOK9_</initrd>
+ <cmdline>ro root=/dev/VolGroup00/LogVol00</cmdline>
+ </os>
+ <currentMemory>393216</currentMemory>
+ <memory>524288</memory>
+ <vcpu>1</vcpu>
+ <on_poweroff>destroy</on_poweroff>
+ <on_reboot>restart</on_reboot>
+ <on_crash>restart</on_crash>
+ <devices>
+ <disk type='file' device='disk'>
+ <driver name='tap' type='aio'/>
+ <source file='/var/lib/xen/images/rhel5pv.img'/>
+ <target dev='xvda'/>
+ <shareable/>
+ </disk>
+ <interface type='bridge'>
+ <mac address='00:16:3e:23:9e:eb'/>
+ <source bridge='xenbr0'/>
+ <script path='vif-bridge'/>
+ </interface>
+ <graphics type='vnc' port='-1' keymap='en-us'/>
+ <console/>
+ </devices>
+</domain>
+