From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVKEd-0001OO-5d for qemu-devel@nongnu.org; Mon, 15 Feb 2016 09:34:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVKEZ-0006b3-4g for qemu-devel@nongnu.org; Mon, 15 Feb 2016 09:34:43 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:33033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVKEY-0006ay-Hz for qemu-devel@nongnu.org; Mon, 15 Feb 2016 09:34:38 -0500 Received: by mail-wm0-x236.google.com with SMTP id g62so151624969wme.0 for ; Mon, 15 Feb 2016 06:34:38 -0800 (PST) References: <1454664263-25969-1-git-send-email-famz@redhat.com> <1454664263-25969-7-git-send-email-famz@redhat.com> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <1454664263-25969-7-git-send-email-famz@redhat.com> Date: Mon, 15 Feb 2016 14:34:35 +0000 Message-ID: <87wpq6m490.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 06/12] docker: Add basic test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, peter.maydell@linaro.org, sw@weilnetz.de, qemu-devel@nongnu.org, stefanha@redhat.com, Paolo Bonzini , jsnow@redhat.com, david@gibson.dropbear.id.au Fam Zheng writes: > Signed-off-by: Fam Zheng > --- > tests/docker/test-basic.sh | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100755 tests/docker/test-basic.sh > > diff --git a/tests/docker/test-basic.sh b/tests/docker/test-basic.sh > new file mode 100755 > index 0000000..c2b32ad > --- /dev/null > +++ b/tests/docker/test-basic.sh > @@ -0,0 +1,22 @@ > +#!/bin/bash -e > +# > +# Basic compiling test that everyone already does. But why not automate it? > +# > +# Copyright (c) 2016 Red Hat Inc. > +# > +# Authors: > +# Fam Zheng > +# > +# This work is licensed under the terms of the GNU GPL, version 2 > +# or (at your option) any later version. See the COPYING file in > +# the top-level directory. > + > +. common.rc > + > +cd $(mktemp -d) > +mkdir build > +mkdir install > +cd build > +build_qemu --target-list=x86_64-softmmu --prefix="${pwd}/install" > +make check $MAKEFLAGS > +make install >>From my excursions last week into the tests directory I discovered the unit tests are built for a number of different qtest binaries. For completeness we should probably include the whole list: #+name: qtest-targets #+begin_src sh :dir ~/lsrc/qemu/qemu.git :results scalar grep -E "check-qtest-[[:alnum:]]+-y " tests/Makefile | cut -d " " -f 1 | sort -u #+end_src #+RESULTS: qtest-targets #+begin_example check-qtest-arm-y check-qtest-generic-y check-qtest-i386-y check-qtest-ipack-y check-qtest-microblazeel-y check-qtest-mips64el-y check-qtest-mips64-y check-qtest-mips-y check-qtest-pci-y check-qtest-ppc64-y check-qtest-ppc-y check-qtest-sh4eb-y check-qtest-sh4-y #check-qtest-sparc64-y check-qtest-sparc64-y #check-qtest-sparc-y check-qtest-virtioserial-y check-qtest-virtio-y check-qtest-x86_64-y check-qtest-xtensaeb-y check-qtest-y #+end_example -- Alex Bennée