From patchwork Fri Jul 24 11:27:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51425 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 9D68520323 for ; Fri, 24 Jul 2015 11:37:28 +0000 (UTC) Received: by lbvb1 with SMTP id b1sf6532261lbv.3 for ; Fri, 24 Jul 2015 04:37:27 -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=JO5poCCACdICSxJfRdDuA1jd6FYzXKQPAmtc48I1dcM=; b=g/eRODA3+cA7p4UzYjiW+PpKpJxYKypXBT561M7yE3XZqGUXCoJNahETn5gI1WgreJ wFzXXhAetF1z/H9BTe4ZF6wfeEVZqRXkHjkJvwcZWUd1gzS8xR0wQ/wUn8qKbr/NoZ1p OnLOyxr4mEeN++pFFcL64zjWQAiCzLuhg2k5yRKvPv1zbkNRilVvo2ZcbcTQk5kngfFD AKEFellrEH7vPv7dvQD4vD3dTnMtxgE0+ECmiidw+x4XeCIudnWaIQOsC1O1y5PXjXlA YRxHFWm06hCNqraMciSwIkfezeaNYMWQkNl6gB2+9VZa4HxQ3NyE7oN4YlBCbfVR6Nyn b/PA== X-Gm-Message-State: ALoCoQkSyM3sHERh9aKytiKFESMdl4Ez4smz6oaqz2FAPP3pVuPUFFRoSH2e5xfEyjXYl0zEUHOU X-Received: by 10.194.173.3 with SMTP id bg3mr6012409wjc.5.1437737847566; Fri, 24 Jul 2015 04:37:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.3 with SMTP id ky3ls380690lab.70.gmail; Fri, 24 Jul 2015 04:37:27 -0700 (PDT) X-Received: by 10.152.7.206 with SMTP id l14mr13085791laa.3.1437737847400; Fri, 24 Jul 2015 04:37:27 -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 ja8si7292807lbc.57.2015.07.24.04.37.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 04:37:27 -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 w2so12386127lag.3 for ; Fri, 24 Jul 2015 04:37:27 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr13142604lbb.36.1437737847038; Fri, 24 Jul 2015 04:37:27 -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 l6csp1118546lba; Fri, 24 Jul 2015 04:37:26 -0700 (PDT) X-Received: by 10.55.21.14 with SMTP id f14mr19592702qkh.64.1437737845658; Fri, 24 Jul 2015 04:37:25 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 79si9666904qhw.4.2015.07.24.04.37.24; Fri, 24 Jul 2015 04:37:25 -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 4CA2761B1A; Fri, 24 Jul 2015 11:37:24 +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_H2, 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 D519961D6F; Fri, 24 Jul 2015 11:30:07 +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 468B961CC6; Fri, 24 Jul 2015 11:30:00 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by lists.linaro.org (Postfix) with ESMTPS id 85D9C61C76 for ; Fri, 24 Jul 2015 11:28:18 +0000 (UTC) Received: by lblf12 with SMTP id f12so13211613lbl.2 for ; Fri, 24 Jul 2015 04:28:17 -0700 (PDT) X-Received: by 10.112.77.103 with SMTP id r7mr12831420lbw.63.1437737297485; Fri, 24 Jul 2015 04:28:17 -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.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 04:28:17 -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:32 +0200 Message-Id: <1437737259-16953-14-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 13/20] validation: pool: 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/pool/pool.c | 12 ++++++------ test/validation/pool/pool.h | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/test/validation/pool/pool.c b/test/validation/pool/pool.c index a888b68..9247557 100644 --- a/test/validation/pool/pool.c +++ b/test/validation/pool/pool.c @@ -27,7 +27,7 @@ static void pool_create_destroy(odp_pool_param_t *params) CU_ASSERT(odp_pool_destroy(pool) == 0); } -static void pool_test_create_destroy_buffer(void) +void pool_test_create_destroy_buffer(void) { odp_pool_param_t params = { .buf = { @@ -41,7 +41,7 @@ static void pool_test_create_destroy_buffer(void) pool_create_destroy(¶ms); } -static void pool_test_create_destroy_packet(void) +void pool_test_create_destroy_packet(void) { odp_pool_param_t params = { .pkt = { @@ -55,7 +55,7 @@ static void pool_test_create_destroy_packet(void) pool_create_destroy(¶ms); } -static void pool_test_create_destroy_timeout(void) +void pool_test_create_destroy_timeout(void) { odp_pool_param_t params = { .tmo = { @@ -67,7 +67,7 @@ static void pool_test_create_destroy_timeout(void) pool_create_destroy(¶ms); } -static void pool_test_lookup_info_print(void) +void pool_test_lookup_info_print(void) { odp_pool_t pool; const char pool_name[] = "pool_for_lookup_test"; @@ -101,7 +101,7 @@ static void pool_test_lookup_info_print(void) #define _CU_TEST_INFO(test_func) {#test_func, test_func} -static CU_TestInfo pool_suite[] = { +CU_TestInfo pool_suite[] = { _CU_TEST_INFO(pool_test_create_destroy_buffer), _CU_TEST_INFO(pool_test_create_destroy_packet), _CU_TEST_INFO(pool_test_create_destroy_timeout), @@ -109,7 +109,7 @@ static CU_TestInfo pool_suite[] = { CU_TEST_INFO_NULL, }; -static CU_SuiteInfo pool_suites[] = { +CU_SuiteInfo pool_suites[] = { { .pName = "Pool tests", .pTests = pool_suite, }, diff --git a/test/validation/pool/pool.h b/test/validation/pool/pool.h index 8c73d9b..5522645 100644 --- a/test/validation/pool/pool.h +++ b/test/validation/pool/pool.h @@ -7,6 +7,22 @@ #ifndef _ODP_TEST_POOL_H_ #define _ODP_TEST_POOL_H_ +#include + +/* test functions: */ +void pool_test_create_destroy_buffer(void); +void pool_test_create_destroy_packet(void); +void pool_test_create_destroy_timeout(void); +void pool_test_create_destroy_buffer_shm(void); +void pool_test_lookup_info_print(void); + +/* test arrays: */ +extern CU_TestInfo pool_suite[]; + +/* test registery: */ +extern CU_SuiteInfo pool_suites[]; + +/* main test program: */ int pool_main(void); #endif