Lines Matching +full:- +full:- +full:disable +full:- +full:docs

2  * Validate -readconfig
7 * See the COPYING file in the top-level directory.
13 #include "qapi/qapi-visit-machine.h"
14 #include "qapi/qapi-visit-qom.h"
15 #include "qapi/qapi-visit-ui.h"
18 #include "qapi/qobject-input-visitor.h"
26 int cfgfd = -1; in qtest_init_with_config()
31 cfgfd = g_file_open_tmp("readconfig-test-XXXXXX", &cfgpath, &error); in qtest_init_with_config()
42 args = g_strdup_printf("-nodefaults -machine none -readconfig %s", cfgpath); in qtest_init_with_config()
62 g_assert(memdevs->value); in test_x86_memdev_resp()
63 g_assert(!memdevs->next); in test_x86_memdev_resp()
65 memdev = memdevs->value; in test_x86_memdev_resp()
66 g_assert_cmpstr(memdev->id, ==, mem_id); in test_x86_memdev_resp()
67 g_assert_cmpint(memdev->size, ==, size * MiB); in test_x86_memdev_resp()
82 resp = qtest_qmp(qts, "{ 'execute': 'query-memdev' }"); in test_x86_memdev()
101 g_assert(spice->enabled); in test_spice_resp()
115 "disable-ticketing = \"on\"\n"; in test_spice()
119 resp = qtest_qmp(qts, "{ 'execute': 'query-spice' }"); in test_spice()
144 g_assert(tmp->value); in test_object_available()
146 obj = tmp->value; in test_object_available()
147 if (g_str_equal(obj->name, name) && g_str_equal(obj->type, childtype)) { in test_object_available()
152 tmp = tmp->next; in test_object_available()
166 "qom-type = \"rng-builtin\"\n" in test_object_rng()
172 "{ 'execute': 'qom-list'," in test_object_rng()
174 test_object_available(qdict_get(resp, "return"), "rng0", "rng-builtin"); in test_object_rng()
186 qts = qtest_initf("-nodefaults -readconfig docs/config/ich9-ehci-uhci.cfg"); in test_docs_config_ich9()
188 resp = qtest_qmp(qts, "{ 'execute': 'qom-list'," in test_docs_config_ich9()
191 test_object_available(qobj, "ehci", "ich9-usb-ehci1"); in test_docs_config_ich9()
192 test_object_available(qobj, "uhci-1", "ich9-usb-uhci1"); in test_docs_config_ich9()
193 test_object_available(qobj, "uhci-2", "ich9-usb-uhci2"); in test_docs_config_ich9()
194 test_object_available(qobj, "uhci-3", "ich9-usb-uhci3"); in test_docs_config_ich9()
210 if (fd == -1) { in make_temp_img()
211 fprintf(stderr, "unable to create file: %s\n", error->message); in make_temp_img()
218 fprintf(stderr, "qemu-img failed to create %s\n", temp_name); in make_temp_img()
256 ret = g_file_open_tmp("q35-emulated-XXXXXX.cfg", &cfg_file, NULL); in test_docs_q35()
257 if (ret == -1) { in test_docs_q35()
263 sedcmd = g_strdup_printf("sed -e 's,guest.qcow2,%s,' -e 's,install.iso,%s,'" in test_docs_q35()
266 !qtest_has_accel("kvm") ? "-e '/accel/d'" : "", in test_docs_q35()
274 qts = qtest_initf("-machine none -nodefaults -readconfig %s", cfg_file); in test_docs_q35()
277 resp = qtest_qmp(qts, "{ 'execute': 'query-memdev' }"); in test_docs_q35()
281 resp = qtest_qmp(qts, "{ 'execute': 'qom-list'," in test_docs_q35()
309 { "ich9-pcie-port-1", "ioh3420" }, in test_docs_q35_emulated()
310 { "ich9-pcie-port-2", "ioh3420" }, in test_docs_q35_emulated()
311 { "ich9-pcie-port-3", "ioh3420" }, in test_docs_q35_emulated()
312 { "ich9-pcie-port-4", "ioh3420" }, in test_docs_q35_emulated()
313 { "ich9-pci-bridge", "i82801b11-bridge" }, in test_docs_q35_emulated()
314 { "ich9-ehci-1", "ich9-usb-ehci1" }, in test_docs_q35_emulated()
315 { "ich9-ehci-2", "ich9-usb-ehci2" }, in test_docs_q35_emulated()
316 { "ich9-uhci-1", "ich9-usb-uhci1" }, in test_docs_q35_emulated()
317 { "ich9-uhci-2", "ich9-usb-uhci2" }, in test_docs_q35_emulated()
318 { "ich9-uhci-3", "ich9-usb-uhci3" }, in test_docs_q35_emulated()
319 { "ich9-uhci-4", "ich9-usb-uhci4" }, in test_docs_q35_emulated()
320 { "ich9-uhci-5", "ich9-usb-uhci5" }, in test_docs_q35_emulated()
321 { "ich9-uhci-6", "ich9-usb-uhci6" }, in test_docs_q35_emulated()
322 { "sata-disk", "ide-hd" }, in test_docs_q35_emulated()
323 { "sata-optical-disk", "ide-cd" }, in test_docs_q35_emulated()
326 { "ich9-hda-audio", "ich9-intel-hda" }, in test_docs_q35_emulated()
327 { "ich9-hda-duplex", "hda-duplex" }, in test_docs_q35_emulated()
331 test_docs_q35("docs/config/q35-emulated.cfg", devices); in test_docs_q35_emulated()
337 { "pcie.1", "pcie-root-port" }, in test_docs_q35_virtio_graphical()
338 { "pcie.2", "pcie-root-port" }, in test_docs_q35_virtio_graphical()
339 { "pcie.3", "pcie-root-port" }, in test_docs_q35_virtio_graphical()
340 { "pcie.4", "pcie-root-port" }, in test_docs_q35_virtio_graphical()
341 { "pcie.5", "pcie-root-port" }, in test_docs_q35_virtio_graphical()
342 { "pcie.6", "pcie-root-port" }, in test_docs_q35_virtio_graphical()
343 { "pcie.7", "pcie-root-port" }, in test_docs_q35_virtio_graphical()
344 { "pcie.8", "pcie-root-port" }, in test_docs_q35_virtio_graphical()
345 { "scsi", "virtio-scsi-pci" }, in test_docs_q35_virtio_graphical()
346 { "scsi-disk", "scsi-hd" }, in test_docs_q35_virtio_graphical()
347 { "scsi-optical-disk", "scsi-cd" }, in test_docs_q35_virtio_graphical()
348 { "net", "virtio-net-pci" }, in test_docs_q35_virtio_graphical()
349 { "usb", "nec-usb-xhci" }, in test_docs_q35_virtio_graphical()
350 { "tablet", "usb-tablet" }, in test_docs_q35_virtio_graphical()
351 { "video", "qxl-vga" }, in test_docs_q35_virtio_graphical()
352 { "sound", "ich9-intel-hda" }, in test_docs_q35_virtio_graphical()
353 { "duplex", "hda-duplex" }, in test_docs_q35_virtio_graphical()
357 test_docs_q35("docs/config/q35-virtio-graphical.cfg", devices); in test_docs_q35_virtio_graphical()
363 { "pcie.1", "pcie-root-port" }, in test_docs_q35_virtio_serial()
364 { "pcie.2", "pcie-root-port" }, in test_docs_q35_virtio_serial()
365 { "pcie.3", "pcie-root-port" }, in test_docs_q35_virtio_serial()
366 { "pcie.4", "pcie-root-port" }, in test_docs_q35_virtio_serial()
367 { "pcie.5", "pcie-root-port" }, in test_docs_q35_virtio_serial()
368 { "pcie.6", "pcie-root-port" }, in test_docs_q35_virtio_serial()
369 { "pcie.7", "pcie-root-port" }, in test_docs_q35_virtio_serial()
370 { "pcie.8", "pcie-root-port" }, in test_docs_q35_virtio_serial()
371 { "scsi", "virtio-scsi-pci" }, in test_docs_q35_virtio_serial()
372 { "scsi-disk", "scsi-hd" }, in test_docs_q35_virtio_serial()
373 { "scsi-optical-disk", "scsi-cd" }, in test_docs_q35_virtio_serial()
374 { "net", "virtio-net-pci" }, in test_docs_q35_virtio_serial()
378 test_docs_q35("docs/config/q35-virtio-serial.cfg", devices); in test_docs_q35_virtio_serial()
393 if (qtest_has_device("ich9-usb-ehci1") && in main()
394 qtest_has_device("ich9-usb-uhci1")) { in main()
395 qtest_add_func("readconfig/x86/ich9-ehci-uhci", test_docs_config_ich9); in main()
398 qtest_add_func("readconfig/x86/q35-emulated", test_docs_q35_emulated); in main()
399 qtest_add_func("readconfig/x86/q35-virtio-graphical", in main()
403 * q35-virtio-serial.cfg is a subset of q35-virtio-graphical.cfg, in main()
406 qtest_add_func("readconfig/x86/q35-virtio-serial", in main()
415 qtest_add_func("readconfig/object-rng", test_object_rng); in main()