Home
last modified time | relevance | path

Searched full:qtest (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/openbmc/qemu/tests/qtest/
H A Ddevice-plug-test.c18 static void system_reset(QTestState *qtest) in system_reset() argument
22 resp = qtest_qmp(qtest, "{'execute': 'system_reset'}"); in system_reset()
27 static void wait_device_deleted_event(QTestState *qtest, const char *id) in wait_device_deleted_event() argument
37 resp = qtest_qmp_eventwait_ref(qtest, "DEVICE_DELETED"); in wait_device_deleted_event()
53 static void process_device_remove(QTestState *qtest, const char *id) in process_device_remove() argument
60 qtest_qmp_device_del_send(qtest, id); in process_device_remove()
61 system_reset(qtest); in process_device_remove()
62 wait_device_deleted_event(qtest, id); in process_device_remove()
67 QTestState *qtest; in test_pci_unplug_request() local
80 qtest = qtest_initf("%s -device virtio-mouse-pci,id=dev0", in test_pci_unplug_request()
[all …]
H A Dtest-netfilter.c2 * QTest testcase for netfilter
23 " 'id': 'qtest-f0'," in add_one_netfilter()
24 " 'netdev': 'qtest-bn0'," in add_one_netfilter()
35 " 'id': 'qtest-f0'" in add_one_netfilter()
50 " 'id': 'qtest-f0'," in remove_netdev_with_one_netfilter()
51 " 'netdev': 'qtest-bn0'," in remove_netdev_with_one_netfilter()
62 " 'id': 'qtest-bn0'" in remove_netdev_with_one_netfilter()
72 " 'id': 'qtest-bn0'" in remove_netdev_with_one_netfilter()
87 " 'id': 'qtest-f0'," in add_multi_netfilter()
88 " 'netdev': 'qtest-bn0'," in add_multi_netfilter()
[all …]
H A Dtest-filter-redirector.c2 * QTest testcase for filter-redirector
82 "-nic socket,id=qtest-bn0,fd=%d " in test_redirector_tx()
86 "-object filter-redirector,id=qtest-f0,netdev=qtest-bn0," in test_redirector_tx()
88 "-object filter-redirector,id=qtest-f1,netdev=qtest-bn0," in test_redirector_tx()
90 "-object filter-redirector,id=qtest-f2,netdev=qtest-bn0," in test_redirector_tx()
152 "-nic socket,id=qtest-bn0,fd=%d " in test_redirector_rx()
156 "-object filter-redirector,id=qtest-f0,netdev=qtest-bn0," in test_redirector_rx()
158 "-object filter-redirector,id=qtest-f1,netdev=qtest-bn0," in test_redirector_rx()
160 "-object filter-redirector,id=qtest-f2,netdev=qtest-bn0," in test_redirector_rx()
H A Dpflash-cfi02-test.c2 * QTest testcase for parallel flash with AMD command set
56 QTestState *qtest; member
112 qtest_writeb(c->qtest, addr, data); in flash_write()
115 qtest_writew(c->qtest, addr, data); in flash_write()
118 qtest_writel(c->qtest, addr, data); in flash_write()
121 qtest_writeq(c->qtest, addr, data); in flash_write()
133 return qtest_readb(c->qtest, addr); in flash_read()
135 return qtest_readw(c->qtest, addr); in flash_read()
137 return qtest_readl(c->qtest, addr); in flash_read()
139 return qtest_readq(c->qtest, addr); in flash_read()
[all …]
H A Dtest-filter-mirror.c2 * QTest testcase for filter-mirror
36 "-nic socket,id=qtest-bn0,fd=%d " in test_mirror()
38 "-object filter-mirror,id=qtest-f0,netdev=qtest-bn0,queue=tx,outdev=mirror0 " in test_mirror()
H A Daspeed_smc-test.c2 * QTest testcase for the M25P80 Flash (Using the Aspeed SPI
37 fd = g_file_open_tmp("qtest.m25p80.n25q256a.XXXXXX", &data->tmp_path, NULL); in test_palmetto_bmc()
83 fd = g_file_open_tmp("qtest.m25p80.mx25l25635e.XXXXXX", in test_ast2500_evb()
126 fd = g_file_open_tmp("qtest.m25p80.mx66u51235f.XXXXXX", in test_ast2600_evb()
169 fd = g_file_open_tmp("qtest.m25p80.w25q80bl.XXXXXX", in test_ast1030_evb()
/openbmc/qemu/docs/devel/testing/
H A Dqtest.rst2 QTest Device Emulation Testing Framework
9 QTest is a device emulation testing framework. It can be very useful to test
11 clock stepping), with a special purpose "qtest" protocol. Refer to
12 :ref:`qtest-protocol` for more details of the protocol.
14 QTest cases can be executed with
18 make check-qtest
20 The QTest library is implemented by ``tests/qtest/libqtest.c`` and the API is
21 defined in ``tests/qtest/libqtest.h``.
23 Consider adding a new QTest case when you are introducing a new virtual
35 Steps to add a new QTest case are:
[all …]
H A Dfuzzing.rst117 Fuzzers are kept in ``tests/qtest/fuzz/`` and should be added to
118 ``tests/qtest/fuzz/meson.build``
120 Fuzzers can rely on both qtest and libqos to communicate with virtual devices.
122 1. Create a new source file. For example ``tests/qtest/fuzz/foo-device-fuzz.c``.
127 3. Add the fuzzer to ``tests/qtest/fuzz/meson.build``.
129 Fuzzers can be more-or-less thought of as special qtest programs which can
130 modify the qtest commands and/or qtest command arguments based on inputs
132 fuzzer loops over the byte-array interpreting it as a list of qtest commands,
186 ``tests/qtest/fuzz/generic_fuzz_configs.h``. Each config must specify:
222 - Gather the QTest output for the crash::
[all …]
/openbmc/qemu/python/qemu/machine/
H A Dqtest.py2 QEMU qtest library
4 qtest offers the QEMUQtestProtocol and QEMUQTestMachine classes, which
5 offer a connection to QEMU's qtest protocol socket, and a qtest-enabled
37 QEMUQtestProtocol implements a connection to a qtest socket.
85 Connect to the qtest socket.
104 Send a qtest command on the wire.
106 @param qtest_cmd: qtest command text to be sent
129 A QEMU VM, with a qtest socket available.
156 '-chardev', f"socket,id=qtest,fd={fd}",
157 '-qtest', 'chardev:qtest',
[all …]
H A D__init__.py7 | QEMUQtestProtocol: send/receive qtest messages.
9 | +-- QEMUQtestMachine: VM class, with a qtest socket.
29 from .qtest import QEMUQtestMachine, QEMUQtestProtocol
/openbmc/qemu/scripts/oss-fuzz/
H A Dreorder_fuzzer_qtest_trace.py5 Use this to convert qtest log info from a generic fuzzer input into a qtest
8 QEMU_FUZZ_ARGS="-machine q35,accel=qtest" QEMU_FUZZ_OBJECTS="*" \
12 QEMU_FUZZ_ARGS="-machine q35,accel=qtest" QEMU_FUZZ_OBJECTS="*" \
16 ./i386-softmmu/qemu-fuzz-i386 -machine q35,accel=qtest \
17 -qtest stdio < qtest_trace
35 We annotate these "nested" DMA writes, so with QTEST_LOG=1 the QTest trace
52 reordered trace via -qtest stdio to reproduce the input
83 # Leave only lines that look like logged qtest commands
94 "resulting qtest trace\n\n".format(i+1))
H A Doutput_reproducer.py5 Convert plain qtest traces to C or Bash reproducers
65 # libqtest will add its own qtest args, so get rid of them
66 args = args.replace("-accel qtest","")
67 args = args.replace(",accel=qtest","")
68 args = args.replace("-machine accel=qtest","")
69 args = args.replace("-qtest stdio","")
126 parser.add_argument('input_trace', help="input QTest command sequence \
139 if " -qtest stdio" not in qemu_args:
140 bash_args += " -qtest stdio"
/openbmc/qemu/system/
H A Dqtest.c16 #include "sysemu/qtest.h"
36 #define TYPE_QTEST "qtest"
38 OBJECT_DECLARE_SIMPLE_TYPE(QTest, QTEST)
40 struct QTest { struct
54 static QTest *qtest; variable
65 * DOC: QTest Protocol
77 * The qtest client is completely in charge of the QEMU_CLOCK_VIRTUAL. qtest commands
226 * will be printed to the qtest stream::
320 CharBackend *chr = &qtest->qtest_chr; in qtest_irq_handler()
837 chr = qemu_chr_new("qtest", qtest_chrdev, NULL); in qtest_server_init()
[all …]
/openbmc/qemu/tests/qtest/fuzz/
H A Di440fx_fuzz.c16 #include "tests/qtest/libqtest.h"
17 #include "tests/qtest/libqos/pci.h"
18 #include "tests/qtest/libqos/pci-pc.h"
28 * want to convert these bytes into a sequence of qtest or qos calls. to do
148 static const char *i440fx_qtest_argv = TARGET_NAME " -machine accel=qtest"
158 /* Uses simple qtest commands and reboots to reset state */ in register_pci_fuzz_targets()
160 .name = "i440fx-qtest-reboot-fuzz", in register_pci_fuzz_targets()
161 .description = "Fuzz the i440fx using raw qtest commands and " in register_pci_fuzz_targets()
174 .description = "Fuzz the i440fx using raw qtest commands and " in register_pci_fuzz_targets()
H A Dfuzz.c21 #include "sysemu/qtest.h"
25 #include "tests/qtest/libqtest.h"
26 #include "tests/qtest/libqos/qgraph.h"
105 "QTest commands into an ASCII protocol. Useful for building crash\n" in usage()
107 "Set the environment variable QTEST_LOG=1 to log all qtest commands" in usage()
191 /* Should we always serialize qtest commands? */ in LLVMFuzzerInitialize()
212 g_string_append_printf(cmd_line, " %s -qtest /dev/null ", in LLVMFuzzerInitialize()
213 getenv("QTEST_LOG") ? "" : "-qtest-log none"); in LLVMFuzzerInitialize()
H A Dqos_fuzz.c25 #include "tests/qtest/libqtest.h"
26 #include "tests/qtest/libqos/libqos-malloc.h"
27 #include "tests/qtest/libqos/qgraph.h"
28 #include "tests/qtest/libqos/qgraph_internal.h"
29 #include "tests/qtest/libqos/qos_external.h"
87 TARGET_NAME " -display none -machine accel=qtest -m 64 "); in qos_build_main_args()
H A Dvirtio_blk_fuzz.c14 #include "tests/qtest/libqtest.h"
15 #include "tests/qtest/libqos/virtio-blk.h"
16 #include "tests/qtest/libqos/virtio.h"
17 #include "tests/qtest/libqos/virtio-pci.h"
30 /* Based on tests/qtest/virtio-blk-test.c. */
162 fd = g_file_open_tmp("qtest.XXXXXX", &t_path, NULL); in drive_create()
H A Dvirtio_scsi_fuzz.c15 #include "tests/qtest/libqtest.h"
16 #include "tests/qtest/libqos/virtio-scsi.h"
17 #include "tests/qtest/libqos/virtio.h"
18 #include "tests/qtest/libqos/virtio-pci.h"
H A Dqos_fuzz.h16 #include "tests/qtest/fuzz/fuzz.h"
17 #include "tests/qtest/libqos/qgraph.h"
/openbmc/qemu/accel/qtest/
H A Dqtest.c2 * QTest accelerator code
21 #include "sysemu/qtest.h"
47 ac->name = "QTest"; in qtest_accel_class_init()
52 #define TYPE_QTEST_ACCEL ACCEL_CLASS_NAME("qtest")
71 .name = ACCEL_OPS_NAME("qtest"),
77 module_obj(ACCEL_OPS_NAME("qtest"));
/openbmc/qemu/tests/data/acpi/
H A Drebuild-expected-aml.sh17 if [ ! -e "tests/qtest/bios-tables-test" ]; then
50 TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/qtest/bios-tables-test
55 …e 'List of comma-separated changed AML files to ignore' ${SRC_PATH}/tests/qtest/bios-tables-test-a…
57 echo '/* List of comma-separated changed AML files to ignore */' > ${SRC_PATH}/tests/qtest/bios-tab…
64 echo "Note! Please follow the process documented in ${SRC_PATH}/tests/qtest/bios-tables-test.c"
/openbmc/qemu/tests/qemu-iotests/
H A D14887 self.vm.qtest("clock_step 10")
95 self.vm.qtest("clock_step %d" % delay)
99 self.vm.qtest("clock_step %d" % (2 * event_rate))
107 self.vm.qtest("clock_step %d" % delay)
115 self.vm.qtest("clock_step %d" % delay)
127 self.vm.qtest("clock_step %d" % delay)
/openbmc/qemu/
H A DMAINTAINERS205 F: tests/qtest/arm-cpu-features.c
669 F: tests/qtest/cmsdk-apb-timer-test.c
672 F: tests/qtest/cmsdk-apb-dualtimer-test.c
677 F: tests/qtest/cmsdk-apb-watchdog-test.c
705 F: tests/qtest/test-arm-mptimer.c
713 F: tests/qtest/dm163-test.c
840 F: tests/qtest/sse-timer-test.c
868 F: tests/qtest/npcm*
869 F: tests/qtest/adm1266-test.c
961 F: tests/qtest/stm32l4x5*
[all …]
/openbmc/qemu/stubs/
H A Dqtest.c2 * qtest stubs
12 #include "sysemu/qtest.h"
/openbmc/qemu/accel/
H A Dmeson.build8 subdir('qtest') subdir
14 # qtest

12345678910>>...12