Received: from eggs.gnu.org ([2001:4830:134:3::10]:60631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfUX3-00084i-6l for qemu-devel@nongnu.org; Fri, 25 Sep 2015 11:03:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfUWw-0000bm-MQ for qemu-devel@nongnu.org; Fri, 25 Sep 2015 11:03:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfUWw-0000bO-Hx for qemu-devel@nongnu.org; Fri, 25 Sep 2015 11:03:22 -0400 From: Markus Armbruster References: <1443121042-3409-1-git-send-email-armbru@redhat.com> <1443121042-3409-5-git-send-email-armbru@redhat.com> <56051F3D.70900@redhat.com> <56051F93.3050800@suse.de> Date: Fri, 25 Sep 2015 16:13:07 +0200 In-Reply-To: <56051F93.3050800@suse.de> ("Andreas =?utf-8?Q?F=C3=A4rber=22?= =?utf-8?Q?'s?= message of "Fri, 25 Sep 2015 12:18:59 +0200") Message-ID: <878u7u37v0.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 4/7] device-introspect-test: New, covering device introspection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?Q?F=C3=A4rber?= Cc: Thomas Huth , ehabkost@redhat.com, stefanha@redhat.com, qemu-devel@nongnu.org Andreas F=C3=A4rber writes: > Am 25.09.2015 um 12:17 schrieb Thomas Huth: >> On 24/09/15 20:57, Markus Armbruster wrote: >>> The test doesn't check that the output makes any sense, only that QEMU >>> survives. Useful since we've had an astounding number of crash bugs >>> around there. >>> >>> In fact, we have a bunch of them right now: several devices crash or >>> hang, and all CPUs leave a dangling pointer behind. The test skips >>> testing the broken parts. The next commits will fix them, and drop >>> the skipping. >>> >>> Signed-off-by: Markus Armbruster >>> Reviewed-by: Eric Blake >>> --- >>> tests/Makefile | 8 ++- >>> tests/device-introspect-test.c | 153 >>> +++++++++++++++++++++++++++++++++++++++++ >>> 2 files changed, 158 insertions(+), 3 deletions(-) >>> create mode 100644 tests/device-introspect-test.c >>=20 >> Hi Markus, >>=20 >> just a quick note: When I run the tester directly, it aborts: >>=20 >> $ tests/boot-order-test >> ** >> ERROR:/home/thuth/devel/qemu/tests/libqtest.c:517:qtest_get_arch: >> assertion failed: (qemu !=3D NULL) >> Aborted (core dumped) >>=20 >> ... that's a little bit ugly, maybe you could print the help text instea= d? > > That's got nothing to do with his test, all QTests require environment > variables set in the Makefile. Feel free to send a patch for qtest.c. Here's an example run I fished out of my bash history: $ QTEST_QEMU_BINARY=3D"ppc64-softmmu/qemu-system-ppc64" QTEST_QEMU_IMG=3Dqe= mu-img MALLOC_PERTURB_=3D${MALLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester = -k --verbose -m=3Dquick tests/device-help-test Or with valgrind spliced in: $ QTEST_QEMU_BINARY=3D"valgrind --vgdb-error=3D1 --log-file=3Dvg.log ppc64-= softmmu/qemu-system-ppc64" QTEST_QEMU_IMG=3Dqemu-img MALLOC_PERTURB_=3D${MA= LLOC_PERTURB_:-$((RANDOM % 255 + 1))} gtester -k --verbose -m=3Dquick tests= /device-help-test