From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6AxS-000640-KE for qemu-devel@nongnu.org; Fri, 27 May 2016 02:09:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6AxN-0003wW-Mz for qemu-devel@nongnu.org; Fri, 27 May 2016 02:09:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6AxN-0003wP-H3 for qemu-devel@nongnu.org; Fri, 27 May 2016 02:09:13 -0400 From: Fam Zheng Date: Fri, 27 May 2016 14:08:27 +0800 Message-Id: <1464329312-12738-10-git-send-email-famz@redhat.com> In-Reply-To: <1464329312-12738-1-git-send-email-famz@redhat.com> References: <1464329312-12738-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 09/14] docker: Add clang test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: qemu-devel@nongnu.org The (currently partially commented out) configure options are suggested by John Snow . Signed-off-by: Fam Zheng Reviewed-by: Alex Benn=C3=A9e Message-id: 1463986466-764-10-git-send-email-famz@redhat.com --- tests/docker/test-clang | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..6745dbe --- /dev/null +++ b/tests/docker/test-clang @@ -0,0 +1,26 @@ +#!/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=3D"--enable-debug --cxx=3Dclang++ --cc=3Dclang --host-cc=3Dclang" +# -fsanitize=3Dundefined is broken on Fedora 23, skip it for now +# See also: https://bugzilla.redhat.com/show_bug.cgi?id=3D1263834 +#OPTS=3D"$OPTS --extra-cflags=3D-fsanitize=3Dundefined \ + #--extra-cflags=3D-fno-sanitize=3Dfloat-divide-by-zero" +DEF_TARGET_LIST=3D"$(echo {x86_64,aarch64}-softmmu)" +TARGET_LIST=3D${TARGET_LIST:-$DEF_TARGET_LIST} \ +build_qemu $OPTS +make $MAKEFLAGS check --=20 2.8.2