From patchwork Tue Jan 16 14:16:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 861632 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="l7G4wEz2"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zLXtk1DXgz9s7n for ; Wed, 17 Jan 2018 01:39:58 +1100 (AEDT) Received: from localhost ([::1]:39338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebSP6-0003fu-6S for incoming@patchwork.ozlabs.org; Tue, 16 Jan 2018 09:39:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebS3s-0002qP-L3 for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebS3q-0004Z5-Sn for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:00 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:36074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebS3q-0004Yt-M3 for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:17:58 -0500 Received: by mail-wm0-x241.google.com with SMTP id f3so9001679wmc.1 for ; Tue, 16 Jan 2018 06:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/GJp4oucjpCmBnwvIqua8KMXlL7dFqV8UIOpQt0jQTc=; b=l7G4wEz2USxxPyxdowwHEH4Y/TI4JkF7kziQb+VTxz9zjCGv/QFCaeQbri1I3mzmOk vxGXmPNZgXwQ7VZV/mqiEs7uB2VCm4I0DoP6NPNCDo220BiJVRy4CZGxCdjghHgZM1GP 0yiGI6cb6wt1SLmLMHb4YMMaIPiRQL4fH8vRFuHr6nARQH7t2UMcDs46lBuFtWIo4K2N 8IRRlgrS7p6hP4SgWT9HdLHNqaZZ0CLnsfzEnoZxtYfd54d5Pp8X1yw2l1IyidXFCZW6 XGeJOuOojEuvpfxwGiSHOVDMnXnPdLKOrmzqv4lWVTBi7JyYaxAWG9bGERl1i7Mddryp 5PPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=/GJp4oucjpCmBnwvIqua8KMXlL7dFqV8UIOpQt0jQTc=; b=sFu76Ql+ajl8Xny3rsgIztccF2jDmUEhCZpnoQpH4TT4b8+jeg3D00S32PgMHq+oeG 07NLy8TpsfzGW+paHx/rJydc+EavdyNP6ckpy6NOEU0509MVW2PDthTh1M1BCGR/lFbB LxZCj09yOY7Hrjxh93zfsiOFfwOml0ji8FVbTCiyPwt9brHTE7r+XRGTZax1h51Q3HPF aKWSdLMS1PJXCYaRKKnG9jw5IEmOMrSGw102E9hQwkaF/MgzcHHmANWXoTLSHxtMgLDM PL6myz7sD2OQT4d9U9a0yf7GqjP0EePWkmLn+Xk2NE2MC8nS30IHXljQhXlp/7iSJqoG 3MBg== X-Gm-Message-State: AKwxytdLTsrZtOCredabp0bAw2xXX650kDn+T8ZHDubSFi0hJRRlyEWs 6aFtUnxUfv5dZRcc/FayatffgSZ+ X-Google-Smtp-Source: ACJfBovAKmsh5szP7LOj1hHlbTl4J+atq8oct6pmQZewIDRsDLuh48tsG458VMxidZ7ng7OWsm+HAw== X-Received: by 10.28.153.79 with SMTP id b76mr13389363wme.47.1516112277219; Tue, 16 Jan 2018 06:17:57 -0800 (PST) Received: from 640k.lan (dynamic-adsl-78-12-229-84.clienti.tiscali.it. [78.12.229.84]) by smtp.gmail.com with ESMTPSA id u10sm1537758wrg.6.2018.01.16.06.17.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 06:17:56 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 16 Jan 2018 15:16:56 +0100 Message-Id: <1516112253-14480-15-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1516112253-14480-1-git-send-email-pbonzini@redhat.com> References: <1516112253-14480-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PULL 14/51] tests/docker: add test-debug X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Marc-André Lureau Add a new test with --enable-debug using clang/asan/ubsan, remove --enable-debug from test-clang & test-mingw. Signed-off-by: Marc-André Lureau Message-Id: <20180104160523.22995-7-marcandre.lureau@redhat.com> Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- tests/docker/test-clang | 2 +- tests/docker/test-debug | 26 ++++++++++++++++++++++++++ tests/docker/test-mingw | 2 -- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100755 tests/docker/test-debug diff --git a/tests/docker/test-clang b/tests/docker/test-clang index 1eb61a3..e90a793 100755 --- a/tests/docker/test-clang +++ b/tests/docker/test-clang @@ -17,7 +17,7 @@ requires clang cd "$BUILD_DIR" -OPTS="--enable-debug --cxx=clang++ --cc=clang --host-cc=clang" +OPTS="--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 \ diff --git a/tests/docker/test-debug b/tests/docker/test-debug new file mode 100755 index 0000000..d020b06 --- /dev/null +++ b/tests/docker/test-debug @@ -0,0 +1,26 @@ +#!/bin/bash -e +# +# Compile and check with clang & --enable-debug. +# +# Copyright (c) 2016-2018 Red Hat Inc. +# +# Authors: +# Fam Zheng +# Marc-André Lureau +# +# 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 asan + +cd "$BUILD_DIR" + +OPTS="--cxx=clang++ --cc=clang --host-cc=clang" +OPTS="--enable-debug $OPTS" + +build_qemu $OPTS +make $MAKEFLAGS check +install_qemu diff --git a/tests/docker/test-mingw b/tests/docker/test-mingw index 39a1da4..503a6bc 100755 --- a/tests/docker/test-mingw +++ b/tests/docker/test-mingw @@ -22,7 +22,6 @@ for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \ build_qemu --cross-prefix=$prefix \ --enable-trace-backends=simple \ - --enable-debug \ --enable-gnutls \ --enable-nettle \ --enable-curl \ @@ -35,4 +34,3 @@ for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do make clean done -