From patchwork Fri Jul 24 11:27:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51434 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 1E76220323 for ; Fri, 24 Jul 2015 11:42:21 +0000 (UTC) Received: by lbcjf8 with SMTP id jf8sf6614453lbc.0 for ; Fri, 24 Jul 2015 04:42:20 -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=YYX+h0vh4r1RWtPRLiU5F1VOWB7MagldF6KpgrHE9Qk=; b=RjW65PG7uOjnjhL9mR1Q6LxOk9GVQ8SkFz4KFPwc9oUhjFLS9r5N3oF3CH/It3GNW6 NalCiWnFMc/rKJ2/ZUjavH3cDSnH0EUhavyUTS2g4sdWqmS0oL8HWOxFuZpE9PqxFsdi diEgB32HCmeRhuzVRBoe47rfuD66YjsDIR43lxv8y6c7ugpp1/gF6vvxrbkyFt5a+eXJ AzybO1BJ3wRX1zcsCyzf0fGPhMQNVfq+egEOUJ6FYlrR9REzybyYwhEU0A+fsCtua07e 51Y6GhE8ZvGMWf6yDwQPJYDk7lMXXQYSNoj4ttou97WByghbnlsCjbVlezuYRj5I196v UreA== X-Gm-Message-State: ALoCoQmu4kxmGYIQCh4Ve2gwl6TE8MuBsvrIMBuP76pzdTlCzFVFUfMWGIJCYwPc65FM3gAN/UhJ X-Received: by 10.152.87.46 with SMTP id u14mr3481634laz.5.1437738140044; Fri, 24 Jul 2015 04:42:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.9 with SMTP id ci9ls396555lad.69.gmail; Fri, 24 Jul 2015 04:42:19 -0700 (PDT) X-Received: by 10.112.129.131 with SMTP id nw3mr13455180lbb.34.1437738139830; Fri, 24 Jul 2015 04:42:19 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id t18si7280491laz.137.2015.07.24.04.42.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 04:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbqi7 with SMTP id qi7so13367420lbb.3 for ; Fri, 24 Jul 2015 04:42:19 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr13098458lay.72.1437738139480; Fri, 24 Jul 2015 04:42:19 -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 l6csp1121030lba; Fri, 24 Jul 2015 04:42:18 -0700 (PDT) X-Received: by 10.140.82.180 with SMTP id h49mr19182409qgd.29.1437738137926; Fri, 24 Jul 2015 04:42:17 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g9si9689062qgf.41.2015.07.24.04.42.17; Fri, 24 Jul 2015 04:42:17 -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 F33426183C; Fri, 24 Jul 2015 11:42:16 +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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED, 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 9579F61DBA; Fri, 24 Jul 2015 11:30:56 +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 E645661B5A; Fri, 24 Jul 2015 11:30:45 +0000 (UTC) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by lists.linaro.org (Postfix) with ESMTPS id 4368C61CB8 for ; Fri, 24 Jul 2015 11:28:26 +0000 (UTC) Received: by lbbqi7 with SMTP id qi7so13156835lbb.3 for ; Fri, 24 Jul 2015 04:28:25 -0700 (PDT) X-Received: by 10.112.137.97 with SMTP id qh1mr13047257lbb.1.1437737305256; Fri, 24 Jul 2015 04:28:25 -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 y1sm1582274lal.39.2015.07.24.04.28.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 04:28:24 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Fri, 24 Jul 2015 13:27:38 +0200 Message-Id: <1437737259-16953-20-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437737259-16953-1-git-send-email-christophe.milard@linaro.org> References: <1437737259-16953-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 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.171 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..3adaddc 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 registery: */ +extern CU_SuiteInfo system_suites[]; + +/* main test program: */ int system_main(void); #endif