qemu/tests
Michael Roth 2d49610539 qapi: Unit tests for visitor-based serialization
Currently we test our visitors individually, and seperately for input
vs. output. This is useful for validating internal representations
against the native C types and vice-versa, and other visitor-specific
testing, but it doesn't cover the potential use-case of using visitor
pairs for serialization/deserialization very well, and makes it
hard to easily extend the coverage for different C types / boundary
conditions.

To cover that we add a set of unit tests that takes a number of native C
values, passes them into an output visitor, extracts the values with an
input visitor, then compares the result to the original.

Plugging in new visitors to the test harness only requires a user to
implement the SerializeOps interface and add it to a list.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2012-06-08 16:11:14 +02:00
..
qemu-iotests qemu-iotests: mark 035 qcow2-only 2012-05-25 18:13:44 +02:00
tcg fix some common typos 2012-05-14 07:27:24 +02:00
.gitignore Add .gitignore for tests/ 2012-04-20 13:23:27 +01:00
check-block.sh Add 'make check-block' 2012-03-12 15:14:07 +01:00
check-qdict.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qfloat.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qint.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qjson.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qlist.c test makefile overhaul 2012-03-30 08:14:11 -05:00
check-qstring.c test makefile overhaul 2012-03-30 08:14:11 -05:00
fdc-test.c fdc-test: introduced qtest no_media_on_start and cmos qtest for floppy 2012-05-25 18:23:47 +02:00
libqtest.c qtest: Add function to send QMP commands 2012-05-10 10:32:11 +02:00
libqtest.h qtest: Add function to send QMP commands 2012-05-10 10:32:11 +02:00
m48t59-test.c qtest: add m48t59 tests for Sparc 2012-04-21 07:10:25 +00:00
Makefile qapi: Unit tests for visitor-based serialization 2012-06-08 16:11:14 +02:00
qemu-iotests-quick.sh make check: Add qemu-iotests subset 2012-03-12 15:14:07 +01:00
rtc-test.c qtest: add register fuzzing to RTC test 2012-04-19 18:14:55 +00:00
test-coroutine.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-qmp-commands.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-qmp-input-strict.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-qmp-input-visitor.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-qmp-output-visitor.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-string-input-visitor.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-string-output-visitor.c test makefile overhaul 2012-03-30 08:14:11 -05:00
test-visitor-serialization.c qapi: Unit tests for visitor-based serialization 2012-06-08 16:11:14 +02:00