From patchwork Fri Jul 24 11:27:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51432 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 8101720323 for ; Fri, 24 Jul 2015 11:41:49 +0000 (UTC) Received: by wicmm11 with SMTP id mm11sf5915522wic.3 for ; Fri, 24 Jul 2015 04:41:48 -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=yQQs+V0FONVA0aWYjbMUWx32mREWSx0nSQ1SWjijO0A=; b=lU8vpo5u/JNEXn989RhzmAXzqGg2V1veyMZMMXEk7AiA2X2MXyE/z0vQMd1Uj97GYb yv3iPFskzW+7SpzXgTUG/SrTR8gLwSVOkKa9GPzqzwV3i/coCTUajbhXTJiIfHn4l2Xr 6kIrLCEEV/0hGCvMNC9ZMLorVhs+sRZqHwYwJJsWwHMpVxQe7uqZYzpYyICen18dErRM 4rUVvVyqfQzvwL2ySUPQ6SyC9CapBUreC1AKMQgoJV2q9yFEfHLKXjpMEg3tnDDCqUwI zCboL3GHe5t2QAOHsohAsAx6SZ9FkMeFFV3xS5WcdSpoZF4PlAWw+NFVeVBrHQQ9kq28 SIrQ== X-Gm-Message-State: ALoCoQmCbZOvoDgswWTcKgKVBDRdQ6z60zWH4A6NgDE4w7KIFVKXw8kKdlXsCCyKsptSKYJYFNZu X-Received: by 10.180.106.10 with SMTP id gq10mr1503349wib.0.1437738108845; Fri, 24 Jul 2015 04:41:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.38 with SMTP id lt6ls382423lac.50.gmail; Fri, 24 Jul 2015 04:41:48 -0700 (PDT) X-Received: by 10.153.7.137 with SMTP id dc9mr13058256lad.16.1437738108679; Fri, 24 Jul 2015 04:41:48 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id an8si7275770lbd.172.2015.07.24.04.41.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 04:41:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagw2 with SMTP id w2so12448152lag.3 for ; Fri, 24 Jul 2015 04:41:48 -0700 (PDT) X-Received: by 10.152.1.66 with SMTP id 2mr13489690lak.56.1437738108525; Fri, 24 Jul 2015 04:41:48 -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 l6csp1120765lba; Fri, 24 Jul 2015 04:41:47 -0700 (PDT) X-Received: by 10.140.144.9 with SMTP id 9mr14481900qhq.69.1437738107159; Fri, 24 Jul 2015 04:41:47 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 143si9636147qht.98.2015.07.24.04.41.46; Fri, 24 Jul 2015 04:41:47 -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 4B05761B1C; Fri, 24 Jul 2015 11:41:46 +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 EE41C61CB2; Fri, 24 Jul 2015 11:30:47 +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 59BEA61B64; Fri, 24 Jul 2015 11:30:44 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id 1369561CB2 for ; Fri, 24 Jul 2015 11:28:25 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8so13250241lbb.0 for ; Fri, 24 Jul 2015 04:28:23 -0700 (PDT) X-Received: by 10.152.5.197 with SMTP id u5mr13172242lau.94.1437737303816; Fri, 24 Jul 2015 04:28:23 -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 y1sm1582274lal.39.2015.07.24.04.28.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 04:28:23 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Fri, 24 Jul 2015 13:27:37 +0200 Message-Id: <1437737259-16953-19-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437737259-16953-1-git-send-email-christophe.milard@linaro.org> References: <1437737259-16953-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 18/20] 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.215.45 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 ef7c8f2..5b2a13a 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]; @@ -114,12 +114,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 8302912..de35396 100644 --- a/test/validation/queue/queue.h +++ b/test/validation/queue/queue.h @@ -7,6 +7,22 @@ #ifndef _ODP_TEST_QUEUE_H_ #define _ODP_TEST_QUEUE_H_ +#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); #endif