From patchwork Mon Jul 27 17:38:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51558 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id CD17322918 for ; Mon, 27 Jul 2015 17:47:30 +0000 (UTC) Received: by wixh2 with SMTP id h2sf30775151wix.0 for ; Mon, 27 Jul 2015 10:47:30 -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=/j/N6FRdmVht6nLOQzBwosT6+0RqjcwpdH0OaSDvncY=; b=KArDccFxQgZzhgs5ZrDn5rKd6mnhbtQq/GzA3DMjesuFg07sTOFXnwLlFhdQX94shr C2GHMQwtmxk2gdFEcnO0SLJDJyGEKi4FF3HMTPsgpSzSLCP92V5yXZE57vVTP4hX6ONS eMIi0Gy3xV3WAZfG0Do1zGyafqG2O78D0hyYHpy//439WcbxvmSIP3ZtSe/fTtyC/ZSd EnkCEsOx/NZ17dw7GQttAOK62ywnmB1F7KwJDuyDTNCKQ+OnVess+sa8EXAVwTYkd21d oFt83UhmLOahRGUEQKVYxLRRTGT81MtZWElb+DlqZUL85cxRZZyT7bU6Qg4nTMiS9uIu EMkQ== X-Gm-Message-State: ALoCoQlo2BGqvESzVF9HySVlqVz/c8g+TdHSJJi9PWv7neke3RuWpqD/36UPtC32ZOneAQuvLlt+ X-Received: by 10.194.184.6 with SMTP id eq6mr12515401wjc.4.1438019250125; Mon, 27 Jul 2015 10:47:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.227 with SMTP id t3ls684809laj.72.gmail; Mon, 27 Jul 2015 10:47:29 -0700 (PDT) X-Received: by 10.112.50.230 with SMTP id f6mr27927322lbo.17.1438019249892; Mon, 27 Jul 2015 10:47:29 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id dx6si15852338lbc.64.2015.07.27.10.47.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:47:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbbyj8 with SMTP id yj8so58618723lbb.0 for ; Mon, 27 Jul 2015 10:47:29 -0700 (PDT) X-Received: by 10.112.198.74 with SMTP id ja10mr28226929lbc.19.1438019249745; Mon, 27 Jul 2015 10:47:29 -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 l6csp1662426lba; Mon, 27 Jul 2015 10:47:28 -0700 (PDT) X-Received: by 10.140.145.207 with SMTP id 198mr45113891qhr.45.1438019248370; Mon, 27 Jul 2015 10:47:28 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 143si17340945qhf.15.2015.07.27.10.47.27; Mon, 27 Jul 2015 10:47:28 -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 98D5861D30; Mon, 27 Jul 2015 17:47:27 +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 7CB8A61E1C; Mon, 27 Jul 2015 17:40:46 +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 0A3D161DCC; Mon, 27 Jul 2015 17:40:35 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by lists.linaro.org (Postfix) with ESMTPS id 3DAE861DD4 for ; Mon, 27 Jul 2015 17:39:23 +0000 (UTC) Received: by lbbqi7 with SMTP id qi7so58391047lbb.3 for ; Mon, 27 Jul 2015 10:39:22 -0700 (PDT) X-Received: by 10.112.141.8 with SMTP id rk8mr27613438lbb.87.1438018762213; Mon, 27 Jul 2015 10:39:22 -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.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:21 -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:44 +0200 Message-Id: <1438018732-2778-13-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 12/20] validation: cpumask: 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.169 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/cpumask/cpumask.c | 10 +++++----- test/validation/cpumask/cpumask.h | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/test/validation/cpumask/cpumask.c b/test/validation/cpumask/cpumask.c index 76b7648..e518cbc 100644 --- a/test/validation/cpumask/cpumask.c +++ b/test/validation/cpumask/cpumask.c @@ -13,7 +13,7 @@ /* default worker paramiter to get all that may be available */ #define ALL_AVAILABLE 0 -static void cpumask_test_odp_cpumask_def_control(void) +void cpumask_test_odp_cpumask_def_control(void) { unsigned num; unsigned mask_count; @@ -28,7 +28,7 @@ static void cpumask_test_odp_cpumask_def_control(void) CU_ASSERT(num <= max_cpus); } -static void cpumask_test_odp_cpumask_def_worker(void) +void cpumask_test_odp_cpumask_def_worker(void) { unsigned num; unsigned mask_count; @@ -43,7 +43,7 @@ static void cpumask_test_odp_cpumask_def_worker(void) CU_ASSERT(num <= max_cpus); } -static void cpumask_test_odp_cpumask_def(void) +void cpumask_test_odp_cpumask_def(void) { unsigned mask_count; unsigned num_worker; @@ -72,7 +72,7 @@ static void cpumask_test_odp_cpumask_def(void) CU_ASSERT(num_worker > 0); } -static CU_TestInfo cpumask_suite[] = { +CU_TestInfo cpumask_suite[] = { {"odp_cpumask_to/from_str()", cpumask_test_odp_cpumask_to_from_str}, {"odp_cpumask_equal()", cpumask_test_odp_cpumask_equal}, {"odp_cpumask_zero()", cpumask_test_odp_cpumask_zero}, @@ -94,7 +94,7 @@ static CU_TestInfo cpumask_suite[] = { CU_TEST_INFO_NULL, }; -static CU_SuiteInfo cpumask_suites[] = { +CU_SuiteInfo cpumask_suites[] = { {"Cpumask", NULL, NULL, NULL, NULL, cpumask_suite}, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/cpumask/cpumask.h b/test/validation/cpumask/cpumask.h index 2c6fb4a..7a58b5d 100644 --- a/test/validation/cpumask/cpumask.h +++ b/test/validation/cpumask/cpumask.h @@ -7,6 +7,22 @@ #ifndef _ODP_TEST_CPUMASK_H_ #define _ODP_TEST_CPUMASK_H_ +#include +#include + +/* test functions: */ +#include "mask_common.h" +void cpumask_test_odp_cpumask_def_control(void); +void cpumask_test_odp_cpumask_def_worker(void); +void cpumask_test_odp_cpumask_def(void); + +/* test arrays: */ +extern CU_TestInfo cpumask_suite[]; + +/* test registry: */ +extern CU_SuiteInfo cpumask_suites[]; + +/* main test program: */ int cpumask_main(void); #endif