From patchwork Fri Jul 10 00:44:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51001 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 663B5228E5 for ; Fri, 10 Jul 2015 00:52:36 +0000 (UTC) Received: by wipp2 with SMTP id p2sf742498wip.2 for ; Thu, 09 Jul 2015 17:52:35 -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=e05vgJIgd61d415D2aAUAuEZCBCKQno+h68IS+uWPsw=; b=GUKfQ8Gd1bH5fftYGuCIuju0/Ia6P0/wu2EMEIK0dr49edoh4Whr01GySppLrFvYzi D57ThVzNAt2FLauzdaIO6oU3gcEJWEjMwNlKc8rllizYxZtf7Tk0tE86CFJ02ulzlIgK UtONz4DRGJQdOsknliLUJF7jpUTXgHt4PmyG3zvBCOI+fuuSmCe18dY3WxAwPCsdX9kv hS0VIsa8SkGLDkW8a+Lo5PsW8ew5jJcJLr7S6yNYVSHYDOBVCwM2/Fz3up5MtbW3NJCa fY/p28iUAaNBdng+LqHqN1gRrxvVd/DlZWL3yRKe/7U1uW5iNKB/TbbOHRUvjcBoO74R CZkQ== X-Gm-Message-State: ALoCoQnVdZ5ADe2oZFljLceYM6shQ7DJ0aVVEt3vEzJ1Wb5r/cCMuEvpWkuvOsEifnO6aMkRkKTU X-Received: by 10.152.27.130 with SMTP id t2mr9368796lag.2.1436489555707; Thu, 09 Jul 2015 17:52:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.70 with SMTP id be6ls1095749lab.103.gmail; Thu, 09 Jul 2015 17:52:35 -0700 (PDT) X-Received: by 10.112.91.131 with SMTP id ce3mr4339779lbb.61.1436489555564; Thu, 09 Jul 2015 17:52:35 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id y6si6213279lbj.20.2015.07.09.17.52.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lagx9 with SMTP id x9so256088052lag.1 for ; Thu, 09 Jul 2015 17:52:35 -0700 (PDT) X-Received: by 10.152.88.77 with SMTP id be13mr17089813lab.112.1436489555417; Thu, 09 Jul 2015 17:52:35 -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 hn6csp1013054lbb; Thu, 9 Jul 2015 17:52:34 -0700 (PDT) X-Received: by 10.140.31.161 with SMTP id f30mr29074009qgf.23.1436489554238; Thu, 09 Jul 2015 17:52:34 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g9si8940471qgf.41.2015.07.09.17.52.33; Thu, 09 Jul 2015 17:52:34 -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 5C08761B6B; Fri, 10 Jul 2015 00:52:33 +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 AF29D62088; Fri, 10 Jul 2015 00:46:51 +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 695B46207B; Fri, 10 Jul 2015 00:46:33 +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 0A19962076 for ; Fri, 10 Jul 2015 00:44:52 +0000 (UTC) Received: by lblf12 with SMTP id f12so14526438lbl.2 for ; Thu, 09 Jul 2015 17:44:51 -0700 (PDT) X-Received: by 10.152.116.76 with SMTP id ju12mr17102420lab.75.1436489090983; Thu, 09 Jul 2015 17:44:50 -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.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:50 -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:21 +0200 Message-Id: <1436489068-8929-11-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 10/17] 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.52 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 | 14 +++++++------- test/validation/pool/pool.h | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/test/validation/pool/pool.c b/test/validation/pool/pool.c index 1b54033..c0dfd5f 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_create_destroy_buffer_shm(void) +void pool_test_create_destroy_buffer_shm(void) { odp_pool_t pool; odp_shm_t test_shm; @@ -93,7 +93,7 @@ static void pool_test_create_destroy_buffer_shm(void) CU_ASSERT(odp_shm_free(test_shm) == 0); } -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"; @@ -128,7 +128,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), @@ -137,7 +137,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 53cd4d1..ad49f1e 100644 --- a/test/validation/pool/pool.h +++ b/test/validation/pool/pool.h @@ -4,4 +4,20 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#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);