From patchwork Mon Jul 27 17:38:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51566 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id DE13822918 for ; Mon, 27 Jul 2015 17:53:23 +0000 (UTC) Received: by lbcjj5 with SMTP id jj5sf30044620lbc.1 for ; Mon, 27 Jul 2015 10:53:22 -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=QIvS8CXRrfqNW6CvNNp653csEtvRIPoca/tdpIC2zns=; b=cFvVbFgy7dtz2zlJ1s7AzRyWA5bhj5R0gKFp5Jr9GBIUAL+8taH86SKmLqM/eZoHGb UJPVMyQ820uEbb4Zv/un/G/Xu5bON3ZvFOQ6TWSVSqaxcHpEMgLzLCYgjWnzOH+PqgFm /9DwW5PSR4uDbYFI7dLYb9Pt7mG0c+64f4u71BAQWXyCdaVTXCzdcJpofnwo1rARmjYK HQh97Uwqnqc+jY++QeIxR+Vvy/0EZE20re9RaSsOaCTIkNsKFXrp2XwwjzrxiEWJx7QU qViru3Ze0V6rQBvnylPvuIjUWWrt4q6G+lTDu2Wi3dDlzV9+IqnWkCk2Uko2vdDCbHcb Sb8A== X-Gm-Message-State: ALoCoQm3Of4R8bz8U07bd/fmqFBo9E1vcOincgVBidA7LKSIn8SgWu+E87xKpR7Z9FpG8eDMrgK/ X-Received: by 10.180.96.137 with SMTP id ds9mr5719904wib.2.1438019602928; Mon, 27 Jul 2015 10:53:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.73 with SMTP id y9ls585959lay.18.gmail; Mon, 27 Jul 2015 10:53:22 -0700 (PDT) X-Received: by 10.152.43.16 with SMTP id s16mr28098412lal.101.1438019602758; Mon, 27 Jul 2015 10:53:22 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id y2si15840750lae.153.2015.07.27.10.53.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lblf12 with SMTP id f12so58690972lbl.2 for ; Mon, 27 Jul 2015 10:53:22 -0700 (PDT) X-Received: by 10.152.22.99 with SMTP id c3mr28883398laf.32.1438019602484; Mon, 27 Jul 2015 10:53:22 -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 l6csp1664987lba; Mon, 27 Jul 2015 10:53:21 -0700 (PDT) X-Received: by 10.55.49.76 with SMTP id x73mr42526301qkx.49.1438019600866; Mon, 27 Jul 2015 10:53:20 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 39si21820846qkq.74.2015.07.27.10.53.19; Mon, 27 Jul 2015 10:53:20 -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 D26E361DCE; Mon, 27 Jul 2015 17:53:19 +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 A683A61E32; Mon, 27 Jul 2015 17:41:27 +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 D588E61B68; Mon, 27 Jul 2015 17:41:16 +0000 (UTC) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id 24A6961DD8 for ; Mon, 27 Jul 2015 17:39:34 +0000 (UTC) Received: by lafd3 with SMTP id d3so43243528laf.1 for ; Mon, 27 Jul 2015 10:39:33 -0700 (PDT) X-Received: by 10.112.8.108 with SMTP id q12mr28071240lba.113.1438018773090; Mon, 27 Jul 2015 10:39:33 -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.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:32 -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:51 +0200 Message-Id: <1438018732-2778-20-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 19/20] 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.217.181 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 f00ae57..c8bd2d4 100644 --- a/test/validation/system/system.h +++ b/test/validation/system/system.h @@ -7,6 +7,24 @@ #ifndef _ODP_TEST_SYSTEM_H_ #define _ODP_TEST_SYSTEM_H_ +#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 registry: */ +extern CU_SuiteInfo system_suites[]; + +/* main test program: */ int system_main(void); #endif