Lines Matching +full:fails +full:- +full:without +full:- +full:test +full:- +full:cd

14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 Run QEMU with all combinations of -machine and -device types,
43 print(" Try 'make check-venv' from your build directory,")
48 logger = logging.getLogger('device-crash-test')
53 # * Avoiding verbose log messages when we find known non-fatal
57 # the box, when running in --quick mode
71 # when testing the corresponding test case
76 {'machine':'niagara', 'expected':True}, # Unable to load a firmware for -M niagara
77 … {'machine':'boston', 'expected':True}, # Please provide either a -kernel or -bios argument
80 # devices that don't work out of the box because they require extra options to "-device DEV":
82 {'device':'.*-(i386|x86_64)-cpu', 'expected':True}, # CPU socket-id is not set
85 # "-device ide-cd" does work on more recent QEMU versions, so it doesn't have expected=True
86 {'device':'ide-cd'}, # No drive specified
87 {'device':'ide-hd', 'expected':True}, # No drive specified
88 …{'device':'ipmi-bmc-extern', 'expected':True}, # IPMI external bmc requires chardev attrib…
89 …{'device':'isa-debugcon', 'expected':True}, # Can't create serial device, empty char de…
90 …{'device':'isa-ipmi-bt', 'expected':True}, # IPMI device requires a bmc attribute to b…
91 …{'device':'isa-ipmi-kcs', 'expected':True}, # IPMI device requires a bmc attribute to b…
92 …{'device':'isa-parallel', 'expected':True}, # Can't create serial device, empty char de…
93 {'device':'ivshmem-doorbell', 'expected':True}, # You must specify a 'chardev'
94 {'device':'ivshmem-plain', 'expected':True}, # You must specify a 'memdev'
99 {'device':'pc-dimm', 'expected':True}, # 'memdev' property is not set
100 …{'device':'pci-bridge', 'expected':True}, # Bridge chassis not specified. Each bridge…
101 …{'device':'pci-bridge-seat', 'expected':True}, # Bridge chassis not specified. Each bridge…
103 …{'device':'pxb-cxl', 'expected':True}, # pxb-cxl devices cannot reside on a PCI bu…
104 {'device':'scsi-block', 'expected':True}, # drive property not set
105 {'device':'scsi-generic', 'expected':True}, # drive property not set
106 {'device':'scsi-hd', 'expected':True}, # drive property not set
107 {'device':'spapr-pci-host-bridge', 'expected':True}, # BUID not specified for PHB
108 {'device':'spapr-rng', 'expected':True}, # spapr-rng needs an RNG backend!
109 {'device':'spapr-vty', 'expected':True}, # chardev property not set
110 …{'device':'tpm-tis', 'expected':True}, # tpm_tis: backend driver with id (null) co…
111 {'device':'unimplemented-device', 'expected':True}, # property 'size' not specified or zero
112 {'device':'usb-braille', 'expected':True}, # Property chardev is required
113 {'device':'usb-mtp', 'expected':True}, # rootdir property must be configured
114 {'device':'usb-redir', 'expected':True}, # Parameter 'chardev' is missing
115 {'device':'usb-serial', 'expected':True}, # Property chardev is required
116 {'device':'usb-storage', 'expected':True}, # drive property not set
117 …{'device':'vfio-amd-xgbe', 'expected':True}, # -device vfio-amd-xgbe: vfio error: wrong …
118 …{'device':'vfio-calxeda-xgmac', 'expected':True}, # -device vfio-calxeda-xgmac: vfio error: w…
119 {'device':'vfio-pci', 'expected':True}, # No provided host device
120 …{'device':'vfio-pci-igd-lpc-bridge', 'expected':True}, # VFIO dummy ISA/LPC bridge must have addre…
121 {'device':'vhost-scsi.*', 'expected':True}, # vhost-scsi: missing wwpn
122 … {'device':'vhost-vsock-device', 'expected':True}, # guest-cid property must be greater than 2
123 … {'device':'vhost-vsock-pci', 'expected':True}, # guest-cid property must be greater than 2
124 …{'device':'virtio-9p-ccw', 'expected':True}, # 9pfs device couldn't find fsdev with the …
125 …{'device':'virtio-9p-device', 'expected':True}, # 9pfs device couldn't find fsdev with the …
126 …{'device':'virtio-9p-pci', 'expected':True}, # 9pfs device couldn't find fsdev with the …
127 {'device':'virtio-blk-ccw', 'expected':True}, # drive property not set
128 {'device':'virtio-blk-device', 'expected':True}, # drive property not set
129 {'device':'virtio-blk-device', 'expected':True}, # drive property not set
130 {'device':'virtio-blk-pci', 'expected':True}, # drive property not set
131 …{'device':'virtio-crypto-ccw', 'expected':True}, # 'cryptodev' parameter expects a valid obj…
132 …{'device':'virtio-crypto-device', 'expected':True}, # 'cryptodev' parameter expects a valid obj…
133 …{'device':'virtio-crypto-pci', 'expected':True}, # 'cryptodev' parameter expects a valid obj…
134 {'device':'virtio-input-host-device', 'expected':True}, # evdev property is required
135 {'device':'virtio-input-host-pci', 'expected':True}, # evdev property is required
136 …{'device':'xen-pvdevice', 'expected':True}, # Device ID invalid, it must always be supp…
137 … {'device':'vhost-vsock-ccw', 'expected':True}, # guest-cid property must be greater than 2
139 …{'device':'pnv-(occ|icp|lpc)', 'expected':True}, # required link 'xics' not found: Property …
140 …{'device':'powernv-cpu-.*', 'expected':True}, # pnv_core_realize: required link 'xics' no…
143 {'machine':'q35|pc.*', 'device':'kvm-ioapic', 'expected':True}, # Only 1 ioapics allowed
146 # "spapr-cpu-core needs a pseries machine"
147 {'machine':'(?!pseries).*', 'device':'.*-spapr-cpu-core', 'expected':True},
149 # KVM-specific devices shouldn't be tried without accel=kvm:
152 # xen-specific machines and devices:
154 {'accel':'(?!xen).*', 'device':'xen-.*', 'expected':True},
156 # this fails on some machine-types, but not all, so they don't have expected=True:
161 {'log':r"No '[\w-]+' bus found for device '[\w-]+'"},
164 {'log':r"[cC]ould not load [\w ]+ (BIOS|bios) '[\w-]+\.bin'"},
165 {'log':r"Couldn't find rom image '[\w-]+\.bin'"},
169 # sysbus-related error messages: most machines reject most dynamic sysbus devices:
170 {'log':r"Option '-device [\w.,-]+' cannot be handled by this machine"},
171 {'log':r"Device [\w.,-]+ is not supported by this machine yet"},
172 {'log':r"Device [\w.,-]+ can not be dynamically instantiated"},
175 {'device':'.*-spapr-cpu-core', 'log':r"CPU core type should be"},
176 {'log':r"MSI(-X)? is not supported by interrupt controller"},
177 {'log':r"pxb-pcie? devices cannot reside on a PCIe? bus"},
181 {'log':r"MSI-X support is mandatory in the S390 architecture"},
197 """Check if a test case specification can match a error rule
200 for a given test case, it won't check if the test case
215 """Generate the list of candidates that can match a test case"""
222 """Check if there's an expected=True error rule for a test case
233 """Check if test case results/output match a error rule
247 """Look up error rule for a given test case result
265 """Format test case info as "key=value key=value" for prettier logging output"""
270 """Run qom-list-types QMP command, return type names"""
271 types = vm.cmd('qom-list-types', **kwargs)
277 args = {'command-line': 'info qdm'}
278 devhelp = vm.cmd('human-monitor-command', **args)
284 'no-user': (re.search(', no-user', l) is not None)}
297 args = ['-S', '-machine', 'none,accel=kvm:tcg']
305 self.no_user_devs = set([d['name'] for d in infoQDM(vm, ) if d['no-user']])
306 self.machines = list(m['name'] for m in vm.cmd('query-machines'))
308 self.kvm_available = vm.cmd('query-kvm')['enabled']
313 """Query for information on a specific machine-type
315 Results are cached internally, in case the same machine-
322 args = ['-S', '-machine', '%s' % (machine)]
358 dbg("will test: %r", testcase)
360 args = ['-S', '-machine', '%s,accel=%s' % (machine, accel),
361 '-device', qemuOptsEscape(device)]
373 dbg("Exception while running test case")
393 if f.name.startswith('qemu-system-') and
425 allows the "-t" command-line option to be used to choose
426 a specific test case.
439 """Generate test cases for all variables
455 dbg("%d test cases to test", len(cases))
487 parser = argparse.ArgumentParser(description="QEMU -device crash test")
488 parser.add_argument('-t', metavar='KEY=VALUE', nargs='*',
489 help="Limit test cases to KEY=VALUE",
491 parser.add_argument('-d', '--debug', action='store_true',
493 parser.add_argument('-v', '--verbose', action='store_true', default=True,
495 parser.add_argument('-q', '--quiet', dest='verbose', action='store_false',
496 help='non-verbose output')
497 parser.add_argument('-r', '--random', type=int, metavar='COUNT',
498 help='run a random sample of COUNT test cases',
500 parser.add_argument('--shuffle', action='store_true',
501 help='Run test cases in random order')
502 parser.add_argument('--dry-run', action='store_true',
504 parser.add_argument('-D', '--devtype', metavar='TYPE',
505 help="Test only device types that implement TYPE")
506 parser.add_argument('-Q', '--quick', action='store_true', default=True,
507 help="Quick mode: skip test cases that are expected to fail")
508 parser.add_argument('-F', '--full', action='store_false', dest='quick',
509 help="Full mode: test cases that are expected to fail")
510 parser.add_argument('--strict', action='store_true', dest='strict',
512 parser.add_argument('--tcg-only', action='store_true', dest='tcg_only',
513 help="Only test with TCG accelerator")
551 logger.info("running test case: %s", formatTestCase(t))
583 logger.info("Total: %d test cases", total)
585 logger.info("Skipped %d test cases", skipped)