From patchwork Mon Jul 27 17:38:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51554 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id 14F2922918 for ; Mon, 27 Jul 2015 17:44:45 +0000 (UTC) Received: by wixh2 with SMTP id h2sf30754968wix.0 for ; Mon, 27 Jul 2015 10:44:44 -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=LKWtDh6stk9VPQuH0V/xSu1BHq+EDQ2/HPx49FUATac=; b=iAjyfhOR5pLNOknFCs5rQYyGCpm5ka/FX+hzOhWVKJ/gVryApjaAtdFNTJ7C79lbYM B6Vpdlyi1+IjxsDXDG1P/5Wlf+pjpjB0k9qU3aPbjMLM3vQolVrs9Aaw3v3GqiPE5UfH bpPuau7U7JR5XJesEpS16eeQacjb6g8Fq4yXZPCNoIaTuY0vWQVp0seyiHKMwk9ujwj6 xMJQlTrX9HpCU9Yz1AUzYvx5MynjYmOJwVjxvKngZKEtyo/vCoz1vzMSdzGcxPul5hrW paQwdh7CX50ilPuhf/uQsTBvIdFUidyctLaFdLhcgFYhhSXOvFYPkOTlGuAjZKoxVieM aYOQ== X-Gm-Message-State: ALoCoQnEB0h5pd2pvuWLEKLi9b5RQYMQmgqN5jA5bIgxpYs+DeV3PLu/m+LNQVMLt7BMloP3ak3K X-Received: by 10.112.98.42 with SMTP id ef10mr12645932lbb.18.1438019084344; Mon, 27 Jul 2015 10:44:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.219.4 with SMTP id pk4ls701827lac.90.gmail; Mon, 27 Jul 2015 10:44:44 -0700 (PDT) X-Received: by 10.152.23.234 with SMTP id p10mr28279709laf.52.1438019084194; Mon, 27 Jul 2015 10:44:44 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id rl9si15848725lac.65.2015.07.27.10.44.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbzr7 with SMTP id zr7so58556181lbb.1 for ; Mon, 27 Jul 2015 10:44:43 -0700 (PDT) X-Received: by 10.152.36.102 with SMTP id p6mr28205361laj.19.1438019083750; Mon, 27 Jul 2015 10:44:43 -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 l6csp1661282lba; Mon, 27 Jul 2015 10:44:42 -0700 (PDT) X-Received: by 10.55.17.151 with SMTP id 23mr41244814qkr.103.1438019082223; Mon, 27 Jul 2015 10:44:42 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 81si21791805qgx.77.2015.07.27.10.44.41; Mon, 27 Jul 2015 10:44:42 -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 8B98B61DBE; Mon, 27 Jul 2015 17:44:41 +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 4875061E0D; Mon, 27 Jul 2015 17:40:19 +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 128D761DBE; Mon, 27 Jul 2015 17:40:14 +0000 (UTC) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id 1DFD461DC4 for ; Mon, 27 Jul 2015 17:39:16 +0000 (UTC) Received: by lagw2 with SMTP id w2so53587017lag.3 for ; Mon, 27 Jul 2015 10:39:15 -0700 (PDT) X-Received: by 10.112.144.69 with SMTP id sk5mr28145783lbb.6.1438018755061; Mon, 27 Jul 2015 10:39:15 -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.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:14 -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:39 +0200 Message-Id: <1438018732-2778-8-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 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.217.180 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..08f09e5 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 registry: */ +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);