From patchwork Fri Jul 10 00:44:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50999 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 605E1228E5 for ; Fri, 10 Jul 2015 00:51:16 +0000 (UTC) Received: by laar3 with SMTP id r3sf78935568laa.1 for ; Thu, 09 Jul 2015 17:51:15 -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=tEmXN22mw1KYTN/qXFAVWl5ernNQzRNkxh+tKUuSAPs=; b=cDcDvjoeC6cD0wq8XUJTLzIKqexa+fllcL/Mcz8WK/CNXjBraudKaCNtPTeFElhTHA HX0ETqUO5fd7zroZ4r2+vCbAfYElFylp1Sk7HYKx0A6+ra0oSEknhvBtHHwtnBrJFg57 QnlEiWQdGlC0AcPgf4P3AUn1QlDcChbPZASVKuD4RP3U24UelLo/BCV8iX/AZeXh6KHx zMpVkqAQCf4GmyNFady+RidrADxZgeaoyAXrho3gpsrOU7+uho4PrruaG4ByUnv5jleF r534OxZLbQVdwb/68BzPRXWezXH1sRiT7HVP9aJT7jei/ZoIZK2KkFuPa+hNh5ug/6Pq QlaQ== X-Gm-Message-State: ALoCoQnE1+HW27Hbq4FmRtmrj+/8If+xOaCc3k8cD40sw91zdjiQJwNWvzgsEbG6K03ECW5gR4To X-Received: by 10.112.189.131 with SMTP id gi3mr9269450lbc.6.1436489475311; Thu, 09 Jul 2015 17:51:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.37 with SMTP id w5ls1069488laa.77.gmail; Thu, 09 Jul 2015 17:51:15 -0700 (PDT) X-Received: by 10.152.3.199 with SMTP id e7mr3733211lae.98.1436489475162; Thu, 09 Jul 2015 17:51:15 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id kd4si6204039lbc.42.2015.07.09.17.51.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:51:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by lagc2 with SMTP id c2so253248809lag.3 for ; Thu, 09 Jul 2015 17:51:15 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr17168535lak.117.1436489475021; Thu, 09 Jul 2015 17:51:15 -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 hn6csp1012539lbb; Thu, 9 Jul 2015 17:51:13 -0700 (PDT) X-Received: by 10.140.85.208 with SMTP id n74mr28569996qgd.67.1436489472425; Thu, 09 Jul 2015 17:51:12 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r82si8150559qkh.74.2015.07.09.17.51.11; Thu, 09 Jul 2015 17:51:12 -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 E7AD762068; Fri, 10 Jul 2015 00:51:10 +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 22CE262086; Fri, 10 Jul 2015 00:46:43 +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 1BA9962068; Fri, 10 Jul 2015 00:46:32 +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 4515062088 for ; Fri, 10 Jul 2015 00:44:51 +0000 (UTC) Received: by lbbpo10 with SMTP id po10so84020456lbb.3 for ; Thu, 09 Jul 2015 17:44:50 -0700 (PDT) X-Received: by 10.152.25.227 with SMTP id f3mr16886685lag.67.1436489090135; 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.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:49 -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:20 +0200 Message-Id: <1436489068-8929-10-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 09/17] validation: cpumask: 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.42 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/cpumask/cpumask.c | 32 ++++++++++++++++---------------- test/validation/cpumask/cpumask.h | 25 +++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/test/validation/cpumask/cpumask.c b/test/validation/cpumask/cpumask.c index 943a8e0..f117242 100644 --- a/test/validation/cpumask/cpumask.c +++ b/test/validation/cpumask/cpumask.c @@ -79,7 +79,7 @@ static unsigned int get_max_number_of_cpus_in_a_mask(void) return odp_cpu_count(); } -static void cpumask_test_odp_cpumask_to_from_str(void) +void cpumask_test_odp_cpumask_to_from_str(void) { odp_cpumask_t mask; int32_t str_sz; @@ -151,7 +151,7 @@ static void cpumask_test_odp_cpumask_to_from_str(void) free(buf_in); } -static void cpumask_test_odp_cpumask_equal(void) +void cpumask_test_odp_cpumask_equal(void) { odp_cpumask_t mask1; odp_cpumask_t mask2; @@ -182,7 +182,7 @@ static void cpumask_test_odp_cpumask_equal(void) CU_ASSERT_FALSE(odp_cpumask_equal(&mask1, &mask3)); } -static void cpumask_test_odp_cpumask_zero(void) +void cpumask_test_odp_cpumask_zero(void) { odp_cpumask_t mask1; odp_cpumask_t mask2; @@ -193,7 +193,7 @@ static void cpumask_test_odp_cpumask_zero(void) CU_ASSERT(odp_cpumask_equal(&mask1, &mask2)); } -static void cpumask_test_odp_cpumask_set(void) +void cpumask_test_odp_cpumask_set(void) { odp_cpumask_t mask1; odp_cpumask_t mask2; @@ -215,7 +215,7 @@ static void cpumask_test_odp_cpumask_set(void) CU_ASSERT(odp_cpumask_equal(&mask1, &mask2)); } -static void cpumask_test_odp_cpumask_clr(void) +void cpumask_test_odp_cpumask_clr(void) { odp_cpumask_t mask1; odp_cpumask_t mask2; @@ -242,7 +242,7 @@ static void cpumask_test_odp_cpumask_clr(void) CU_ASSERT(odp_cpumask_equal(&mask1, &mask2)); } -static void cpumask_test_odp_cpumask_isset(void) +void cpumask_test_odp_cpumask_isset(void) { odp_cpumask_t mask1; @@ -262,7 +262,7 @@ static void cpumask_test_odp_cpumask_isset(void) CU_ASSERT_FALSE(odp_cpumask_isset(&mask1, 3)); } -static void cpumask_test_odp_cpumask_count(void) +void cpumask_test_odp_cpumask_count(void) { odp_cpumask_t mask1; @@ -279,7 +279,7 @@ static void cpumask_test_odp_cpumask_count(void) CU_ASSERT(odp_cpumask_count(&mask1) == 2); } -static void cpumask_test_odp_cpumask_and(void) +void cpumask_test_odp_cpumask_and(void) { odp_cpumask_t mask1; odp_cpumask_t mask2; @@ -314,7 +314,7 @@ static void cpumask_test_odp_cpumask_and(void) CU_ASSERT(odp_cpumask_equal(&mask3, &mask4)); } -static void cpumask_test_odp_cpumask_or(void) +void cpumask_test_odp_cpumask_or(void) { odp_cpumask_t mask1; odp_cpumask_t mask2; @@ -349,7 +349,7 @@ static void cpumask_test_odp_cpumask_or(void) CU_ASSERT(odp_cpumask_equal(&mask3, &mask4)); } -static void cpumask_test_odp_cpumask_xor(void) +void cpumask_test_odp_cpumask_xor(void) { odp_cpumask_t mask1; odp_cpumask_t mask2; @@ -384,7 +384,7 @@ static void cpumask_test_odp_cpumask_xor(void) CU_ASSERT(odp_cpumask_equal(&mask3, &mask4)); } -static void cpumask_test_odp_cpumask_copy(void) +void cpumask_test_odp_cpumask_copy(void) { odp_cpumask_t mask1; odp_cpumask_t mask2; @@ -394,7 +394,7 @@ static void cpumask_test_odp_cpumask_copy(void) CU_ASSERT(odp_cpumask_equal(&mask1, &mask2)); } -static void cpumask_test_odp_cpumask_first(void) +void cpumask_test_odp_cpumask_first(void) { odp_cpumask_t mask1; @@ -413,7 +413,7 @@ static void cpumask_test_odp_cpumask_first(void) CU_ASSERT(odp_cpumask_first(&mask1) == 1); } -static void cpumask_test_odp_cpumask_last(void) +void cpumask_test_odp_cpumask_last(void) { odp_cpumask_t mask1; @@ -432,7 +432,7 @@ static void cpumask_test_odp_cpumask_last(void) CU_ASSERT(odp_cpumask_last(&mask1) == 3); } -static void cpumask_test_odp_cpumask_next(void) +void cpumask_test_odp_cpumask_next(void) { unsigned int i; int expected[] = {1, 3, 3, -1}; @@ -456,7 +456,7 @@ static void cpumask_test_odp_cpumask_next(void) CU_ASSERT(odp_cpumask_next(&mask1, i) == expected[i]); } -static CU_TestInfo cpumask_suite[] = { +CU_TestInfo cpumask_suite[] = { {"odp_cpumask_to/from_str()", cpumask_test_odp_cpumask_to_from_str}, {"odp_cpumask_equal()", cpumask_test_odp_cpumask_equal}, {"odp_cpumask_zero()", cpumask_test_odp_cpumask_zero}, @@ -474,7 +474,7 @@ static CU_TestInfo cpumask_suite[] = { CU_TEST_INFO_NULL, }; -static CU_SuiteInfo cpumask_suites[] = { +CU_SuiteInfo cpumask_suites[] = { {"Cpumask", NULL, NULL, NULL, NULL, cpumask_suite}, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/cpumask/cpumask.h b/test/validation/cpumask/cpumask.h index c0d19a9..6b2edad 100644 --- a/test/validation/cpumask/cpumask.h +++ b/test/validation/cpumask/cpumask.h @@ -4,4 +4,29 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include + +/* test functions: */ +void cpumask_test_odp_cpumask_to_from_str(void); +void cpumask_test_odp_cpumask_equal(void); +void cpumask_test_odp_cpumask_zero(void); +void cpumask_test_odp_cpumask_set(void); +void cpumask_test_odp_cpumask_clr(void); +void cpumask_test_odp_cpumask_isset(void); +void cpumask_test_odp_cpumask_count(void); +void cpumask_test_odp_cpumask_and(void); +void cpumask_test_odp_cpumask_or(void); +void cpumask_test_odp_cpumask_xor(void); +void cpumask_test_odp_cpumask_copy(void); +void cpumask_test_odp_cpumask_first(void); +void cpumask_test_odp_cpumask_last(void); +void cpumask_test_odp_cpumask_next(void); + +/* test arrays: */ +extern CU_TestInfo cpumask_suite[]; + +/* test registery: */ +extern CU_SuiteInfo cpumask_suites[]; + +/* main test program: */ int cpumask_main(void);