mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
Add nodedevxml2xml test
Add a test to check node device XML parsing by first parsing the XML, then re-formatting as XML and finally comparing the resulting XML to the original XML.
This commit is contained in:
parent
c4c5e9dbbb
commit
da61daa2e6
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
||||
Tue Feb 24 14:55:28 GMT 2009 Mark McLoughlin <markmc@redhat.com>
|
||||
|
||||
* tests/nodedevxml2xmltest.c: Add a test to check node
|
||||
device XML parsing by first parsing the XML, then
|
||||
re-formatting as XML and finally comparing the resulting
|
||||
XML to the original XML.
|
||||
|
||||
* tests/nodedevschemadata/*.xml: strip trailing newlines.
|
||||
|
||||
* tests/Makefile.am, tests/.*ignore: adminstrivia
|
||||
|
||||
Tue Feb 24 14:54:05 GMT 2009 Mark McLoughlin <markmc@redhat.com>
|
||||
|
||||
* src/libvirt_private.syms, src/node_device_conf.[ch]:
|
||||
|
@ -11,6 +11,7 @@ xmconfigtest
|
||||
xencapstest
|
||||
qemuxml2xmltest
|
||||
qemuxml2argvtest
|
||||
nodedevxml2xmltest
|
||||
nodeinfotest
|
||||
statstest
|
||||
qparamtest
|
||||
|
1
tests/.gitignore
vendored
1
tests/.gitignore
vendored
@ -11,6 +11,7 @@ xmconfigtest
|
||||
xencapstest
|
||||
qemuxml2xmltest
|
||||
qemuxml2argvtest
|
||||
nodedevxml2xmltest
|
||||
nodeinfotest
|
||||
statstest
|
||||
qparamtest
|
||||
|
@ -64,6 +64,8 @@ if WITH_QEMU
|
||||
noinst_PROGRAMS += qemuxml2argvtest qemuxml2xmltest
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS += nodedevxml2xmltest
|
||||
|
||||
test_scripts = \
|
||||
capabilityschematest \
|
||||
networkschematest \
|
||||
@ -110,6 +112,8 @@ if WITH_QEMU
|
||||
TESTS += qemuxml2argvtest qemuxml2xmltest
|
||||
endif
|
||||
|
||||
TESTS += nodedevxml2xmltest
|
||||
|
||||
path_add = $$abs_top_builddir/src$(PATH_SEPARATOR)$$abs_top_builddir/qemud
|
||||
|
||||
# NB, automake < 1.10 does not provide the real
|
||||
@ -175,6 +179,11 @@ else
|
||||
EXTRA_DIST += qemuxml2argvtest.c qemuxml2xmltest.c testutilsqemu.c testutilsqemu.h
|
||||
endif
|
||||
|
||||
nodedevxml2xmltest_SOURCES = \
|
||||
nodedevxml2xmltest.c \
|
||||
testutils.c testutils.h
|
||||
nodedevxml2xmltest_LDADD = ../src/libvirt_driver_qemu.la $(LDADDS)
|
||||
|
||||
virshtest_SOURCES = \
|
||||
virshtest.c \
|
||||
testutils.c testutils.h
|
||||
|
@ -13,5 +13,3 @@
|
||||
</capability>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -14,5 +14,3 @@
|
||||
</firmware>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -7,5 +7,3 @@
|
||||
<capability type='80211'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -7,5 +7,3 @@
|
||||
<capability type='80203'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -10,5 +10,3 @@
|
||||
<vendor id='0x1002'>ATI Technologies Inc</vendor>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -5,5 +5,3 @@
|
||||
<host>0</host>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -5,5 +5,3 @@
|
||||
<host>1</host>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -9,5 +9,3 @@
|
||||
<type>disk</type>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -5,5 +5,3 @@
|
||||
<host>0</host>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -10,5 +10,3 @@
|
||||
<size>100030242816</size>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -8,5 +8,3 @@
|
||||
<vendor id='0x1d6b'>Linux Foundation</vendor>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
@ -8,5 +8,3 @@
|
||||
<protocol>0</protocol>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user