From patchwork Mon Jul 27 17:38:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51550 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 837D022918 for ; Mon, 27 Jul 2015 17:41:44 +0000 (UTC) Received: by lbbvz8 with SMTP id vz8sf30028803lbb.2 for ; Mon, 27 Jul 2015 10:41: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=y4Q8GAT5QeFJSlbM3RGSBSMXzoZrhZcpRrqBz7khlCM=; b=NeykTs6Ln0Hq5IYj5RhE8kPtM1JpxJ8WpwyziyvjNWukkuRvIlZu2EKq8DVsihPbOU he4HfDPofm745KONaziNifSDQza2RCg84rJzrPeEPLJw8UYtzZeHtZ/xdFeUWLfSuObW cT5EnIVWwoLfM/3InO5v9Q6FhGU/43B7krZLvMjYRZXvIAeytB7I0FpejsdhJcK63EgQ zE/l0KoYOEc9mnFGad1LRlnXmdPdwgKrUujPVSazTkxOyaC4hL3kKJQo5f1GNvsKdlSF MmW8vehAPWUpy/2Ca2vQhp81eMbZtWENFpkuRt3+UEh5oLcFNTzgkEnOGAbvfJwd+JYV OBsw== X-Gm-Message-State: ALoCoQmS0pAqZhNTt4p2oiMon9hiM1fOKoxfN0EWME0hBHKGXSv0C6kgMweztq0XPULSUxHeMbWk X-Received: by 10.112.51.177 with SMTP id l17mr12564758lbo.1.1438018903453; Mon, 27 Jul 2015 10:41:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.74 with SMTP id k10ls700965laf.30.gmail; Mon, 27 Jul 2015 10:41:43 -0700 (PDT) X-Received: by 10.152.204.43 with SMTP id kv11mr28234843lac.15.1438018903305; Mon, 27 Jul 2015 10:41:43 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id du6si15847757lbc.41.2015.07.27.10.41.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:41:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbyj8 with SMTP id yj8so58519678lbb.0 for ; Mon, 27 Jul 2015 10:41:43 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr28005552lav.36.1438018903053; Mon, 27 Jul 2015 10:41: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.7.198 with SMTP id l6csp1660026lba; Mon, 27 Jul 2015 10:41:42 -0700 (PDT) X-Received: by 10.140.232.206 with SMTP id d197mr45387147qhc.18.1438018901719; Mon, 27 Jul 2015 10:41:41 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s32si21784175qge.75.2015.07.27.10.41.41; Mon, 27 Jul 2015 10:41:41 -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 04FC161817; Mon, 27 Jul 2015 17:41:41 +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 9130161DF1; Mon, 27 Jul 2015 17:39:49 +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 F3AE861DB5; Mon, 27 Jul 2015 17:39:42 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by lists.linaro.org (Postfix) with ESMTPS id 99B6861DB5 for ; Mon, 27 Jul 2015 17:39:14 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8so58475543lbb.0 for ; Mon, 27 Jul 2015 10:39:13 -0700 (PDT) X-Received: by 10.112.50.177 with SMTP id d17mr27993542lbo.18.1438018753589; Mon, 27 Jul 2015 10:39:13 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id 4sm4027442lai.36.2015.07.27.10.39.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:12 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Mon, 27 Jul 2015 19:38:38 +0200 Message-Id: <1438018732-2778-7-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438018732-2778-1-git-send-email-christophe.milard@linaro.org> References: <1438018732-2778-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3 06/20] 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.217.181 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 f9cf523..8de0bc6 100644 --- a/test/validation/shmem/shmem.h +++ b/test/validation/shmem/shmem.h @@ -7,6 +7,18 @@ #ifndef _ODP_TEST_SHMEM_H_ #define _ODP_TEST_SHMEM_H_ +#include + +/* test functions: */ +void shmem_test_odp_shm_sunnyday(void); + +/* test arrays: */ +extern CU_TestInfo shmem_suite[]; + +/* test registry: */ +extern CU_SuiteInfo shmem_suites[]; + +/* main test program: */ int shmem_main(void); #endif