From patchwork Wed Apr 1 20:45:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 46664 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4B8C0216D1 for ; Wed, 1 Apr 2015 20:47:40 +0000 (UTC) Received: by labgx2 with SMTP id gx2sf9155731lab.1 for ; Wed, 01 Apr 2015 13:47:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=a8u8TeUCCB7AYqmDLBv9BsJKjsAKzniK8sUAIw6Eg0s=; b=lDaZsyp4IMkbTogKzvwySu1aYAwgUqFeRhjAZkoDG3ycURuUGm3UtCZI2RINVCfypi WFKw92+fnkSYVjuQYVm2vV4DN/javcn0JW1CmIu/8zvjkq2b5v7d/pxurGMyZGl3+N8p SqPkIVnc+c0jTAf3nb9sI2uqswdk9VYOekQEC7knpdSzPijvOcjJmgsU77zCI3RZbSEx PCAqbAHtPDIHnoE6QnIrEYVHKOKCV8o4FfYPSqBX01EekvJFNpJJ+m8pO8gh537n1vvr fPnykggfNvztfKi2fS7HAqvblimk04fBJHgqgVSCvwHiqwml9vTOs9H3aoZoWUf/1NVq hXXg== X-Gm-Message-State: ALoCoQkUYctQGqQbO/cYnhd2hNiY+35AY6zNo9vmYj3dFZDVGzrFLkokmAM2qHAoA6saHPqBwmhg X-Received: by 10.152.23.7 with SMTP id i7mr3151036laf.1.1427921259076; Wed, 01 Apr 2015 13:47:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.67 with SMTP id l3ls131713lae.93.gmail; Wed, 01 Apr 2015 13:47:38 -0700 (PDT) X-Received: by 10.152.37.202 with SMTP id a10mr38456069lak.0.1427921258895; Wed, 01 Apr 2015 13:47:38 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id e5si2511407lbm.108.2015.04.01.13.47.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 13:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lajy8 with SMTP id y8so45889745laj.0 for ; Wed, 01 Apr 2015 13:47:38 -0700 (PDT) X-Received: by 10.152.26.34 with SMTP id i2mr16137586lag.117.1427921258675; Wed, 01 Apr 2015 13:47:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp908345lbq; Wed, 1 Apr 2015 13:47:37 -0700 (PDT) X-Received: by 10.140.44.134 with SMTP id g6mr55382274qga.85.1427921256194; Wed, 01 Apr 2015 13:47:36 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w69si2995878qha.88.2015.04.01.13.47.34; Wed, 01 Apr 2015 13:47:36 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id C3F1265026; Wed, 1 Apr 2015 20:47:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id BB26965017; Wed, 1 Apr 2015 20:46:13 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0245965029; Wed, 1 Apr 2015 20:46:06 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by lists.linaro.org (Postfix) with ESMTPS id 8A92B6500D for ; Wed, 1 Apr 2015 20:46:01 +0000 (UTC) Received: by lboc7 with SMTP id c7so45337032lbo.1 for ; Wed, 01 Apr 2015 13:46:00 -0700 (PDT) X-Received: by 10.112.14.106 with SMTP id o10mr36373337lbc.2.1427921160558; Wed, 01 Apr 2015 13:46:00 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id wl9sm619229lbb.11.2015.04.01.13.45.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 13:46:00 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Wed, 1 Apr 2015 22:45:52 +0200 Message-Id: <1427921152-31505-5-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1427921152-31505-1-git-send-email-anders.roxell@linaro.org> References: <1427921152-31505-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 4/4] test: enable valgrind check X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Valgrind will enable memcheck, drd and sgcheck by default Signed-off-by: Anders Roxell --- configure.ac | 5 +++++ m4/ax_valgrind_check.m4 | 2 +- test/Makefile.inc | 3 +++ test/README | 6 ++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 57054c5..c92f5fd 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,11 @@ AC_TYPE_UINT32_T AC_TYPE_UINT64_T ########################################################################## +# Allow valgrind suite to run against the defined tests +########################################################################## +AX_VALGRIND_CHECK + +########################################################################## # Set correct platform library version ########################################################################## AGE=0 diff --git a/m4/ax_valgrind_check.m4 b/m4/ax_valgrind_check.m4 index 25d5b09..ff05f56 100644 --- a/m4/ax_valgrind_check.m4 +++ b/m4/ax_valgrind_check.m4 @@ -114,7 +114,7 @@ VALGRIND_drd_FLAGS ?= VALGRIND_sgcheck_FLAGS ?= # Internal use -valgrind_tools = memcheck helgrind drd sgcheck +valgrind_tools ?= memcheck helgrind drd sgcheck valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools))) valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS) diff --git a/test/Makefile.inc b/test/Makefile.inc index 93ead25..e20a848 100644 --- a/test/Makefile.inc +++ b/test/Makefile.inc @@ -12,3 +12,6 @@ AM_CFLAGS += $(INCFLAGS) AM_CXXFLAGS = $(INCFLAGS) AM_LDFLAGS += -L$(LIB) + +@VALGRIND_CHECK_RULES@ +valgrind_tools = memcheck drd sgcheck diff --git a/test/README b/test/README index a86e01a..b3aa3ab 100644 --- a/test/README +++ b/test/README @@ -8,3 +8,9 @@ ensure that the ODP API Implementations all perform identically and to specification. Tests inside the validation directory shall be platform independent. However, they may need platform dependent environment configuration. + +To run valgrind on the executables do: +$ ./bootstrap +$ ./configure --enable-test-vald --enable-valgrind +$ cd test/validation +$ make check-valgrind