From patchwork Fri Jul 10 00:44:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50993 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D7FE1228E5 for ; Fri, 10 Jul 2015 00:47:22 +0000 (UTC) Received: by wipp2 with SMTP id p2sf723025wip.2 for ; Thu, 09 Jul 2015 17:47: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=2UuxtBGZ98UxcPsaer+Bbk8fsUwVZG47IKpdArxJ2UA=; b=MU4y2rv2ykpkezv8WEod7GVMIj3WfWey2pZiaq8PRzcJFGrkmbvPJPtHqcyriS9MPG RfvdnoW/12GoBuYq0z/T4AvswJYrvVwCUH5GBh3vFvzu4ItqBQEpHPE9CLdGU2Iy1H3Q MCHGZXRaefxbIdftQeX962TJJ/4knKcataW/E+In9mhh7MsxYkiOpM8l2ecs8q9czHeW ErGWn2QiSKWNlHA36kQkeXkSBSVLrqTl7p0dYbD4YVrBy5K0ETlvrtqG1e+LWKnz4S42 uveihykKIYR67nPG57qqBj7LswDZcJ2qz7+4Yw3In44ifVqMDTQ9d8FxL7Z6frZYFvAq Lolg== X-Gm-Message-State: ALoCoQnHc+PSMqJtOD6u76xCFF/ODUI3y0V2BmYRHkX2nbMkUuTBnbdjtCXVag8KzA3Oud6kJy57 X-Received: by 10.194.93.198 with SMTP id cw6mr9369911wjb.3.1436489242218; Thu, 09 Jul 2015 17:47:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.1 with SMTP id n1ls990178laa.87.gmail; Thu, 09 Jul 2015 17:47:22 -0700 (PDT) X-Received: by 10.152.21.65 with SMTP id t1mr17321275lae.26.1436489242046; Thu, 09 Jul 2015 17:47:22 -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 lv6si5867448lac.87.2015.07.09.17.47.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:47:22 -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 c2so253211796lag.3 for ; Thu, 09 Jul 2015 17:47:22 -0700 (PDT) X-Received: by 10.112.166.2 with SMTP id zc2mr17185441lbb.29.1436489241962; Thu, 09 Jul 2015 17:47:21 -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 hn6csp1011041lbb; Thu, 9 Jul 2015 17:47:20 -0700 (PDT) X-Received: by 10.55.23.132 with SMTP id 4mr28447372qkx.72.1436489239482; Thu, 09 Jul 2015 17:47:19 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 73si4529834qkp.17.2015.07.09.17.47.18; Thu, 09 Jul 2015 17:47:19 -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 E6A05620BC; Fri, 10 Jul 2015 00:47:17 +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_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 E62FC6207E; Fri, 10 Jul 2015 00:45:18 +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 6A25B62075; Fri, 10 Jul 2015 00:45:13 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by lists.linaro.org (Postfix) with ESMTPS id A2F1B6203A for ; Fri, 10 Jul 2015 00:44:44 +0000 (UTC) Received: by lbnk3 with SMTP id k3so84026133lbn.1 for ; Thu, 09 Jul 2015 17:44:43 -0700 (PDT) X-Received: by 10.112.161.197 with SMTP id xu5mr17240421lbb.69.1436489083600; Thu, 09 Jul 2015 17:44:43 -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.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:42 -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:15 +0200 Message-Id: <1436489068-8929-5-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 04/17] 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.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/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 ca03994..c94b960 100644 --- a/test/validation/init/init.h +++ b/test/validation/init/init.h @@ -4,6 +4,24 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#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);