From patchwork Fri Jul 24 11:27:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51419 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 2079E20323 for ; Fri, 24 Jul 2015 11:32:25 +0000 (UTC) Received: by lagw2 with SMTP id w2sf6586133lag.3 for ; Fri, 24 Jul 2015 04:32:24 -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=LkKfahUwA0IpKMfZZQ+kPJjb3JWtAj/9m/723gsiZio=; b=fPhOLrAQ3XuHdvrKGVHeRgIyQPojlkwpqABFJKqfGpMeuxiBUaC5eTFMbEZFsSPDpT o5L+cJ96c3NKk2GVjTeD86f4iR3plonY+EvI9le36kufR3VaBLEcKCpLM5kWUeNYGidf thDfSNHFUMNYsJvMI5Gh+c5ODO82Ixngog167rAplz4JtY95Lb2mpR+hWh8+C9gEAjz0 vIL8AeVsSM7B6HsDXQxPNFNUzrP5+R9mV3XoB+GPnFSms6MRSNSY7EoEoSgTr4Po5ugh hyh12mZNhanLXQc+TUbQJQm/cgKq7t4r1PpfgqziCQnkW2hhCZKdnyfPS5yjTFbV6hZg 77AA== X-Gm-Message-State: ALoCoQlfsQ5KY16EThFn7BUM7aPMq3CFZ7xe5Vnn2WyA5CzUwyTzyq90N0vvdq7dYEUauMRH1n/n X-Received: by 10.152.115.165 with SMTP id jp5mr5993479lab.10.1437737544111; Fri, 24 Jul 2015 04:32:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.42 with SMTP id o10ls322837laa.87.gmail; Fri, 24 Jul 2015 04:32:23 -0700 (PDT) X-Received: by 10.152.18.162 with SMTP id x2mr13235839lad.73.1437737543960; Fri, 24 Jul 2015 04:32:23 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id u9si7273625lbw.89.2015.07.24.04.32.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 04:32:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lahh5 with SMTP id h5so12355055lah.2 for ; Fri, 24 Jul 2015 04:32:23 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr13054066lbc.72.1437737543861; Fri, 24 Jul 2015 04:32:23 -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 l6csp1115880lba; Fri, 24 Jul 2015 04:32:23 -0700 (PDT) X-Received: by 10.55.26.133 with SMTP id l5mr19732916qkh.105.1437737542492; Fri, 24 Jul 2015 04:32:22 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f185si9621128qhc.71.2015.07.24.04.32.20; Fri, 24 Jul 2015 04:32:22 -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 6935C61B76; Fri, 24 Jul 2015 11:32:20 +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 D1A2B61C6D; Fri, 24 Jul 2015 11:28:59 +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 0016C61B64; Fri, 24 Jul 2015 11:28:53 +0000 (UTC) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by lists.linaro.org (Postfix) with ESMTPS id A993B61B5A for ; Fri, 24 Jul 2015 11:28:09 +0000 (UTC) Received: by lahh5 with SMTP id h5so12295977lah.2 for ; Fri, 24 Jul 2015 04:28:08 -0700 (PDT) X-Received: by 10.152.10.148 with SMTP id i20mr12828557lab.63.1437737288633; Fri, 24 Jul 2015 04:28:08 -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.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 04:28:07 -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:26 +0200 Message-Id: <1437737259-16953-8-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 07/20] validation: init: 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.49 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/init/init.c | 18 +++++++++--------- test/validation/init/init.h | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/test/validation/init/init.c b/test/validation/init/init.c index 169bd5c..12aa554 100644 --- a/test/validation/init/init.c +++ b/test/validation/init/init.c @@ -22,7 +22,7 @@ ODP_PRINTF_FORMAT(2, 3) static int odp_init_log(odp_log_level_e level, const char *fmt, ...); /* test ODP global init, with alternate abort function */ -static void init_test_odp_init_global_replace_abort(void) +void init_test_odp_init_global_replace_abort(void) { int status; struct odp_init_t init_data; @@ -37,12 +37,12 @@ static void init_test_odp_init_global_replace_abort(void) CU_ASSERT(status == 0); } -static CU_TestInfo init_suite_abort[] = { +CU_TestInfo init_suite_abort[] = { {"replace abort", init_test_odp_init_global_replace_abort}, CU_TEST_INFO_NULL, }; -static CU_SuiteInfo init_suites_abort[] = { +CU_SuiteInfo init_suites_abort[] = { {"Init", NULL, NULL, NULL, NULL, init_suite_abort}, CU_SUITE_INFO_NULL, }; @@ -63,7 +63,7 @@ int init_main_abort(void) } /* test ODP global init, with alternate log function */ -static void init_test_odp_init_global_replace_log(void) +void init_test_odp_init_global_replace_log(void) { int status; struct odp_init_t init_data; @@ -82,12 +82,12 @@ static void init_test_odp_init_global_replace_log(void) CU_ASSERT(status == 0); } -static CU_TestInfo init_suite_log[] = { +CU_TestInfo init_suite_log[] = { {"replace log", init_test_odp_init_global_replace_log}, CU_TEST_INFO_NULL, }; -static CU_SuiteInfo init_suites_log[] = { +CU_SuiteInfo init_suites_log[] = { {"Init", NULL, NULL, NULL, NULL, init_suite_log}, CU_SUITE_INFO_NULL, }; @@ -119,7 +119,7 @@ int init_main_log(void) } /* test normal ODP global init */ -static void init_test_odp_init_global(void) +void init_test_odp_init_global(void) { int status; @@ -130,12 +130,12 @@ static void init_test_odp_init_global(void) CU_ASSERT(status == 0); } -static CU_TestInfo init_suite_ok[] = { +CU_TestInfo init_suite_ok[] = { {"test_odp_init_global", init_test_odp_init_global}, CU_TEST_INFO_NULL, }; -static CU_SuiteInfo init_suites_ok[] = { +CU_SuiteInfo init_suites_ok[] = { {"Init", NULL, NULL, NULL, NULL, init_suite_ok}, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/init/init.h b/test/validation/init/init.h index 7e5a082..1bf235d 100644 --- a/test/validation/init/init.h +++ b/test/validation/init/init.h @@ -7,6 +7,24 @@ #ifndef _ODP_TEST_INIT_H_ #define _ODP_TEST_INIT_H_ +#include + +/* test functions: */ +void init_test_odp_init_global_replace_abort(void); +void init_test_odp_init_global_replace_log(void); +void init_test_odp_init_global(void); + +/* test arrays: */ +extern CU_TestInfo init_suite_abort[]; +extern CU_TestInfo init_suite_log[]; +extern CU_TestInfo init_suite_ok[]; + +/* test registery: */ +extern CU_SuiteInfo init_suites_abort[]; +extern CU_SuiteInfo init_suites_log[]; +extern CU_SuiteInfo init_suites_ok[]; + +/* main test program: */ int init_main_abort(void); int init_main_log(void); int init_main_ok(void);