From patchwork Mon Jul 27 17:38:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51559 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id B8FE722918 for ; Mon, 27 Jul 2015 17:48:01 +0000 (UTC) Received: by lafd3 with SMTP id d3sf30126068laf.1 for ; Mon, 27 Jul 2015 10:48:00 -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=5VdAxd4o53qrLF6qvIz6HuF3k09V8lH2CVIWwXzCs+0=; b=aoDf1wpuR6p8wkx01AGi8WQlQly814nzq+JlA30OwLFwHw/AyT1YtznJj4LJCoxR+2 x3WNVqpXyUqeT++mopC4ZUfw7LdXHqhxyhHXZOxsShb7j91Ex4fs2+0fkjruXIckcwP/ RSh9tOXj/BhyI6AmLJKIDD7qBUX1gLlDNJcqD1FCK/vU0fL+NuQlqHRg1WXWtVrHw/Ru o3QuEs0Tic5frtzX5SWmXcmeKhMYMIqBLFi2GbpzjScTfpHA9rhbTRbSCykolcGxfJxm dIoALoyJlqJG52zqOjrudog+4dGI89ogcHhDXrN8jy2U1w46g4Q7TKX8qsDGzhXUyero ebBA== X-Gm-Message-State: ALoCoQlfDU2avwJzhE2X89YytWykeg61Ss75vfA3eRfbQ2YpcqYvT9H7CT/NKGiBC/kjnpLd0hMh X-Received: by 10.180.75.49 with SMTP id z17mr5692707wiv.7.1438019280379; Mon, 27 Jul 2015 10:48:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.70 with SMTP id x6ls691520laa.5.gmail; Mon, 27 Jul 2015 10:48:00 -0700 (PDT) X-Received: by 10.112.221.9 with SMTP id qa9mr27982147lbc.23.1438019280214; Mon, 27 Jul 2015 10:48:00 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id t9si15824894lat.175.2015.07.27.10.48.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:48:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lahh5 with SMTP id h5so53708332lah.2 for ; Mon, 27 Jul 2015 10:48:00 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr28865437lbc.32.1438019280040; Mon, 27 Jul 2015 10:48:00 -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 l6csp1662623lba; Mon, 27 Jul 2015 10:47:59 -0700 (PDT) X-Received: by 10.140.151.203 with SMTP id 194mr44740768qhx.80.1438019278736; Mon, 27 Jul 2015 10:47:58 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t34si21796703qgt.97.2015.07.27.10.47.57; Mon, 27 Jul 2015 10:47:58 -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 CBAD961DBC; Mon, 27 Jul 2015 17:47:57 +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 C099461E25; Mon, 27 Jul 2015 17:40:48 +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 3D45861DC0; Mon, 27 Jul 2015 17:40:36 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by lists.linaro.org (Postfix) with ESMTPS id 7436761DCE for ; Mon, 27 Jul 2015 17:39:24 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8so58478333lbb.0 for ; Mon, 27 Jul 2015 10:39:23 -0700 (PDT) X-Received: by 10.112.172.4 with SMTP id ay4mr28653902lbc.124.1438018763415; Mon, 27 Jul 2015 10:39: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 4sm4027442lai.36.2015.07.27.10.39.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:23 -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:45 +0200 Message-Id: <1438018732-2778-14-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 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.51 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..12c6193 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 registry: */ +extern CU_SuiteInfo pool_suites[]; + +/* main test program: */ int pool_main(void); #endif