libvirt/tests
Eric Blake c052d8a89f seclabel: make code and RNG match
Commit b170eb99 introduced a bug: domains that had an explicit
<seclabel type='none'/> when started would not be reparsed if
libvirtd restarted.  It turns out that our testsuite was not
exercising this because it never tried anything but inactive
parsing.  Additionally, the live XML for such a domain failed
to re-validate.  Applying just the tests/ portion of this patch
will expose the bugs that are fixed by the other two files.

* docs/schemas/domaincommon.rng (seclabel): Allow relabel under
type='none'.
* src/conf/domain_conf.c (virSecurityLabelDefParseXML): Per RNG,
presence of <seclabel> with no type implies dynamic.  Don't
require sub-elements for type='none'.
* tests/qemuxml2xmltest.c (mymain): Add test.
* tests/qemuxml2argvtest.c (mymain): Likewise.
* tests/qemuxml2argvdata/qemuxml2argv-seclabel-none.xml: Add file.
* tests/qemuxml2argvdata/qemuxml2argv-seclabel-none.args: Add file.
Reported by Ansis Atteka.
2012-02-06 12:04:33 -07:00
..
capabilityschemadata
commanddata command: handle empty buffer argument correctly 2011-12-03 15:55:46 -07:00
confdata
cputestdata x86: add kvm32 and kvm64, update qemu64 2012-01-27 16:51:49 +01:00
domainschemadata xml: Add element <title> to allow short description of domains 2012-02-01 14:41:13 -07:00
domainsnapshotxml2xmlin snapshot: also support disks by path 2011-09-05 07:03:04 -06:00
domainsnapshotxml2xmlout metadata: group metadata next to description 2012-01-24 17:40:23 -07:00
interfaceschemadata
networkxml2argvdata tests: dynamically replace dnsmasq path 2012-02-01 17:02:45 -07:00
networkxml2xmlin Adding the element pf to network xml. 2012-01-11 13:10:21 -07:00
networkxml2xmlout Adding the element pf to network xml. 2012-01-11 13:10:21 -07:00
nodedevschemadata nodedev: Add removable storage 'media_label' prop 2009-12-14 14:58:23 +01:00
nodeinfodata Modify the tests/nodeinfotest.c to use sysfs in addition 2011-12-08 08:39:26 -05:00
nwfilterxml2xmlin Add test cases for new ways to access variables in filters 2012-01-11 06:42:37 -05:00
nwfilterxml2xmlout Add test cases for new ways to access variables in filters 2012-01-11 06:42:37 -05:00
qemuhelpdata Add support for QEMU 1.0 2011-12-05 13:02:54 +01:00
qemuxml2argvdata seclabel: make code and RNG match 2012-02-06 12:04:33 -07:00
qemuxml2xmloutdata metadata: group metadata next to description 2012-01-24 17:40:23 -07:00
qemuxmlnsdata qemu: Test name-space handling 2011-10-19 07:59:59 -06:00
sexpr2xmldata xen_xs: Guard against set but empty kernel argument 2011-10-10 22:58:04 +02:00
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolxml2xmlin
storagevolxml2xmlout tests: Add storage volume XML 2 XML tests. 2009-10-16 10:52:27 -04:00
vmx2xmldata esx: Fix regression in absolute file name handling 2011-05-26 23:32:44 +02:00
xencapsdata Add suspend info to Xen, LXC and UML hypervisor capabilities 2011-11-30 10:12:30 +00:00
xmconfigdata conf: add <listen> subelement to domain <graphics> element 2011-07-28 13:46:39 -04:00
xml2sexprdata
xml2vmxdata
.valgrind.supp
capabilityschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
commandhelper.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
commandtest.c command: allow merging stdout and stderr in string capture 2012-02-03 10:02:34 -07:00
conftest.c
cpuset
cputest.c tests: Fix build with -Werror 2012-02-06 09:35:47 +01:00
daemon-conf
define-dev-segfault
domainschematest
domainsnapshotschematest
domainsnapshotxml2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
esxutilstest.c build: properly skip tests 2011-12-01 13:49:20 -07:00
eventtest.c
int-overflow
interfaceschematest
interfacexml2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
jsontest.c
libvirtd-fail
libvirtd-pool
Makefile.am build: clean up CPPFLAGS/INCLUDES usage 2012-02-03 10:36:02 -07:00
networkschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
networkxml2argvtest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
networkxml2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
nodedevschematest
nodedevxml2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
nodeinfotest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
nwfilterschematest
nwfilterxml2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
object-locking.ml
oomtrace.pl
openvzutilstest.c build: properly skip tests 2011-12-01 13:49:20 -07:00
openvzutilstest.conf
pkix_asn1_tab.c
qemuargv2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
qemuhelptest.c qemu: require qmp on new enough qemu 2012-01-27 08:45:50 -07:00
qemuxml2argvtest.c seclabel: make code and RNG match 2012-02-06 12:04:33 -07:00
qemuxml2xmltest.c seclabel: make code and RNG match 2012-02-06 12:04:33 -07:00
qemuxmlnstest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
qparamtest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
read-bufsiz
read-non-seekable
reconnect.c tests: avoid xend ABRT crash report 2011-11-18 15:00:18 -07:00
schematestutils.sh tests: fix schema checks sorting 2011-12-22 13:01:09 -07:00
seclabeltest.c Add two new security label types 2012-02-02 17:44:37 -07:00
sexpr2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
shunloadhelper.c Prevent crash from dlclose() of libvirt.so 2011-09-16 15:51:31 -06:00
shunloadtest.c build: properly skip tests 2011-12-01 13:49:20 -07:00
sockettest.c Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
ssh.c
start
statstest.c tests: avoid xend ABRT crash report 2011-11-18 15:00:18 -07:00
storagepoolschematest
storagepoolxml2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
storagevolschematest
storagevolxml2xmltest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
test_conf.sh Make test suite output less verbose 2010-01-15 16:28:05 +00:00
test-lib.sh
testutils.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
testutils.h build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
testutilsqemu.c Add support for cpu mode attribute 2012-01-17 11:39:23 +01:00
testutilsqemu.h
testutilsxen.c Fix default console type setting 2011-11-03 12:01:48 +00:00
testutilsxen.h
undefine
utiltest.c
vcpupin
virbuftest.c virbuf: add auto-indentation support 2011-10-20 16:02:16 -06:00
virhashdata.h Rename hash.h and hash.c to virhash.h and virhash.c 2012-01-26 14:11:13 +00:00
virhashtest.c Rename hash.h and hash.c to virhash.h and virhash.c 2012-01-26 14:11:13 +00:00
virnetmessagetest.c
virnetsockettest.c Santize naming of socket address APIs 2011-11-09 17:10:23 +00:00
virnettlscontexttest.c tests: virnettlscontexttest needs gnutls-2.6.0 2012-02-01 16:36:13 -07:00
virsh-all
virsh-optparse build: update to latest gnulib 2011-12-01 14:12:59 -07:00
virsh-schedinfo build: update to latest gnulib 2011-12-01 14:12:59 -07:00
virsh-synopsis tests: use GPLv2+, not GPLv3 2010-05-12 08:41:10 +02:00
virshtest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
virt-aa-helper-test fix AppArmor driver for pipe character devices 2011-09-28 15:43:39 +08:00
virtimetest.c Add internal APIs for dealing with time 2011-11-30 11:43:49 +00:00
vmx2xmltest.c build: properly skip tests 2011-12-01 13:49:20 -07:00
xencapstest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
xmconfigtest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
xml2sexprtest.c build: expand rule to cover testsuite 2012-02-03 10:41:46 -07:00
xml2vmxtest.c build: properly skip tests 2011-12-01 13:49:20 -07:00