From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alcf2-0000Jz-6p for qemu-devel@nongnu.org; Thu, 31 Mar 2016 09:29:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alcex-0005kQ-7r for qemu-devel@nongnu.org; Thu, 31 Mar 2016 09:29:20 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:35410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alcex-0005kI-0T for qemu-devel@nongnu.org; Thu, 31 Mar 2016 09:29:15 -0400 Received: by mail-wm0-x22e.google.com with SMTP id 191so126557702wmq.0 for ; Thu, 31 Mar 2016 06:29:14 -0700 (PDT) References: <1458196505-5473-1-git-send-email-famz@redhat.com> <1458196505-5473-9-git-send-email-famz@redhat.com> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <1458196505-5473-9-git-send-email-famz@redhat.com> Date: Thu, 31 Mar 2016 14:29:16 +0100 Message-ID: <87y48yg4ib.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 08/13] docker: Add clang 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: > The (currently partially commented out) configure options are suggested > by John Snow . > > Reviewed-by: Alex Bennée > Signed-off-by: Fam Zheng > --- > tests/docker/test-clang | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > create mode 100755 tests/docker/test-clang > > diff --git a/tests/docker/test-clang b/tests/docker/test-clang > new file mode 100755 > index 0000000..7b5e65e > --- /dev/null > +++ b/tests/docker/test-clang > @@ -0,0 +1,25 @@ > +#!/bin/bash -e > +# > +# Compile and check with clang. > +# > +# 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 > + > +requires clang > + > +OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang" > +# -fsanitize=undefined is broken on Fedora 23, skip it for now > +# See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834 > +#OPTS="$OPTS --extra-cflags=-fsanitize=undefined \ > + #--extra-cflags=-fno-sanitize=float-divide-by-zero" > +TARGET_LIST=x86_64-softmmu,aarch64-softmmu We should be able to override the TARGET_LIST the same way as the quick test. In fact it is basically the same as test-quick with: - a requires - a specific default set of configure input > +build_qemu $OPTS > +make $MAKEFLAGS check -- Alex Bennée