diff options
author | Daniel Veillard <veillard@redhat.com> | 2006-11-10 11:13:01 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2006-11-10 11:13:01 +0000 |
commit | 28a60cbcdb12c9c21ed6b486db18078bc28a2559 (patch) | |
tree | a0e930d5ad001b26812480991f332f0406f289d4 /tests/xml2sexprdata | |
parent | 3869766df987fae741cecf6359a9802a26a6cc87 (diff) | |
download | libvirt-28a60cbcdb12c9c21ed6b486db18078bc28a2559.tar.gz |
* src/xend_internal.c src/xml.c: add an extra element currentMemory
to the XML description and handle its serialization back and
forth between XML and S-Expr
* tests/sexpr2xmltest.c tests/xml2sexprtest.c
tests/sexpr2xmldata/sexpr2xml-curmem.*
tests/xml2sexprdata/xml2sexpr-curmem.*: added specific regression
tests for this, this didn't disturb any of the other tests.
Daniel
Diffstat (limited to 'tests/xml2sexprdata')
-rw-r--r-- | tests/xml2sexprdata/xml2sexpr-curmem.sexpr | 1 | ||||
-rw-r--r-- | tests/xml2sexprdata/xml2sexpr-curmem.xml | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/xml2sexprdata/xml2sexpr-curmem.sexpr b/tests/xml2sexprdata/xml2sexpr-curmem.sexpr new file mode 100644 index 0000000000..1ad4a784f5 --- /dev/null +++ b/tests/xml2sexprdata/xml2sexpr-curmem.sexpr @@ -0,0 +1 @@ +(vm (name 'rhel5')(memory 175)(maxmem 385)(vcpus 1)(uuid '4f77abd2301958e83bab6fbf2118f880')(bootloader '/usr/bin/pygrub')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (linux (kernel '/var/lib/xen/vmlinuz.blj7cs')(ramdisk '/var/lib/xen/initrd.gULTf1')(args 'ro root=/dev/VolGroup00/LogVol00 rhgb quiet')(vnc 1)(vncdisplay 5)))(device (tap (dev 'xvda:disk')(uname 'tap:aio:/xen/rhel5.img')(mode 'w')))(device (vif (mac '00:16:3e:1d:06:15')(bridge 'xenbr0')(script 'vif-bridge'))))
\ No newline at end of file diff --git a/tests/xml2sexprdata/xml2sexpr-curmem.xml b/tests/xml2sexprdata/xml2sexpr-curmem.xml new file mode 100644 index 0000000000..55d49d32eb --- /dev/null +++ b/tests/xml2sexprdata/xml2sexpr-curmem.xml @@ -0,0 +1,30 @@ +<domain type='xen' id='5'> + <name>rhel5</name> + <uuid>4f77abd2301958e83bab6fbf2118f880</uuid> + <bootloader>/usr/bin/pygrub</bootloader> + <os> + <type>linux</type> + <kernel>/var/lib/xen/vmlinuz.blj7cs</kernel> + <initrd>/var/lib/xen/initrd.gULTf1</initrd> + <cmdline>ro root=/dev/VolGroup00/LogVol00 rhgb quiet</cmdline> + </os> + <memory>394240</memory> + <currentMemory>179200</currentMemory> + <vcpu>1</vcpu> + <on_poweroff>destroy</on_poweroff> + <on_reboot>restart</on_reboot> + <on_crash>restart</on_crash> + <devices> + <interface type='bridge'> + <source bridge='xenbr0'/> + <mac address='00:16:3e:1d:06:15'/> + <script path='vif-bridge'/> + </interface> + <disk type='file' device='disk'> + <driver name='tap' type='aio'/> + <source file='/xen/rhel5.img'/> + <target dev='xvda:disk'/> + </disk> + <graphics type='vnc' port='5905'/> + </devices> +</domain> |