libvirt/tests
Daniel P. Berrangé 06e6efe294 tests: rewrite file access checker in Python
As part of a goal to eliminate Perl from libvirt build tools,
rewrite the check-file-access.pl tool in Python.

This was a straight conversion, manually going line-by-line to
change the syntax from Perl to Python. Thus the overall structure
of the file and approach is the same.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-12-20 14:23:39 +00:00
..
bhyveargv2xmldata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
commanddata
cputestdata cpu: add CLZERO CPUID support for AMD platforms 2019-12-16 13:04:14 +01:00
domainbackupxml2xmlin backup: Document new XML for backups 2019-12-10 12:41:56 +01:00
domainbackupxml2xmlout tests: genericxml2xml: Add testing of backup XML files 2019-12-10 12:41:56 +01:00
domaincapsdata cpu: Add new Dhyana CPU model 2019-12-13 13:05:00 +00:00
domainconfdata
domainschemadata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
fchostdata/fc_host
genericxml2xmlindata conf: create memory bandwidth monitor. 2019-12-13 15:55:43 +00:00
genericxml2xmloutdata tests: fix typo in emulator arch name i686 -> i386 2019-12-13 17:52:10 +00:00
interfaceschemadata
libxlxml2domconfigdata
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata network: allow DHCP/DNS/TFTP explicitly in OUTPUT rules 2019-10-18 18:49:54 +01:00
networkxml2xmlin
networkxml2xmlout
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevschemadata
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemublocktestdata tests: qemublock: Add tests for cross-snapshot incremental backups 2019-12-13 13:22:55 +01:00
qemucapabilitiesdata test: qemucaps: Refresh x86_64 caps probe data for the qemu-4.2 release 2019-12-18 09:49:31 +01:00
qemucaps2xmloutdata conf: Refactor storage of guest capabilities 2019-11-13 08:16:04 +01:00
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemufirmwaredata
qemuhotplugtestcpus
qemuhotplugtestdevices
qemuhotplugtestdomains tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata
qemustatusxml2xmldata tests: add a domain ID to live status XML doc 2019-12-12 16:30:02 +00:00
qemuvhostuserdata
qemuxml2argvdata qemu: handle unassigned PCI hostdevs in command line 2019-12-18 13:08:28 -05:00
qemuxml2xmloutdata Introducing new address type='unassigned' for PCI hostdevs 2019-12-18 13:08:27 -05:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata storage: add vmfs filesystem type 2019-12-20 14:31:08 +01:00
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata vircgroupmock: mock virCgroupV2DevicesAvailable 2019-11-15 12:58:43 +01:00
virconfdata
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata virpcimock: Introduce NVMe driver and devices 2019-12-17 10:04:43 +01:00
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata
xlconfigdata
xmconfigdata
xml2vmxdata
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c conf: drop virCapsPtr param from domain formatting APIs 2019-12-09 10:17:27 +00:00
bhyvexml2argvmock.c conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
bhyvexml2argvtest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
bhyvexml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
commandhelper.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
commandtest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
cputest.c Remove redundant usage of WITH_YAJL 2019-12-13 14:57:32 +01:00
domaincapsmock.c
domaincapstest.c domaincapstest: Don't leak cpu definitions 2019-12-18 14:28:48 +01:00
domainconftest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
esxutilstest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
eventtest.c Use g_strdup_vprintf() instead of virVasprintf() everywhere 2019-11-12 16:15:59 +01:00
fchosttest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
fdstreamtest.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
file_access_whitelist.txt tests: rewrite file access checker in Python 2019-12-20 14:23:39 +00:00
genericxml2xmltest.c conf: create memory bandwidth monitor. 2019-12-13 15:55:43 +00:00
interfacexml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
libvirtd-fail
libvirtd-pool
libxlmock.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
libxlxml2domconfigtest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
lxcconf2xmltest.c conf: drop virCapsPtr param from domain formatting APIs 2019-12-09 10:17:27 +00:00
lxcxml2xmltest.c conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
Makefile.am tests: rewrite file access checker in Python 2019-12-20 14:23:39 +00:00
metadatatest.c
networkxml2conftest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
networkxml2firewalltest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
networkxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
networkxml2xmlupdatetest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
nodedevxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
nsslinktest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
nssmock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
nsstest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
nwfilterebiptablestest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
nwfilterxml2firewalltest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
nwfilterxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
objecteventtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
openvzutilstest.c tests: fix warning with old GCC about missing struct initializer 2019-12-09 14:46:13 +00:00
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c Remove redundant usage of WITH_YAJL 2019-12-13 14:57:32 +01:00
qemublocktest.c Remove redundant usage of WITH_YAJL 2019-12-13 14:57:32 +01:00
qemucapabilitiestest.c Remove redundant usage of WITH_YAJL 2019-12-13 14:57:32 +01:00
qemucaps2xmlmock.c
qemucaps2xmltest.c Remove redundant usage of WITH_YAJL 2019-12-13 14:57:32 +01:00
qemucapsfixreplies
qemucapsprobe.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
qemucapsprobemock.c
qemucommandutiltest.c Remove redundant usage of WITH_YAJL 2019-12-13 14:57:32 +01:00
qemucpumock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
qemudomaincheckpointxml2xmltest.c conf: drop virCapsPtr param from snapshot & checkpoint APIs 2019-12-09 10:17:27 +00:00
qemudomainsnapshotxml2xmltest.c conf: drop virCapsPtr param from snapshot & checkpoint APIs 2019-12-09 10:17:27 +00:00
qemufirmwaretest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
qemuhotplugmock.c qemu_hotplug.c: adding qemuDomainGetUnplugTimeout 2019-11-13 15:03:40 -05:00
qemuhotplugtest.c qemu: command: move qemuBuildGraphicsSPICECommandLine validation to qemu_domain.c 2019-12-16 17:51:26 -05:00
qemumemlocktest.c qemu: Allow forcing VFIO when computing memlock limit 2019-12-17 10:04:44 +01:00
qemumigparamstest.c Remove redundant usage of WITH_YAJL 2019-12-13 14:57:32 +01:00
qemumonitorjsontest.c Remove redundant usage of WITH_YAJL 2019-12-13 14:57:32 +01:00
qemumonitortestutils.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
qemumonitortestutils.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
qemusecuritymock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
qemusecuritytest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
qemusecuritytest.h
qemuvhostusertest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
qemuxml2argvmock.c tests: Remove _NULLABLE in virNetDevExists mock 2019-11-06 11:27:12 -05:00
qemuxml2argvtest.c qemu: handle unassigned PCI hostdevs in command line 2019-12-18 13:08:28 -05:00
qemuxml2xmltest.c Introducing new address type='unassigned' for PCI hostdevs 2019-12-18 13:08:27 -05:00
scsihosttest.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
seclabeltest.c
secretxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
securityselinuxhelper.c m4: virt-selinux: remove obsolete checks 2019-10-23 14:30:50 +02:00
securityselinuxlabeltest.c tests: securityselinuxlabel: Add QEMU_CAPS_VNC to fake qemuCaps 2019-12-17 10:03:35 +01:00
securityselinuxtest.c tests: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
shunloadhelper.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
shunloadtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
sockettest.c
ssh.c
storagebackendsheepdogtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagepoolcapstest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagepoolxml2argvtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagepoolxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagevolxml2argvtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagevolxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
sysinfotest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
test-lib.sh
testutils.c tests: use PYTHON detected from configure 2019-12-10 09:55:45 -05:00
testutils.h conf: move NUMA capabilities into self contained object 2019-12-09 10:17:27 +00:00
testutilshostcpus.h Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
testutilslxc.c conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
testutilslxc.h conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
testutilsqemu.c qemu: use host CPU object directly 2019-12-09 10:17:27 +00:00
testutilsqemu.h qemu: use host CPU object directly 2019-12-09 10:17:27 +00:00
testutilsqemuschema.c util: virbuffer: Remove @dynamic from virBufferGetIndent 2019-10-24 19:35:34 +02:00
testutilsqemuschema.h
testutilsxen.c testutilsxen: Avoid double free of driver caps 2019-12-18 14:28:48 +01:00
testutilsxen.h conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
utiltest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
vboxsnapshotxmltest.c tests: use GRegex in vboxsnapshotxmltest 2019-11-14 17:45:40 +01:00
viralloctest.c tests: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
viratomictest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virauthconfigtest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virbitmaptest.c tests: Fix logic to not have possible NULL deref 2019-11-06 11:27:12 -05:00
virbuftest.c util: buffer: Remove virBufferError 2019-10-24 19:35:34 +02:00
vircaps2xmltest.c conf: move NUMA capabilities into self contained object 2019-12-09 10:17:27 +00:00
vircapstest.c conf: move NUMA capabilities into self contained object 2019-12-09 10:17:27 +00:00
vircgroupmock.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
vircgrouptest.c vircgroupmock: mock virCgroupV2DevicesAvailable 2019-11-15 12:58:43 +01:00
virconftest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
vircryptotest.c
virdbusmock.c
virdbustest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virdeterministichashmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virerrortest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virfilecachemock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virfilecachetest.c tests: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virfilemock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virfiletest.c g_mkstemp_full: pass O_RDWR 2019-11-18 18:49:02 +01:00
virfilewrapper.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virfilewrapper.h
virfirewalltest.c util: buffer: Remove virBufferError 2019-10-24 19:35:34 +02:00
virhashdata.h
virhashtest.c use g_ascii_strcasecmp instead of c_strcasecmp from gnulib 2019-12-10 14:08:46 +01:00
virhostcpumock.c
virhostcputest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virhostdevtest.c virhostdevtest: Test virNVMeDevice assignment 2019-12-17 10:04:43 +01:00
viridentitytest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
viriscsitest.c Use g_strdup instead of ignoring VIR_STRDUP's value 2019-10-21 12:51:55 +02:00
virjsontest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virkeycodetest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virkeyfiletest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virkmodtest.c util: buffer: Remove virBufferError 2019-10-24 19:35:34 +02:00
virlockspacetest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virlogtest.c
virmacmaptest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virmock.h tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virmockstathelpers.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virnetdaemonmock.c
virnetdaemontest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c util: buffer: Remove virBufferError 2019-10-24 19:35:34 +02:00
virnetdevmock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnetdevopenvswitchtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnetdevtest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virnetmessagetest.c tests: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:59 +02:00
virnetserverclientmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virnetserverclienttest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virnetsockettest.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
virnettlscontexttest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virnettlshelpers.c
virnettlshelpers.h
virnettlssessiontest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virnetworkportxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnumamock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnwfilterbindingxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virpcimock.c virpcimock: Introduce NVMe driver and devices 2019-12-17 10:04:43 +01:00
virpcitest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virpolkittest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virportallocatormock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virportallocatortest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virprocessmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virrandommock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virresctrltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virrotatingfiletest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virschematest.c tests: genericxml2xml: Add testing of backup XML files 2019-12-10 12:41:56 +01:00
virscsitest.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
virsh-int-overflow
virsh-optparse
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-snapshot
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virstoragetest.c util: storage: Don't treat files with missing backing store format as 'raw' 2019-12-18 09:36:48 +01:00
virstorageutiltest.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virstringtest.c tests: delete tests for VIR_STR(N)DUP 2019-12-12 14:24:35 +01:00
virsystemdtest.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
virt-aa-helper-test virt-aa-helper: testcase for shmem devices 2019-11-21 08:27:03 +01:00
virt-admin-self-test
virtestmock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virtimetest.c
virtypedparamtest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
viruritest.c util: buffer: Encode URIs with upper case hex characters 2019-10-24 19:35:34 +02:00
virusbmock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virusbtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
vmwarevertest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
vmx2xmltest.c conf: drop virCapsPtr param from domain formatting APIs 2019-12-09 10:17:27 +00:00
vshtabletest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
xlconfigtest.c xen: Remove unused 'cfg' 2019-12-09 14:06:15 +01:00
xmconfigtest.c xen: Remove unused 'cfg' 2019-12-09 14:06:15 +01:00
xml2vmxtest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00