Received: from eggs.gnu.org ([2001:4830:134:3::10]:56821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaNnM-0002UV-Sb for qemu-devel@nongnu.org; Fri, 11 Sep 2015 08:51:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaNnJ-00066R-V6 for qemu-devel@nongnu.org; Fri, 11 Sep 2015 08:51:12 -0400 Received: from mx1.openwide.fr ([213.162.52.98]:47211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaNnJ-000661-Ob for qemu-devel@nongnu.org; Fri, 11 Sep 2015 08:51:09 -0400 From: Victor CLEMENT Date: Fri, 11 Sep 2015 14:50:23 +0200 Message-Id: <1441975830-11828-1-git-send-email-victor.clement@openwide.fr> Subject: [Qemu-devel] [PATCH 0/7] Qemu scenario engine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: victor.clement@outlook.com, Victor CLEMENT , julien.viarddegalbert@openwide.fr This patch introduce a testing component for Qemu guest OS: the scenario engine. The Qemu scenario engine is a framework designed to test the software running on the guest machine. It allows interacting with the guest virtual devices by stimulating inputs and reading outputs from outside of the virtual machine. It also provides an utility to schedule precise time based events to run through a "test scenario". As it is a whole subsystem, a github repository providing a complete documentation and a demonstration is available at the following address: https://github.com/Openwide-Ingenierie/qemu-scenario-engine-demo Victor CLEMENT (7): configure: add --enable-scenario-engine option gpio-pl061: add a scenario engine interaction API chardev: add a scenario engine backend scenario-engine: add utilities scenario-engine: add a time based event scheduler scenario engine: provide a scenario file template scenario engine: add a Qemu option to start it Makefile.objs | 8 ++ backends/Makefile.objs | 1 + backends/scenario.c | 107 +++++++++++++++++++++++++ configure | 8 ++ hw/gpio/pl061.c | 38 +++++++++ include/hw/gpio/pl061_simu.h | 20 +++++ include/scenario/scenario.h | 5 ++ include/scenario/scheduler.h | 26 ++++++ include/scenario/utils.h | 23 ++++++ include/sysemu/char.h | 13 +++ qapi-schema.json | 3 +- qemu-char.c | 5 ++ qemu-options.hx | 12 +++ scenario/scenario.c | 168 ++++++++++++++++++++++++++++++++++++++ scenario/scheduler.c | 186 +++++++++++++++++++++++++++++++++++++++++++ scenario/utils.c | 65 +++++++++++++++ vl.c | 45 ++++++++++- 17 files changed, 731 insertions(+), 2 deletions(-) create mode 100644 backends/scenario.c create mode 100644 include/hw/gpio/pl061_simu.h create mode 100644 include/scenario/scenario.h create mode 100644 include/scenario/scheduler.h create mode 100644 include/scenario/utils.h create mode 100644 scenario/scenario.c create mode 100644 scenario/scheduler.c create mode 100644 scenario/utils.c -- 2.5.1