Hi, This RFC series intends to add a sdcard test in C using the libqos.
As I intended to explain previous series threads, I want a way to access slave devices via their bus rather than the bus master (SDHCI in this case). This way I can be sure the slave behaves correctly, then I can test the host master device. After spending too long different devices, I came back to the original idea than using QMP is the simplest way to do it. - patch 1 adds a QMP command to run commands on the bus, - patch 2 exposes the libqos sdbus API, - patch 3 intends to implement the previous API for the QMP command (the API is here since I tried few other devices before, as you can see in [1]) it is way broken and leaks lot of qobjects, but worked enough to verify the previous series (SDCard: improve SPI, introduce new Specs) - patch 4 is the WIP qtest I started to backport from my previous python qtests Since v1: - dropped Python - prefix QMP command with 'x-debug-' (Kevin Wolf) Regards, Phil. some pain shared here: [1]: http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg00080.html Based-on: 20180103212436.15762-26-f4...@amsat.org Philippe Mathieu-Daudé (4): sdbus: add a QMP command to access a SDBus libqos: add a sdbus API libqos: implement sdbus QMP driver tests: add some sdcard qtest qapi-schema.json | 41 +++++++++++++ tests/libqos/sdbus.h | 45 ++++++++++++++ hw/sd/sdbus-qmp.c | 65 ++++++++++++++++++++ stubs/qmp_sdbus.c | 12 ++++ tests/libqos/sdbus-qmp.c | 130 ++++++++++++++++++++++++++++++++++++++++ tests/libqos/sdbus.c | 74 +++++++++++++++++++++++ tests/sdbus-test.c | 151 +++++++++++++++++++++++++++++++++++++++++++++++ hw/sd/Makefile.objs | 2 +- stubs/Makefile.objs | 1 + tests/Makefile.include | 3 + 10 files changed, 523 insertions(+), 1 deletion(-) create mode 100644 tests/libqos/sdbus.h create mode 100644 hw/sd/sdbus-qmp.c create mode 100644 stubs/qmp_sdbus.c create mode 100644 tests/libqos/sdbus-qmp.c create mode 100644 tests/libqos/sdbus.c create mode 100644 tests/sdbus-test.c -- 2.15.1