From patchwork Thu Mar 17 06:35:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fam Zheng X-Patchwork-Id: 8607401 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5D2E4C0553 for ; Thu, 17 Mar 2016 06:41:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 906D8202A1 for ; Thu, 17 Mar 2016 06:41:18 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A8619202F0 for ; Thu, 17 Mar 2016 06:41:17 +0000 (UTC) Received: from localhost ([::1]:32837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agRcT-0001h8-4N for patchwork-qemu-devel@patchwork.kernel.org; Thu, 17 Mar 2016 02:41:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agRX4-0006vF-CA for qemu-devel@nongnu.org; Thu, 17 Mar 2016 02:35:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agRX3-00082e-6z for qemu-devel@nongnu.org; Thu, 17 Mar 2016 02:35:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agRX3-00082Z-2M for qemu-devel@nongnu.org; Thu, 17 Mar 2016 02:35:41 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id A7B0964381; Thu, 17 Mar 2016 06:35:40 +0000 (UTC) Received: from fam-t430.redhat.com (vpn1-6-202.pek2.redhat.com [10.72.6.202]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2H6Z6ZB002734; Thu, 17 Mar 2016 02:35:37 -0400 From: Fam Zheng To: qemu-devel@nongnu.org Date: Thu, 17 Mar 2016 14:35:00 +0800 Message-Id: <1458196505-5473-9-git-send-email-famz@redhat.com> In-Reply-To: <1458196505-5473-1-git-send-email-famz@redhat.com> References: <1458196505-5473-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 17 Mar 2016 06:35:40 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, peter.maydell@linaro.org, jsnow@redhat.com, stefanha@redhat.com, sw@weilnetz.de, Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , david@gibson.dropbear.id.au Subject: [Qemu-devel] [PATCH v4 08/13] docker: Add clang test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 +build_qemu $OPTS +make $MAKEFLAGS check