From patchwork Fri Jul 10 00:44:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51003 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0133A228E5 for ; Fri, 10 Jul 2015 00:53:41 +0000 (UTC) Received: by wifm2 with SMTP id m2sf749202wif.1 for ; Thu, 09 Jul 2015 17:53:40 -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=07qNwfhfWaQnNxENUcCrM8xETY2pvE8mgdpcSHCCFVg=; b=CSpj6vpj1rII7gcFCarZT6vF1K/EHiMV8uuK0n8Qmqg/+Tg0ROc7ke/aRdRGCNdyR2 iX+pIAbp+mi+SCnjYCXyNVzeP8TdARGBsJnmuvDpqYwvXgf1cCfh/Ik7yBGi7ta5JLRr A7VGUgF0IWnRx8dyg+adcLq1inzVtlPFpe2vZb6TnXWi2tRn0FQuxrmTtzhg0Ud+KZTh l/92PZSQBgfuELphHy9CPNYKfnLWdXvNoLXbreMLHMC0ntWlpkcMrvivk6JqmsT+i3Mg 1F6aW3l2ZaMVbBZAZdDmiYPtIi1OYK7mUo8QwJrZbLan3GYiNVCEMWJG03L823/9Sikm PiVg== X-Gm-Message-State: ALoCoQkXcV6rQJe+vARDJgkXKiHX0ikr5cmPz/4OB4drgSjxXLRVfdyj/RThS4giGlW2wPJr2W0m X-Received: by 10.112.14.101 with SMTP id o5mr9325858lbc.3.1436489620207; Thu, 09 Jul 2015 17:53:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.206 with SMTP id q14ls991390lal.58.gmail; Thu, 09 Jul 2015 17:53:40 -0700 (PDT) X-Received: by 10.112.140.9 with SMTP id rc9mr17525189lbb.14.1436489620055; Thu, 09 Jul 2015 17:53:40 -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 tw3si2171402lbb.88.2015.07.09.17.53.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:53:39 -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 lbzd8 with SMTP id d8so38751705lbz.0 for ; Thu, 09 Jul 2015 17:53:39 -0700 (PDT) X-Received: by 10.112.128.169 with SMTP id np9mr17383429lbb.73.1436489619639; Thu, 09 Jul 2015 17:53:39 -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 hn6csp1013434lbb; Thu, 9 Jul 2015 17:53:38 -0700 (PDT) X-Received: by 10.55.18.158 with SMTP id 30mr29309817qks.17.1436489618347; Thu, 09 Jul 2015 17:53:38 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r76si8643320qha.128.2015.07.09.17.53.37; Thu, 09 Jul 2015 17:53:38 -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 6F94961DDF; Fri, 10 Jul 2015 00:53:37 +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 34A4A620A4; Fri, 10 Jul 2015 00:46:57 +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 51EE76207B; Fri, 10 Jul 2015 00:46:35 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by lists.linaro.org (Postfix) with ESMTPS id 68D776207D for ; Fri, 10 Jul 2015 00:44:58 +0000 (UTC) Received: by lbbpo10 with SMTP id po10so84021453lbb.3 for ; Thu, 09 Jul 2015 17:44:57 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr17655284lbb.56.1436489097352; Thu, 09 Jul 2015 17:44:57 -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.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:56 -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:26 +0200 Message-Id: <1436489068-8929-16-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 15/17] validation: queue: 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/queue/queue.c | 10 +++++----- test/validation/queue/queue.h | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c index f686b71..5053de1 100644 --- a/test/validation/queue/queue.c +++ b/test/validation/queue/queue.c @@ -15,7 +15,7 @@ static int queue_contest = 0xff; static odp_pool_t pool; -static int queue_suite_init(void) +int queue_suite_init(void) { odp_pool_param_t params; @@ -33,12 +33,12 @@ static int queue_suite_init(void) return 0; } -static int queue_suite_term(void) +int queue_suite_term(void) { return odp_pool_destroy(pool); } -static void queue_test_sunnydays(void) +void queue_test_sunnydays(void) { odp_queue_t queue_creat_id, queue_id; odp_event_t enev[MAX_BUFFER_QUEUE]; @@ -107,12 +107,12 @@ static void queue_test_sunnydays(void) CU_ASSERT(odp_queue_destroy(queue_id) == 0); } -static CU_TestInfo queue_suite[] = { +CU_TestInfo queue_suite[] = { {"queue sunnyday", queue_test_sunnydays}, CU_TEST_INFO_NULL, }; -static CU_SuiteInfo queue_suites[] = { +CU_SuiteInfo queue_suites[] = { {"Queue", queue_suite_init, queue_suite_term, NULL, NULL, queue_suite}, CU_SUITE_INFO_NULL, diff --git a/test/validation/queue/queue.h b/test/validation/queue/queue.h index 3e9a9f1..43ae778 100644 --- a/test/validation/queue/queue.h +++ b/test/validation/queue/queue.h @@ -4,4 +4,20 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include + +/* test functions: */ +void queue_test_sunnydays(void); + +/* test arrays: */ +extern CU_TestInfo queue_suite[]; + +/* test array init/term functions: */ +int queue_suite_init(void); +int queue_suite_term(void); + +/* test registery: */ +extern CU_SuiteInfo queue_suites[]; + +/* main test program: */ int queue_main(void);