From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctUqW-0001Wz-5A for qemu-devel@nongnu.org; Thu, 30 Mar 2017 03:50:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctUqQ-0006Wy-D7 for qemu-devel@nongnu.org; Thu, 30 Mar 2017 03:50:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34268) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ctUqQ-0006Uq-85 for qemu-devel@nongnu.org; Thu, 30 Mar 2017 03:50:10 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4B680C03BD62 for ; Thu, 30 Mar 2017 07:50:09 +0000 (UTC) From: Thomas Huth Date: Thu, 30 Mar 2017 09:50:04 +0200 Message-Id: <1490860207-8302-1-git-send-email-thuth@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] Add a tester for HMP commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" , qemu-devel@nongnu.org Cc: Markus Armbruster We currently do not test HMP commands automatically yet, so if they break, we do not notice this until somebody runs into the problem (like the "info qtree" problem that we recently had on qemu-system-ppc64). So let's add a simple tester that runs some HMP commands to check if they can crash or abort QEMU. Note: Three boards (isapc, puv3 and tricore_testboard) are currently still blacklisted in the third patch due to crashes/aborts in HMP commands there. I've added the problems to our BiteSizeTasks wiki page, so I hope they will get fixed by GSoC students or somebody else soon. Once the problems are fixed, the blacklisting of these boards can be removed in the tester, too. v2: - Blacklist the boards "xenpv" and "xenfv" since they can not be used without Xen (i.e. in plain TCG mode). Thomas Huth (3): libqtest: Ignore QMP events when parsing the response for HMP commands libqtest: Add a generic function to run a callback function for every machine tests: Add a tester for HMP commands tests/Makefile.include | 2 + tests/libqtest.c | 36 +++++++++++ tests/libqtest.h | 8 +++ tests/pc-cpu-test.c | 95 +++++++++++------------------ tests/qom-test.c | 36 ++--------- tests/test-hmp.c | 161 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 249 insertions(+), 89 deletions(-) create mode 100644 tests/test-hmp.c -- 1.8.3.1