From patchwork Fri Jul 10 00:44:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50992 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 BFACC228E5 for ; Fri, 10 Jul 2015 00:46:44 +0000 (UTC) Received: by lagw2 with SMTP id w2sf361599lag.3 for ; Thu, 09 Jul 2015 17:46:43 -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:cc: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=CfA+wwFM32/6HGaeVP4/NKns+SEhfnAFz6KgXBbi2ec=; b=H1c2zx4YetwD7F6i1J1LsqCRCeY/L7H9kFgFsdTv2PogZTO58uLk8WcxINupwEjCzA yE6rbWhXyqASkqEDIftQ7srUqdX17/ooOkyQDPiZHQmLpuIXrstIxZXnJvfbT5GhIh5j lrkSR8XajOippzJpx+E5ysgHMhBTkLFNAo09UGvgLceKfjrNiJkt5ZfdksQ1Jlkl2c7b W0HjsEK9UABZbNz77A/3nUWm3NsI1uaEAoweQl/Z8TlWKZm7asjgFN771mAZqu9g9V6V DSjdyjNZ2/0jvS8pOCiyQLnmROAUvMlXEIo913dXvU4WFgPQ/1EJNhRPyC4T3bNZQhdP sveA== X-Gm-Message-State: ALoCoQlrZdOt2hmrv5FxxLvMJcjAtGlH4/4w91H+fx8oySzlGUp+TK+p6sULdnVWscNqCeYiQkIv X-Received: by 10.152.2.196 with SMTP id 4mr9356649law.10.1436489203731; Thu, 09 Jul 2015 17:46:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.98 with SMTP id c2ls4281laf.7.gmail; Thu, 09 Jul 2015 17:46:43 -0700 (PDT) X-Received: by 10.112.140.9 with SMTP id rc9mr17504504lbb.14.1436489203455; Thu, 09 Jul 2015 17:46:43 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id f6si5865872lam.85.2015.07.09.17.46.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:46:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by laar3 with SMTP id r3so256630243laa.0 for ; Thu, 09 Jul 2015 17:46:43 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr17280672lbb.36.1436489203310; Thu, 09 Jul 2015 17:46:43 -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.108.230 with SMTP id hn6csp1010811lbb; Thu, 9 Jul 2015 17:46:42 -0700 (PDT) X-Received: by 10.55.17.197 with SMTP id 66mr9030246qkr.90.1436489202102; Thu, 09 Jul 2015 17:46:42 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 134si8660118qhs.73.2015.07.09.17.46.40; Thu, 09 Jul 2015 17:46:42 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id AFF8F6207D; Fri, 10 Jul 2015 00:46:40 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled 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 ADF0C6206D; Fri, 10 Jul 2015 00:45:16 +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 07D6C6208B; Fri, 10 Jul 2015 00:45:13 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id 9A9F86206D for ; Fri, 10 Jul 2015 00:44:43 +0000 (UTC) Received: by lbnk3 with SMTP id k3so84025961lbn.1 for ; Thu, 09 Jul 2015 17:44:42 -0700 (PDT) X-Received: by 10.112.140.72 with SMTP id re8mr17283913lbb.109.1436489082130; Thu, 09 Jul 2015 17:44:42 -0700 (PDT) Received: from localhost.localdomain (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id o18sm1936473lbg.1.2015.07.09.17.44.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:41 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 10 Jul 2015 02:44:14 +0200 Message-Id: <1436489068-8929-4-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1436489068-8929-1-git-send-email-christophe.milard@linaro.org> References: <1436489068-8929-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 03/17] validation: shmem: lib populated 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: christophe.milard@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.52 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 test symbols are now exported in the module lib. Signed-off-by: Christophe Milard --- test/validation/shmem/shmem.c | 6 +++--- test/validation/shmem/shmem.h | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/test/validation/shmem/shmem.c b/test/validation/shmem/shmem.c index 0c713c6..3abba0c 100644 --- a/test/validation/shmem/shmem.c +++ b/test/validation/shmem/shmem.c @@ -44,7 +44,7 @@ static void *run_shm_thread(void *arg) return arg; } -static void shmem_test_odp_shm_sunnyday(void) +void shmem_test_odp_shm_sunnyday(void) { pthrd_arg thrdarg; odp_shm_t shm; @@ -76,12 +76,12 @@ static void shmem_test_odp_shm_sunnyday(void) odp_cunit_thread_exit(&thrdarg); } -static CU_TestInfo shmem_suite[] = { +CU_TestInfo shmem_suite[] = { {"test_odp_shm_creat", shmem_test_odp_shm_sunnyday}, CU_TEST_INFO_NULL, }; -static CU_SuiteInfo shmem_suites[] = { +CU_SuiteInfo shmem_suites[] = { {"Shared Memory", NULL, NULL, NULL, NULL, shmem_suite}, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/shmem/shmem.h b/test/validation/shmem/shmem.h index 9b79027..924c796 100644 --- a/test/validation/shmem/shmem.h +++ b/test/validation/shmem/shmem.h @@ -4,4 +4,16 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include + +/* test functions: */ +void shmem_test_odp_shm_sunnyday(void); + +/* test arrays: */ +extern CU_TestInfo shmem_suite[]; + +/* test registery: */ +extern CU_SuiteInfo shmem_suites[]; + +/* main test program: */ int shmem_main(void);