This series is meant to be a reference for converting tests to qgraph. It covers a bit of everything: finding common code across multiple tests, the kind of bug that you could find when running tests across more machine types, creating new machines, and converting tests.
I have not yet tested it fully, and the first two patches are really independent bugfixes and improvements to the qgraph API so they do not really belong in this series. However, I wanted to throw it out sooner because I won't have much time to work on it during the freeze. Paolo Bonzini (13): qgraph: allow extra_device_opts on bus nodes qgraph: fix qos_node_contains with options libqos: move common i2c code to libqos libqos: fix omap-i2c receiving more than 4 bytes pca9552-test: do not rely on state across tests imx25-pdk: create ds1338 for qtest inside the test libqos: split I2CAdapter initialization and allocation libqos: convert I2C to qgraph libqos: add ARM n800 machine object libqos: add ARM imx25-pdk machine object tests: convert OMAP i2c tests to qgraph tests: convert ds1338-test to qtest libqos: i2c: move address into QI2CDevice hw/arm/imx25_pdk.c | 9 --- tests/Makefile.include | 17 ++-- tests/ds1338-test.c | 45 ++++------- tests/libqos/arm-imx25-pdk-machine.c | 92 ++++++++++++++++++++++ tests/libqos/arm-n800-machine.c | 92 ++++++++++++++++++++++ tests/libqos/i2c-imx.c | 40 ++++++---- tests/libqos/i2c-omap.c | 70 +++++++++++------ tests/libqos/i2c.c | 74 ++++++++++++++++-- tests/libqos/i2c.h | 63 ++++++++++++--- tests/libqos/qgraph.c | 12 ++- tests/libqos/qgraph.h | 15 ++-- tests/pca9552-test.c | 91 ++++++++-------------- tests/qos-test.c | 17 ++-- tests/tmp105-test.c | 112 ++++++++------------------- 14 files changed, 494 insertions(+), 255 deletions(-) create mode 100644 tests/libqos/arm-imx25-pdk-machine.c create mode 100644 tests/libqos/arm-n800-machine.c -- 2.20.1