From patchwork Fri Jul 10 00:44:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50998 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1324B228E5 for ; Fri, 10 Jul 2015 00:50:44 +0000 (UTC) Received: by lbko2 with SMTP id o2sf13979867lbk.0 for ; Thu, 09 Jul 2015 17:50: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=Y3lyutZTnMQirSdF53s1aQYgEcTwrkEUmdhOtOjgBWc=; b=DpwZXcbQCy0Fn55V0iJkY8ZaqMZ5TPTLvb1H7I8lz5iEC5iQ4f0tpFrPVJLTBgCTQn /cZblmHufLXwrAzNBYqZAbqQclxSKDtwaIl/AAPgWnvKctBQzP7mVx823c4K00oYMSjX OzAUd5bmPRaH8NvGFHLkTh24J1+kG4Xy9hIaYfNNFdIuXBBoyeTtH/TXsRMg7zRAgogb cwTV1KzFBIYbFAegmZDx+Ig2gXWNYG2MiBnGwQErqdw7fLGjYmgA/sxKDFmT9eWb8rzL 4f6lGITSHFWVamwctv/rQ/3L/vRtwq676EYeY2jDgZ0Ab4b+LC6vGBr6Zu8LGkh83F5g XNpQ== X-Gm-Message-State: ALoCoQkBG40TEhNJIXnkmQNVKljR1PhqwDqF6osV1jHJ5YEgTwXoVZK7A9QxJMVfu+s236viIlTK X-Received: by 10.112.54.166 with SMTP id k6mr9451303lbp.0.1436489443033; Thu, 09 Jul 2015 17:50:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.103 with SMTP id kx7ls1182726lac.62.gmail; Thu, 09 Jul 2015 17:50:42 -0700 (PDT) X-Received: by 10.152.3.199 with SMTP id e7mr3731476lae.98.1436489442881; Thu, 09 Jul 2015 17:50:42 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id wx3si6178661lbb.142.2015.07.09.17.50.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:50:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagc2 with SMTP id c2so253243662lag.3 for ; Thu, 09 Jul 2015 17:50:42 -0700 (PDT) X-Received: by 10.152.36.102 with SMTP id p6mr17327718laj.19.1436489442601; Thu, 09 Jul 2015 17:50:42 -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 hn6csp1012320lbb; Thu, 9 Jul 2015 17:50:41 -0700 (PDT) X-Received: by 10.55.27.70 with SMTP id b67mr29632775qkb.86.1436489441435; Thu, 09 Jul 2015 17:50:41 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f92si8916898qge.71.2015.07.09.17.50.40; Thu, 09 Jul 2015 17:50: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 0517D61B34; Fri, 10 Jul 2015 00:50: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 C81F162076; Fri, 10 Jul 2015 00:46:39 +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 1479962083; Fri, 10 Jul 2015 00:46:32 +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 4E4906207B for ; Fri, 10 Jul 2015 00:44:53 +0000 (UTC) Received: by lblf12 with SMTP id f12so14526613lbl.2 for ; Thu, 09 Jul 2015 17:44:52 -0700 (PDT) X-Received: by 10.152.3.135 with SMTP id c7mr16118770lac.109.1436489092260; Thu, 09 Jul 2015 17:44:52 -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.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:51 -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:22 +0200 Message-Id: <1436489068-8929-12-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 11/17] 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.215.54 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 | 10 +++++----- test/validation/thread/thread.h | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/test/validation/thread/thread.c b/test/validation/thread/thread.c index d0bd75e..31672a8 100644 --- a/test/validation/thread/thread.c +++ b/test/validation/thread/thread.c @@ -11,32 +11,32 @@ /* Helper macro for CU_TestInfo initialization */ #define _CU_TEST_INFO(test_func) {#test_func, test_func} -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(); } -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), 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 94c288e..432c41c 100644 --- a/test/validation/thread/thread.h +++ b/test/validation/thread/thread.h @@ -4,4 +4,18 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include + +/* test functions: */ +void thread_test_odp_cpu_id(void); +void thread_test_odp_thread_id(void); +void thread_test_odp_thread_count(void); + +/* test arrays: */ +extern CU_TestInfo thread_suite[]; + +/* test registery: */ +extern CU_SuiteInfo thread_suites[]; + +/* main test program: */ int thread_main(void);