Since your tests also link against the host environment, it potentially makes
tests much simplier to write (as you aren't reinventing an OS). I think this
makes this style of test more appropriate for something like QEMU.
Anthony Liguori (6):
qtest: add test framework
qtest: add support for target-i386 -M pc
Add core python test framework
Add uart test case
Add RTC test case
Add C version of rtc-test
Makefile | 4 +
Makefile.objs | 2 +
hw/pc.c | 7 +-
hw/pc_piix.c | 9 +-
qemu-options.hx | 8 ++
qtest.c | 357 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
qtest.h | 37 ++++++
qtest.py | 69 +++++++++++
rtc-test.c | 201 +++++++++++++++++++++++++++++++
rtc-test.py | 105 ++++++++++++++++
serial-test.py | 24 ++++
vl.c | 8 ++
12 files changed, 827 insertions(+), 4 deletions(-)
create mode 100644 qtest.c
create mode 100644 qtest.h
create mode 100644 qtest.py
create mode 100644 rtc-test.c
create mode 100644 rtc-test.py
create mode 100644 serial-test.py