From patchwork Mon Jul 27 17:38:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51560 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id A311A22918 for ; Mon, 27 Jul 2015 17:48:37 +0000 (UTC) Received: by laef2 with SMTP id f2sf30143800lae.0 for ; Mon, 27 Jul 2015 10:48:36 -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=+s3To0E9DkyUczQ7SsfWuw9EDxuu4fo5u4LmMXF399g=; b=U+9zxW1O92xljEHZtt1gAUgdRN30o2IAW+5UCBeWgvEmlwal6GNvBEtunQCDI8xZJk +dMoRU4GNE69MkTZ0OOed4uu2od0o1bQg8fRvSqe2W1CddrVHxkMwW8c9v28jWBeZJuR FUxzbcUciHGx0WR5ikSISqx+hal7ChfhdbU9wTyuEFvknlOA6kdxkIakM+mEmBcKBeue Bxs6xmR4K4xhvvP2BSiM3gIpmfiY0fo1SWuPAlrZwZlipmpfWxhgR13ZMoqVEKnAhH2V n9uDwk1yV9nTe4svycW/wizWZX6tx/EO8c2xTsXLfsy7sRDbY9cbwM55yLmomiyAg2i+ F13w== X-Gm-Message-State: ALoCoQlJnkc7QgiofT3bf+dJuOMYvwQU7wg7e9KZo1/RuSVh41LumAm8V23OfBwEvgRRr5sdCDi9 X-Received: by 10.180.90.106 with SMTP id bv10mr5715251wib.6.1438019316323; Mon, 27 Jul 2015 10:48:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.7 with SMTP id bc7ls697062lab.74.gmail; Mon, 27 Jul 2015 10:48:36 -0700 (PDT) X-Received: by 10.112.145.169 with SMTP id sv9mr14846458lbb.73.1438019316092; Mon, 27 Jul 2015 10:48:36 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id xg7si15861818lbb.48.2015.07.27.10.48.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:48:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbbqi7 with SMTP id qi7so58548928lbb.3 for ; Mon, 27 Jul 2015 10:48:36 -0700 (PDT) X-Received: by 10.112.120.134 with SMTP id lc6mr28258801lbb.86.1438019315919; Mon, 27 Jul 2015 10:48:35 -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 l6csp1662888lba; Mon, 27 Jul 2015 10:48:35 -0700 (PDT) X-Received: by 10.140.135.80 with SMTP id 77mr45822959qhh.8.1438019314475; Mon, 27 Jul 2015 10:48:34 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 200si21750067qhh.75.2015.07.27.10.48.33; Mon, 27 Jul 2015 10:48:34 -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 9C83361DD6; Mon, 27 Jul 2015 17:48:33 +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 0C35C61E23; Mon, 27 Jul 2015 17:40:51 +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 9128961DC0; Mon, 27 Jul 2015 17:40:36 +0000 (UTC) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by lists.linaro.org (Postfix) with ESMTPS id 32BCF61DD5 for ; Mon, 27 Jul 2015 17:39:26 +0000 (UTC) Received: by lagw2 with SMTP id w2so53589732lag.3 for ; Mon, 27 Jul 2015 10:39:25 -0700 (PDT) X-Received: by 10.152.182.194 with SMTP id eg2mr28109554lac.71.1438018765179; Mon, 27 Jul 2015 10:39:25 -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.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:23 -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:46 +0200 Message-Id: <1438018732-2778-15-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 14/20] validation: thread: 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.179 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/thread/thread.c | 14 +++++++------- test/validation/thread/thread.h | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/test/validation/thread/thread.c b/test/validation/thread/thread.c index 6fbdaef..f95172a 100644 --- a/test/validation/thread/thread.c +++ b/test/validation/thread/thread.c @@ -17,19 +17,19 @@ odp_barrier_t bar_entry; odp_barrier_t bar_exit; -static void thread_test_odp_cpu_id(void) +void thread_test_odp_cpu_id(void) { (void)odp_cpu_id(); CU_PASS(); } -static void thread_test_odp_thread_id(void) +void thread_test_odp_thread_id(void) { (void)odp_thread_id(); CU_PASS(); } -static void thread_test_odp_thread_count(void) +void thread_test_odp_thread_count(void) { (void)odp_thread_count(); CU_PASS(); @@ -48,7 +48,7 @@ static void *thread_func(void *arg TEST_UNUSED) return NULL; } -static void thread_test_odp_thrmask_worker(void) +void thread_test_odp_thrmask_worker(void) { odp_thrmask_t mask; int ret; @@ -85,7 +85,7 @@ static void thread_test_odp_thrmask_worker(void) odp_cunit_thread_exit(&args); } -static void thread_test_odp_thrmask_control(void) +void thread_test_odp_thrmask_control(void) { odp_thrmask_t mask; int ret; @@ -98,7 +98,7 @@ static void thread_test_odp_thrmask_control(void) CU_ASSERT(ret == 1); } -static CU_TestInfo thread_suite[] = { +CU_TestInfo thread_suite[] = { _CU_TEST_INFO(thread_test_odp_cpu_id), _CU_TEST_INFO(thread_test_odp_thread_id), _CU_TEST_INFO(thread_test_odp_thread_count), @@ -121,7 +121,7 @@ static CU_TestInfo thread_suite[] = { CU_TEST_INFO_NULL, }; -static CU_SuiteInfo thread_suites[] = { +CU_SuiteInfo thread_suites[] = { {"thread", NULL, NULL, NULL, NULL, thread_suite}, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/thread/thread.h b/test/validation/thread/thread.h index c0cbb34..ef645b4 100644 --- a/test/validation/thread/thread.h +++ b/test/validation/thread/thread.h @@ -7,6 +7,27 @@ #ifndef _ODP_TEST_THREAD_H_ #define _ODP_TEST_THREAD_H_ +#include +#include + +/* test functions: */ +#ifndef TEST_THRMASK +#define TEST_THRMASK +#endif +#include "mask_common.h" +void thread_test_odp_cpu_id(void); +void thread_test_odp_thread_id(void); +void thread_test_odp_thread_count(void); +void thread_test_odp_thrmask_control(void); +void thread_test_odp_thrmask_worker(void); + +/* test arrays: */ +extern CU_TestInfo thread_suite[]; + +/* test registry: */ +extern CU_SuiteInfo thread_suites[]; + +/* main test program: */ int thread_main(void); #endif