From patchwork Fri Jul 10 00:44:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51007 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DF106228E5 for ; Fri, 10 Jul 2015 00:55:06 +0000 (UTC) Received: by lbbei7 with SMTP id ei7sf6408838lbb.3 for ; Thu, 09 Jul 2015 17:55:05 -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=wEUL7W2KRWAjc0q9/eomuj4L6SHij+eePxHf5kGoNJg=; b=iJP2/awyetc3/AxjwRjRJZrwW2jiecxWOJ4IQFuU0c//y27xuTGFnD49exhAknkN0A pPICojr36oZuRrqVBnGqbYapoWcNhT1FetWvf1Jt6t2gjb6CdffJWflr3AIANUxYN1BU uqmX/VMN7TGfQ5eDH/NFmFtfVpxBUP2XfkR92Kshrp3Ko/bWK7EOhGaVUWLGuKrBb1H+ Q9b7RLYL54OIzbbPljtsOgBvu8dUU5kfH59Ki49YctENjKpNUZs9HIxNkfXrSECZ/Mf1 R5iIt8YsqTE5XZreORSl+9NlxgxbPAxVYEglDd99mxK+jSIdVIN8WFfh8oIZFvvhL4p2 Z3MA== X-Gm-Message-State: ALoCoQkqHzvYJ7zdWsCyt9ql181whuIS2vkRv+F8GGN1XZ0wqgfMgfYhDnBCGu3JrRygSIYxquXE X-Received: by 10.112.122.12 with SMTP id lo12mr9435598lbb.5.1436489705836; Thu, 09 Jul 2015 17:55:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.39 with SMTP id b7ls1084981lae.85.gmail; Thu, 09 Jul 2015 17:55:05 -0700 (PDT) X-Received: by 10.152.36.226 with SMTP id t2mr17333862laj.6.1436489705609; Thu, 09 Jul 2015 17:55:05 -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 ju17si5882459lab.77.2015.07.09.17.55.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:55:05 -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 c2so253284894lag.3 for ; Thu, 09 Jul 2015 17:55:05 -0700 (PDT) X-Received: by 10.112.133.72 with SMTP id pa8mr5613552lbb.117.1436489705170; Thu, 09 Jul 2015 17:55:05 -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 hn6csp1013945lbb; Thu, 9 Jul 2015 17:55:04 -0700 (PDT) X-Received: by 10.55.41.229 with SMTP id p98mr2917010qkp.99.1436489697268; Thu, 09 Jul 2015 17:54:57 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a74si8951200qgf.30.2015.07.09.17.54.56; Thu, 09 Jul 2015 17:54:57 -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 8570362072; Fri, 10 Jul 2015 00:54:56 +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 73299620AD; Fri, 10 Jul 2015 00:47:08 +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 3474062068; Fri, 10 Jul 2015 00:46:38 +0000 (UTC) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by lists.linaro.org (Postfix) with ESMTPS id 2E67C6208C for ; Fri, 10 Jul 2015 00:45:00 +0000 (UTC) Received: by labgy5 with SMTP id gy5so103923190lab.2 for ; Thu, 09 Jul 2015 17:44:58 -0700 (PDT) X-Received: by 10.112.63.169 with SMTP id h9mr17423982lbs.104.1436489098847; Thu, 09 Jul 2015 17:44:58 -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.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:57 -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:27 +0200 Message-Id: <1436489068-8929-17-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 16/17] validation: system: 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/system/system.c | 18 +++++++++--------- test/validation/system/system.h | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/test/validation/system/system.c b/test/validation/system/system.c index b80fd39..7687f20 100644 --- a/test/validation/system/system.c +++ b/test/validation/system/system.c @@ -10,7 +10,7 @@ #include "test_debug.h" #include "system.h" -static void system_test_odp_version_numbers(void) +void system_test_odp_version_numbers(void) { int char_ok; char version_string[128]; @@ -32,7 +32,7 @@ static void system_test_odp_version_numbers(void) CU_ASSERT(char_ok); } -static void system_test_odp_cpu_count(void) +void system_test_odp_cpu_count(void) { int cpus; @@ -40,7 +40,7 @@ static void system_test_odp_cpu_count(void) CU_ASSERT(0 < cpus); } -static void system_test_odp_sys_cache_line_size(void) +void system_test_odp_sys_cache_line_size(void) { uint64_t cache_size; @@ -49,7 +49,7 @@ static void system_test_odp_sys_cache_line_size(void) CU_ASSERT(ODP_CACHE_LINE_SIZE == cache_size); } -static void system_test_odp_sys_cpu_model_str(void) +void system_test_odp_sys_cpu_model_str(void) { char model[128]; @@ -58,7 +58,7 @@ static void system_test_odp_sys_cpu_model_str(void) CU_ASSERT(strlen(model) < 127); } -static void system_test_odp_sys_page_size(void) +void system_test_odp_sys_page_size(void) { uint64_t page; @@ -67,7 +67,7 @@ static void system_test_odp_sys_page_size(void) CU_ASSERT(ODP_PAGE_SIZE == page); } -static void system_test_odp_sys_huge_page_size(void) +void system_test_odp_sys_huge_page_size(void) { uint64_t page; @@ -75,7 +75,7 @@ static void system_test_odp_sys_huge_page_size(void) CU_ASSERT(0 < page); } -static void system_test_odp_sys_cpu_hz(void) +void system_test_odp_sys_cpu_hz(void) { uint64_t hz; @@ -83,7 +83,7 @@ static void system_test_odp_sys_cpu_hz(void) CU_ASSERT(0 < hz); } -static CU_TestInfo system_suite[] = { +CU_TestInfo system_suite[] = { {"odp version", system_test_odp_version_numbers}, {"odp_cpu_count", system_test_odp_cpu_count}, {"odp_sys_cache_line_size", system_test_odp_sys_cache_line_size}, @@ -94,7 +94,7 @@ static CU_TestInfo system_suite[] = { CU_TEST_INFO_NULL, }; -static CU_SuiteInfo system_suites[] = { +CU_SuiteInfo system_suites[] = { {"System Info", NULL, NULL, NULL, NULL, system_suite}, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/system/system.h b/test/validation/system/system.h index 92618fb..dc94ca6 100644 --- a/test/validation/system/system.h +++ b/test/validation/system/system.h @@ -4,4 +4,22 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include + +/* test functions: */ +void system_test_odp_version_numbers(void); +void system_test_odp_cpu_count(void); +void system_test_odp_sys_cache_line_size(void); +void system_test_odp_sys_cpu_model_str(void); +void system_test_odp_sys_page_size(void); +void system_test_odp_sys_huge_page_size(void); +void system_test_odp_sys_cpu_hz(void); + +/* test arrays: */ +extern CU_TestInfo system_suite[]; + +/* test registery: */ +extern CU_SuiteInfo system_suites[]; + +/* main test program: */ int system_main(void);